A
A
artshelom2017-04-09 14:23:16
css
artshelom, 2017-04-09 14:23:16

how to add font in css

How to add font in css. The font is in the same folder as the font, applied the following code:

@font-face {
    font-family: "Bebas Neue Cyrillic";
    src: url("BebasNeueCyrillic.ttf");
    font-weight: normal;
    font-style: normal;
}

But in the future, idea writes that it cannot find it (underlined in yellow) and it does not work on the site (a different font is cut), how to fix it?
To display the page I use jsp (if suddenly this is a problem).

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Ankhena, 2017-04-09
@artshelom

Use the service: https://web-font-generator.com/
Different browsers need a font in different formats.

A
AlexandrBirukov, 2017-04-09
@AlexandrBirukov

The font is in the same folder as the font
- how can I understand?
Write in detail what to display idea - you need to put the cursor on what is underlined and press Alt + Enter. And so many options can be why it does not work.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question