A
A
Andrew2014-01-22 04:06:54
css
Andrew, 2014-01-22 04:06:54

Why is @font-face not reading the font correctly?

There are third party Segoe UI fonts for the site. There is already an applied normal type of this font, which has no effects. I'm trying to apply the semi-light version, but the serif font comes out! Although the font itself is "bald", so to speak. Here is the CSS code:

@font-face {
    font-family: Segoeui;
    src: url("../fonts/segoeui.ttf");
}

@font-face {
    font-family: Segoeui;
    src: url("../fonts/segoeuisl.ttf");
    font-weight: lighter;
}

div.content-text p {
    font-family: Segoeui;
    font-weight: lighter;
}

Such garbage ... All paths are correct, checked 25 times. I tried to create a separate family or put it instead of a font without effects - all the same.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
aen, 2014-01-22
@aen

Try Bulletproof @font-face Syntax by Paul Irish.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question