D
D
Dmitry2016-07-16 01:06:31
Google
Dmitry, 2016-07-16 01:06:31

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

2 answer(s)
H
holfza, 2016-07-16
@holfza

https://fonts.googleapis.com/css?family=Roboto:300 ,400,500,700

A
Alibek Kulseitov, 2016-07-17
@AlibekKulseitov

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 question

Ask a Question

731 491 924 answers to any question