Answer the question
In order to leave comments, you need to log in
How to properly connect the font to the site?
Hello guys, such a question, how to correctly connect the font with icons to the site? I created a separate folder for fonts "fonts". I specify the path to the font "It is in the same folder"
Here's how I connected it:
@font-face {
font-family: 'icomoon';
src:url('../fonts/icomoon.eot?-cemaup');
src:url('../fonts/icomoon.eot?#iefix-cemaup') format('embedded-opentype'),
url('../fonts/icomoon.woff?-cemaup') format('woff'),
url('../fonts/icomoon.ttf?-cemaup') format('truetype'),
url('../fonts/icomoon.svg?-cemaup#icomoon') format('svg');
font-weight: normal;
font-style: normal;
}
Answer the question
In order to leave comments, you need to log in
here is the resource , fill in the font there and it will convert it to all formats and give the canonical css code for connection
I do not know what kind of magic you have, I recently had such a problem. Everything was solved by putting web font format (.woff) in the first line, and not embeded, and everything works:
@font-face {
font-family: 'icomoon';
src:url('../fonts/icomoon.woff');
I wrote about how to connect fonts so that they load quickly in an article .
I encountered it myself, it is also possible that you will initially download a headset without Cyrillic.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question