0
Welcome Guest! Login
0 items Join Now

SOLVED replacing the local fonts with Latin Extended subset versions?

    • minbori's Avatar
    • minbori
    • Jr. Rocketeer
    • Posts: 21
    • Thanks: 0

    SOLVED replacing the local fonts with Latin Extended subset versions?

    Posted 4 years 2 months ago
    • Hi, we've set up a Wordpress site running on the Helium theme and it's running very well. However we've run into a font problem.

      For this project we are limited to self-hosted fonts, so we set up all our pages to use the local Raleway and Lato fonts included with the Helium install (THEME_DIR/fonts). However we've added some new languages and it seems the included Raleway and Lato fonts only include the Latin subset, not the Latin Extended subset.

      Is there a way to simply replace the local versions of those local fonts with Latin extended versions?

      I'm trying to figure out how to include the missing characters without disrupting existing CSS or adding a new custom font that won't be available in the font picker.

      Thanks for any suggestions!
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED replacing the local fonts with Latin Extended subset versions?

    Posted 4 years 2 months ago
    • 1. To add a custom font to Gantry 5 please read this http://docs.gantry.org/gantry5/tutorials/fonts .

      2. local fonts do show in the font picker if you add them correctly (see above) (i.e. raleway shows).

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • minbori's Avatar
    • minbori
    • Jr. Rocketeer
    • Posts: 21
    • Thanks: 0

    Re: SOLVED replacing the local fonts with Latin Extended subset versions?

    Posted 4 years 2 months ago
    • Ah, then I must not be doing it right :-) Thanks Mark.
    • minbori's Avatar
    • minbori
    • Jr. Rocketeer
    • Posts: 21
    • Thanks: 0

    Re: SOLVED replacing the local fonts with Latin Extended subset versions?

    Posted 4 years 2 months ago
    • Mark, I have followed docs.gantry.org/gantry5/tutorials/fonts and am able to apply my new fonts via CSS, but they are not appearing in the Font Picker.

      I have put the font package files into THEME_DIR/custom/fonts, added the appropriate statements to the THEME_DIR/custom/scss/custom.scss file, and clicked "Recompile CSS". Am I missing a step?
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13484
    • Web Designer/Developer

    Re: SOLVED replacing the local fonts with Latin Extended subset versions?

    Posted 4 years 2 months ago
    • Yes. If you want the font to show up in the font picker then you have to alter the templates original theme.yaml file (it's not possible to override this file) - be aware that any template update would overwrite this file against so keep a backup of your changes.

      /templates/g5_helium/gantry/theme.yaml

      Regards, Mark.
    • The following users have thanked you: minbori

    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.
    • minbori's Avatar
    • minbori
    • Jr. Rocketeer
    • Posts: 21
    • Thanks: 0

    Re: SOLVED replacing the local fonts with Latin Extended subset versions?

    Posted 4 years 2 months ago
    • Ah, yes, that was the part I was missing. However, if the font picker additions aren't update-proof, I may just go ahead and apply the Latin Extended fonts manually via CSS for the pages where the characters are an issue.

      Thanks again for the speedy help.

Time to create page: 0.073 seconds