This component allows you to set the main site font, and optionally separate fonts for headlines and monospaced text (code blocks). You can also choose a font weight in each case, and increase the overall font size.
Behind the scenes this sets up a little bit of CSS along with Googleās font <link>. Note that this is relying on Google to serve the font files from https://fonts.googleapis.com/.
Should this work with published pages or does it need to be updated for the new feature? Itās showing as the correct font-family, but itās not displaying the font on published pages. Thanks!
We have a theme selection step that was just added to the site setup wizard a couple days ago, and this changed how fonts were applied in Discourse generally, so I had to make the component-added style more specific.
I just discovered that this component does not work for /pub/ (published) pages. The fonts are not loading on these pages resulting in a default Times New Roman alike font.
The published page tries to load the google font through the theme component:
The font file not being loaded on the published page, it doesnāt fall back to the font-family variable `Arial, sans-serif and uses Times New Roman instead.
There may be room for improvement here as long as the published pages can access the modifications required.