• Resolved Bookman53

    (@bookman53)


    I have Raleway, a Google font set as a custom font. Several font files are in the wp-content folder. In the time since I set it up, I’ve discovered that I need more font weights. I added them in the settings, but they are not being loaded on the server.

    How do I force Twentig to copy all of the font weights that I selected to the server? The weights I added are available. I know that because they are being called and loaded from Google.

    Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Twentig

    (@twentig)

    Hi,

    I’ve tested on my side to add more font weights, and it works correctly. Maybe it’s a cache issue or a conflict with another plugin.
    Do you still have the issue? If so, would you please share the URL of your website?

    Thanks,
    Yann

    Thread Starter Bookman53

    (@bookman53)

    I can add more font weights in the block editor and they appear to be there – selected, etc.. If I look in the code in the head of the page I see references to “Raleway…100 900”, which as I understand it, should include all available weights between 100 and 900. I see that for normal and italic versions. Yet, on every page, all page speed tools complain about this call back to Google for Raleway 700:

    https://fonts.googleapis.com/css?family=Raleway:700,regular&display=optional

    That is why I don’t believe all of the font weights actually copied to the server.

    The same issue occurs on any post, but you can see the issue here: https://thetechiesenior.com/where-are-symbols-in-openoffice-writer/.

    Thanks.

    Thread Starter Bookman53

    (@bookman53)

    P.S. The same thing happened with Raleway semi bold (600). I attempted to use it but the browsers requested it from Google instead of the server. I replaced those with bold (700) thinking perhaps it had copied to the server correctly. Apparently neither 600 or 700 are actually on the server.

    Plugin Author Twentig

    (@twentig)

    Yes, the reference to Raleway…100 900 that you see in the head of the page is added by Twentig and links to the Raleway font files hosted on your server. Indeed, it means all weights between 100 and 900 are included (variable font).

    The URL which causes the conflict is added by another plugin: <link href="https://fonts.googleapis.com/css?family=Raleway:700,regular&display=optional" rel=stylesheet ezfontsrc="//fonts.googleapis.com/css?display=optional&family=Raleway%3A700%2Cregular&subset=latin" as=style>

    Thread Starter Bookman53

    (@bookman53)

    When you say the conflicting url is added by another plugin, are you referring to the bit that starts with ezfontsrc? If so, I’m pretty sure that looks like a URL added by Ezoic and their site optimization system. I’ll check with them on that one. Please reply if you are referring to something else.

    Thanks for the quick reply.

    Plugin Author Twentig

    (@twentig)

    The font URL is optimized by Ezoic. But is seems that the Kadence Blocks plugin adds the URL. On your page, you’re using a Kadence Advanced Text block which font-family is set to Raleway:
    .kadence-advanced-heading-wrapper .kt-adv-heading_8704f0-c3[data-kb-block=kb-adv-heading_8704f0-c3]{text-align:center;font-size:22px;font-weight:700;font-family:Raleway}

    For this Advanced Text block, you can try to set the font-family as default (as all your headings are globally set to Raleway).

    Thread Starter Bookman53

    (@bookman53)

    Thank you. Just in time, as I was writing a support ticket to Ezoic. I’ll follow your lead first and see if I can sort it out.

    Thanks again.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Store additional Google fonts locally’ is closed to new replies.