fonts.less 834 B

123456789101112131415161718192021222324
  1. @import "vars.less";
  2. .addFont(@fontFamily, @fontFile, @fontWeight: normal, @fontStyle: normal) {
  3. @font-face {
  4. font-family: @fontFamily;
  5. src:
  6. url('@{path-font}/@{fontFile}.woff2') format('woff2'),
  7. url('@{path-font}/@{fontFile}.woff') format('woff');
  8. font-weight: @fontWeight;
  9. font-style: @fontStyle;
  10. font-display: swap;
  11. }
  12. }
  13. /*@font-face {
  14. font-family: "PT Serif";
  15. src: url('../fonts/PTSerif-Regular.ttf');
  16. font-weight: 400;
  17. }*/
  18. .addFont('Golos Text', 'GolosText-Regular');
  19. .addFont('Golos Text', 'GolosText-Bold', 700);
  20. .addFont('Golos Text', 'GolosText-Black', 900);
  21. .addFont('Source Serif Pro', 'SourceSerifPro-Regular');
  22. .addFont('Source Serif Pro', 'SourceSerifPro-Italic', 400, italic);
  23. .addFont('Source Serif Pro', 'SourceSerifPro-Bold', 700);