Skip to content

Commit 4c1ec82

Browse files
authored
Merge pull request #307 from BeAPI/feature/font-face-variation-setting
font face mixin to use variable fonts
2 parents 629e758 + 45b8a34 commit 4c1ec82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/scss/02-tools/_m-declare-font-face.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
* used in base/_fonts.scss
55
*/
66

7-
@mixin declare-font-face($font-family, $font-filename, $font-weight : normal, $font-style :normal, $font-stretch : normal) {
7+
@mixin declare-font-face($font-family, $font-filename, $font-weight : normal, $font-style : normal, $font-stretch : normal, $font-format : "woff2") {
88

99
@font-face {
1010
font-family: "#{$font-family}";
1111
font-style: $font-style;
1212
font-weight: $font-weight;
1313
font-stretch: $font-stretch;
14-
src: url(#{$font-filename}.woff2) format("woff2");
14+
src: url(#{$font-filename}.woff2) format("#{$font-format}");
1515
font-display: swap;
1616
unicode-range: U+0-10FFFF; /* cutting of the font file for better loading */
1717
}

0 commit comments

Comments
 (0)