poster/fonts/PT_Mono.scss
Denis Knauf 2e0939227e fonts
2017-09-06 23:13:13 +02:00

24 lines
1 KiB
SCSS

@mixin font-face($family, $local1, $local2, $rpath, $weight: normal, $style: normal) {
$path: "#{$rpath}";
@font-face {
font-family: $family;
font-weight: $weight;
font-style: $style;
/*src: url("#{$path}.eot");*/
src: local($local1), local($local2), /*url("#{$path}.eot?#iefix") format("embedded-opentype"),*/ url("#{$path}.woff") format("woff"), url("#{$path}.ttf") format("truetype") /*, url("#{$path}.svg") format("svg")*/;
}
}
@mixin font-face-normal($family, $local1, $local2, $rpath, $weight: normal, $style: normal) {
$path: "#{$rpath}";
@font-face {
font-family: $family;
/*src: url("#{$path}.eot");*/
src: local($local1), local($local2), /*url("#{$path}.eot?#iefix") format("embedded-opentype"),*/ url("#{$path}.woff") format("woff"), url("#{$path}.ttf") format("truetype") /*, url("#{$path}.svg") format("svg")*/;
}
}
@include font-face-normal("PT Mono", "PT Mono Regular", "PTM55F_W", "PT_Mono/PTM55F_W");
@include font-face-normal("PT Mono", "PT Mono Bold", "PTM75F_W", "PT_Mono/PTM75F_W");