Answer the question
In order to leave comments, you need to log in
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);
}
Answer the question
In order to leave comments, you need to log in
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.
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 questionAsk a Question
731 491 924 answers to any question