BUG: Google Fonts Can Fail

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

BUG: Google Fonts Can Fail

GregChapman
I have not yet tracked down the key element in the cause but the strongest contender appears to be having a custom domain.

Symptom:
When viewing a forum that includes Google fonts selected through:
Options > Application > Change appearance > Fonts
on a device that has the named font installed the forum correctly renders the text in the selected font.
On a device that does not have the font installed the text is rendered in Nabble's default (possibly the browser default. Sorry, not determined which yet!)

A good case study for investigation would be the private forum at:
https://forum.stalhambaptist.org.uk/
The code for the forum includes for following:
<link href='http://fonts.googleapis.com/css?family=Bree+Serif' rel='stylesheet' type='text/css'/>
<style type="text/css">
.second-font, h1, h2, h3, h4, h5, h6 {
font-family: 'Bree Serif';
}
</style>

<link href='http://fonts.googleapis.com/css?family=ABeeZee' rel='stylesheet' type='text/css'/>
<style type="text/css">
body, input, button, textarea, select {
font-family: 'ABeeZee';
}
</style>
The forum has a number of sub-forums only some of which are subject to embedding and only one
https://www.stalhambaptist.org.uk/bulletin.php
has embedding enforced (through "Redirect to:"). It is also the only page visible by the public.

On my desktop (Linux Mint) I have those fonts installed as I use them in documents I produce for the church, but on my phone or tablet I do not have those fonts installed and the forum appears to be rendered in the browser's default font on those devices (given that Nabble's default fonts are also not available on those devices) - so you could argue that Nabble's default fonts also require a review!
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: BUG: Google Fonts Can Fail

Devilin Pixy
With the move to https for my forum, it appears that no fonts are available at all due to the calls being made to Google Fonts API (Web Fonts) over http. This will result in those calls being blocked (mixed content) as they required to be made over a secure connection (https) as well.

What you end up seeing is the browser default font.

I actually even doubt that Nabble makes use of custom (named) fonts, which should be available on the server itself, with a reference to the location (@font-face). I could have missed it while going through the several sources, but to me it looks like only Google Web Fonts are being used, located in 'GWF\', with the option to choose any other Google Web Font available.

The use of Google Web Fonts is fine, as they are highly compressed and downloaded fast on demand. Then they are stored within the browser, for use elsewhere too. Just too bad they will be blocked when you have switched to https  (mixed content), because calls to them are still using http.

I hope Nabble will fix this soon, which is easy, as there are only a couple of locations where they 'forgot' to change http to https.
Reply | Threaded
Open this post in threaded view
|

Re: BUG: Google Fonts Can Fail

Israel <Nabble>
Administrator
Google Web Fonts has been fixed.
Reply | Threaded
Open this post in threaded view
|

Re: BUG: Google Fonts Can Fail

GregChapman
Doesn't seem to be working at:
https://forum.stalhambaptist.org.uk/
on my Android tablet yet.  :-(
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: BUG: Google Fonts Can Fail

Israel <Nabble>
Administrator
Is it working on your desktop machine?
Reply | Threaded
Open this post in threaded view
|

Re: BUG: Google Fonts Can Fail

GregChapman
This post was updated on .
Yes, but as reported in my original post, that (Linux Mint/Firefox) machine has the fonts downloaded to it. My Windows/Firefox Laptop and Android/Chrome tablet and phone do not.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: BUG: Google Fonts Can Fail

Devilin Pixy
In reply to this post by Israel <Nabble>
Israel <Nabble> wrote
Google Web Fonts has been fixed.
The forum initially still loaded with the same issue, but after changing the fonts to another and back again it now indeed appears to work on both embedded and direct, for me at least. Thank you.
Reply | Threaded
Open this post in threaded view
|

Re: BUG: Google Fonts Can Fail

Devilin Pixy
In reply to this post by GregChapman
@GregChapman: When I visit the forum you linked above, I get the same issue I initially had. Have you tried switching fonts to another and back again to see if that solves it for you?
Reply | Threaded
Open this post in threaded view
|

Re: BUG: Google Fonts Can Fail

GregChapman
Will try later today and report.
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: BUG: Google Fonts Can Fail

GregChapman
Thanks Devilin Pixy!

I can confirm resetting the font worked.

I now have the correct fonts displayed on a device without those fonts installed!
Volunteer Helper - but recommending that users move off the platform!
Once the admin for GregHelp now deleted.
Reply | Threaded
Open this post in threaded view
|

Re: BUG: Google Fonts Can Fail

Devilin Pixy
GregChapman wrote
Thanks Devilin Pixy!

I can confirm resetting the font worked.

I now have the correct fonts displayed on a device without those fonts installed!
Happy to hear that!