Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. @font-face {
  2. font-family: 'MyVariableFontName';
  3. src: 'path/to/font/file/myvariablefont.woff2' format('woff2-variations');
  4. font-weight: 125 950;
  5. font-stretch: 75% 125%;
  6. font-style: oblique 0deg 12deg;
  7. }
  8.  
  9. element {
  10. font-variation-settings: 'wght' 375, 'GRAD' 88;
  11.  
  12. font-weight: 375;
  13. font-variation-settings: 'wght' 375;
  14.  
  15. font-stretch: 115%;
  16. font-variation-settings: 'wdth' 115;
  17.  
  18. Also note the introduction of font-synthesis: none;—which will prevent browsers from accidentally applying the variation axis and a synthesized italic. This can be used to prevent faux-bolding as well.
  19.  
  20. font-style: italic;
  21. font-variation-settings: 'ital' 1;
  22. font-synthesis: none;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement