Text change problem (I've read relative posts)

Mauer Themes Support Essentialist Text change problem (I've read relative posts)

This topic contains 2 replies, has 2 voices, and was last updated by  Paul 1 year, 10 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1425

    andrey1234
    Participant

    Hello. What is the problem? I’ve uploaded font on my hosting: path is right.
    This is code I put in the end of style.css

    @font-face {
    font-family: Roboto;
    src: url(“fonts/Roboto-Bold.ttf”);
    font-weight: bold;
    }

    p {
    font-family: Roboto !important;
    font-weight: bold;
    }

    Nothing happens. Text in paragraphs remains the same. Please help.

    #1426

    andrey1234
    Participant

    Problem solved.
    If anyone have a problem, that you change code and nothing happens.
    Clear your browser cash 🙂

    #1427

    Paul
    Keymaster

    Hello Andrey,

    Great to know that you’ve resolved your issue.

    Please be sure to know that including a TTF with @fontface is not a good practice (e.g. in terms of browser support). It’s best to generate a webfont in such cases. For instance you could use FontSquirrel’s famous generator (that, btw, lets you choose subsetting in ‘expert’ mode).

    Also, for fonts that are available on Google Fonts (like Roboto), you may find it useful to use Google Fonts. It’s easier and faster.

    Regards,
    Paul

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.