RC5: Font variations

Hi!

I have the only one font selected, with three variants:

image

Fonta Manager is enabled, and under Typography, “Body and Content” and “Headings” are set to “Body” from the Font Manager.

I am noticing two things:

1.

If I untick for example the 700 - Bold font-weight, and save the changes, every element on the entire website that was using it will have empty font weight. If I tick this settings back (select the 700 fon-weight again), the empty font weight will remain, so the font-weight that was chosen before, needs to be manually selected for each element on each page on the website.

2.

The site has one font (Robobo) with three font-weight selected. Why 5 requests for the Roboto font?

image

Thanks!

Thanks!

  1. This is actually intentional. It doesn’t go change anything in your pages in case during the course of managing fonts you add one with the same weight. There’s also not an effective way to go retroactively update all the content on the site.

  2. Fixed for next patch. Should not be doing that at all.

1 Like

Hi @alexander! I have noticed that on some sites the number of fonts requests are reduced. However, I am also finding Pro 4.0.7 sites still making five requests for only one font with three variants. Some are making three requests for the same thing, and some only one request. I cannot understand the pattern of this.

Thanks!

Hi @Misho,

Thanks for the follow up on this one. I’m not sure what else it could be, but I could check one of the sites with the issue if you don’t mind adding login credentials. Thanks!

Hi @alexander, sure. Details in the secure note.

Thanks!

Thanks! I think I found out what’s happening here. This is the Google Font request being made:

<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Montserrat:300,300i,400,400i,700,700i&#038;subset=latin,latin-ext&#038;display=auto" type="text/css" media="all" data-x-google-fonts />

That is actually the only thing we have control over. The stylesheet from google will determine what fonts actually get loaded. There are potentially two reasons we’re getting more than three requests:

  • It is loading the italic versions as well which are separated woff2 files
  • Google splits unicode ranges into separate woff2 files. If a character is in a particular range, it will go fetch an additional font file.

Considering only one request goes out to the API, I think what we’re seeing here is correct.