C
C
Cosmonaut.2019-02-18 13:53:12
css
Cosmonaut., 2019-02-18 13:53:12

Why fonts are not displayed correctly on safari?

Hello!
Why fonts are not displayed correctly on safari?
5c6a8e9447f72495586701.jpeg
thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ankhena, 2019-02-18
@Alizoda

Cosmonaut. , identical fonts are connected with the same name, different weights and styles are written in font-weight and font-style.
Modern browsers require the woff2 and woff formats.

@font-face {
    font-family: "OpenSans";
    src: url("fonts/opensans.woff2") format("woff2")
            url("fonts/opensans.woff") format("woff") ;
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "OpenSans";
    src: url("fonts/opensansbold.woff2") format("woff2"),
            url("fonts/opensansbold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question