D
D
Danya Wyse2019-04-09 20:24:04
css
Danya Wyse, 2019-04-09 20:24:04

What is the most practical and reliable way to connect fonts?

I think that a local connection is the most reliable.
I do this
in index.html and set the path to the file with fonts . The
code in the fonts is something like this

@font-face {
  font-family:'Dokdo', cursive;
  src:url(../fonts/Dokdo/Dokdo-Regular.ttf);
}

I look forward to criticism and really useful advice

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Usachov, 2019-04-09
@Wyse

I am also for the local placement of fonts. (Yes, it happens that Google is not available, and the fonts do not come from the Google Fonts address).
However, I recommend processing ttf or otf with a program like this one, and connecting the resulting css.

A
Alexander Kosarev, 2017-07-25
@click_f

The authorization data itself is best stored in a configuration file. From there, they must be obtained by the application context and substituted into the properties of the API client class. Something like this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question