Set default font stack

Posted in: Newsmag
Post count: 9544

Hi, folks!
I’m back 🙂 Finally updating our sites from the mega-modded Newsmag 3x to NM5 as we prep to move everyhing to PHP 8.1x. Whee!

So, pardon couple of old questions, revisited for new theme.
For our sites we prefer not to use Google fonts for anything, and instead use the common industry “system font stack,” which is:

font-family: "Segoe UI",Frutiger,"Frutiger Linotype","Helvetica Neue",-apple-system,BlinkMacSystemFont,"Dejavu Sans",Oxygen-Sans,Ubuntu,Cantarell,Arial,arial,sans-serif;

What is the best way to make that our default font site wide?
I think the new theme defaults are roboto and open sans, also disabled.

Thanks 🙂 Hope that made sense 🙂

p.s., I have no issue adding a custom function to our in house custom function plugin, if not a simple default override.

Post count: 35449

Hello,
This can only be done by editing the css file in the theme and adding these font families (it should work ok in the child theme as well), or the classic option of adding these fonts manually in custom fonts – https://i.imgur.com/c0eZl8i.png
Thank you!

Post count: 9544

Hi
the custom font settings panel won’t work as system fonts are built in to the browser based on OS so that *no* local or remote fonts are loaded. Basically, same as selecting Georgia, Times, Serif — except full stack of system optimized fonts.

I know I asked this 5 years ago, but would be great to have this common “system font stack” added to the drop downs for the fonts, vs simply Helvetica neue, sans-serif, for example.

Trying to avoid hacking too many core files so that updates are possile, unlike our old setup.

A function to “add” another font selection in the drop downs, would be optimal solution?

In case there is such an option.

If not will do the CSS hack.

Thanks!

Post count: 9544

Hi
you are correct; in case anybody needs to know this. I do now remember doing a search/replace in our old style.css, basically doing search/replace for this:

font-family: 'Open Sans', arial, sans-serif;
and replacing with our desired font stack.

You can mark this as resolved. 🙂

Post count: 35449

Hello,
I’m glad you managed to set the fonts.
I have added your suggestion to our list, maybe the developers will decide to add an option like the one you mentioned.
Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.