Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Usage: @include font-face("Font-Family-Italic");
- // Advanced usage: @include font-face("Roboto", "../fonts/", auto, normal, normal, normal, auto);
- @mixin font-face($family, $font-path: ".", $display: auto, $style: normal, $weight: normal, $range: U+0-10FFFF, $variation: normal) {
- @font-face {
- font-display: $display;
- font-family: $family;
- font-style: $style;
- font-weight: $weight;
- font-variation-settings: $variation;
- src: local($family), url("#{$font-path}#{$family}.woff2") format("woff2"), url("#{$font-path}#{$family}.woff") format("woff"), url("#{$font-path}#{$family}.ttf") format("truetype"), url("#{$font-path}#{$family}.eot") format("embedded-opentype");
- unicode-range: $range;
- }
- }
Add Comment
Please, Sign In to add comment