123456789101112131415161718192021222324 |
- @import "vars.less";
- .addFont(@fontFamily, @fontFile, @fontWeight: normal, @fontStyle: normal) {
- @font-face {
- font-family: @fontFamily;
- src:
- url('@{path-font}/@{fontFile}.woff2') format('woff2'),
- url('@{path-font}/@{fontFile}.woff') format('woff');
- font-weight: @fontWeight;
- font-style: @fontStyle;
- font-display: swap;
- }
- }
- /*@font-face {
- font-family: "PT Serif";
- src: url('../fonts/PTSerif-Regular.ttf');
- font-weight: 400;
- }*/
- .addFont('Golos Text', 'GolosText-Regular');
- .addFont('Golos Text', 'GolosText-Bold', 700);
- .addFont('Golos Text', 'GolosText-Black', 900);
- .addFont('Source Serif Pro', 'SourceSerifPro-Regular');
- .addFont('Source Serif Pro', 'SourceSerifPro-Italic', 400, italic);
- .addFont('Source Serif Pro', 'SourceSerifPro-Bold', 700);
|