Answer the question
In order to leave comments, you need to log in
How to include a font from google fonts via @font-face?
The task is to connect Google fonts, but not through link or import, but through @font-face
The question boils down to where to get URL_ON_FONT
@font-face {
font-family: Roboto;
font-style: normal;
font-weight: 400;
src: local(Roboto),local(Roboto-Regular),
url(URL_НА_ШРИФТ) format("eot"),
url(URL_НА_ШРИФТ) format("woff2"),
url(URL_НА_ШРИФТ) format("woff");
}
Answer the question
In order to leave comments, you need to log in
You can include in the html itself
like this
Either in your style.css
@import url(http://fonts.googleapis.com/css?family=Open+Sans:700,300,600,800,400&subset=cyrillic,cyrillic-ext,latin);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question