Answer the question
In order to leave comments, you need to log in
I can't add my font to the starter template, where is the error?
Hello. I need your help with connecting fonts, here is the source code:
fonts.sass file
@import "_mixins/font-face"
+font-face("roboto-example", "../fonts/RobotoRegular/RobotoRegular")
+font-face("roboto-example", "../fonts/RobotoBold/RobotoBold", bold)
+font-face("museo-sans", "../fonts/MuseoBook/museosanscyrl-300", 300)
+font-face("museo-sans", "../fonts/MuseoMedium/MuseoSansCyrillic-500", 500)
+font-face("museo-sans", "../fonts/MuseoBold/museosanscyrl-700", bold)
@mixin font-face($font-family, $file-path, $weight: normal, $style: normal, $asset-pipeline: false )
@font-face
font-family: $font-family
font-weight: $weight
font-style: $style
@if $asset-pipeline == true
src: font-url('#{$file-path}.eot')
src: font-url('#{$file-path}.eot?#iefix') format('embedded-opentype'), font-url('#{$file-path}.woff') format('woff'), font-url('#{$file-path}.ttf') format('truetype')
@else
src: url('#{$file-path}.eot')
src: url('#{$file-path}.eot?#iefix') format('embedded-opentype'), url('#{$file-path}.woff') format('woff'), url('#{$file-path}.ttf') format('truetype')
@import "fonts"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question