PT Sans font
The downloaded PT Sans fonts with matching @font-face
declarations in CSS.
Each font-family has a library-definition, so you can control which variations to include in your theme.
1) Add the libraries that you want to use in your theme's compony.info.yml
file:
libraries:
- compony/global
- compony/font--pt-sans--bold-italic
- compony/font--pt-sans--bold
- compony/font--pt-sans--italic
- compony/font--pt-sans--regular
(Only include the library definitions of the fonts that you need)
2) Use it in your CSS as follows:
font-family: 'pt-sans--bold-italic';
All the fonts are named using the BEM-naming structure.
Specifications
Machine name
font--pt-sans
Building blocks
CSS