D
D
DeniSidorenko2017-10-13 17:40:23
css
DeniSidorenko, 2017-10-13 17:40:23

Font-face, How to connect several formats for one font at once?

hello
there is a standard structure

@font-face 
  font-family: 'NameFonts'
  src: url('../path/to/fonts.otf')

However, here I only included the format in otf, but for this font I also have ttf, woff. How to connect those formats (needed to display in different browsers)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2017-10-13
@DeniSidorenko

Use services to generate a set of web fonts.
They will also generate css for the correct connection.
www.fontsquirrel.com/tools/webfont-generator
https://transfonter.org/
I recommend the second one.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question