Page 1 of 1
Optional Google font parameters.
Posted: Mon Jul 15, 2024 12:21 am
by fender360
Hi. How do I get display=block into Google fonts optional parameters? I've tried what is described in the documentation as seen in the image attached, and also the actual code from the font parameters. But these don't work. They do not make into the CSS font file. I have to manually edit the css file.

Re: Optional Google font parameters.
Posted: Mon Jul 15, 2024 1:47 am
by crispy68
It seems to work for me. It doesn't go into the CSS font file. It is added to the link reference to the google font in the html code in the head section.
example:
Code: Select all
<link href="https://fonts.googleapis.com/css2?family=Exo+2:wght@100..900&display=block&display=swap" rel="stylesheet">
Re: Optional Google font parameters.
Posted: Mon Jul 15, 2024 12:33 pm
by fender360
Thanks but don't you have to manually edit it in. I'd like to avoid manually editing after each page publish. Docs said it should work the way I did it. Cheers.
Re: Optional Google font parameters.
Posted: Mon Jul 15, 2024 12:39 pm
by fender360
Also, I don't have a link to my fonts because they get automatically published in a css file. Each subdiectory/subfolder duplicates this same css file.
Re: Optional Google font parameters.
Posted: Mon Jul 15, 2024 12:49 pm
by fender360
here is the html:

Re: Optional Google font parameters.
Posted: Mon Jul 15, 2024 12:53 pm
by fender360
I'm using version 19.2.2
Re: Optional Google font parameters.
Posted: Mon Jul 15, 2024 2:28 pm
by crispy68
Are you hosting the fonts on your server or using Googles servers? Link to your page?
Re: Optional Google font parameters.
Posted: Mon Jul 15, 2024 4:13 pm
by BaconFries
Docs said it should work the way I did it.
What docs are you referring to within the software or from Google?.
As crispy68 how are you trying to use/insert the font(s). From you screenshot it doesn't look like you have inserted the fonts via the software. If you have inserted the css file yourself then the software cannot modify in anyway as it has noway to read it so this explains why you have to manually edit the said file. If you need help the see the following:
How do I share my project to get help?
Re: Optional Google font parameters.
Posted: Mon Jul 15, 2024 9:58 pm
by fender360
Re: Optional Google font parameters.
Posted: Mon Jul 15, 2024 10:18 pm
by BaconFries
Please see the following for help this is asked so we can actually load your project (.wbs) ourselves into the software as just viewing screenshots doesn't help!. Please also note that help is for licenced users of the software.
How do I share my project to get help?
Re: Optional Google font parameters.
Posted: Mon Jul 15, 2024 11:26 pm
by fender360
Thanks. Will do.
BTW: I had to enter my order number to join the forum. So licensed = true
Re: Optional Google font parameters.
Posted: Mon Jul 15, 2024 11:31 pm
by fender360
Does anyone know where to specify display=block for local google fonts?
Re: Optional Google font parameters.
Posted: Tue Jul 16, 2024 12:38 am
by crispy68
In my test, it does not appear that additional parameters are added if you are hosting Google fonts locally.
Pablo should be able to confirm this. Up to him if this can be added.
Re: Optional Google font parameters.
Posted: Tue Jul 16, 2024 12:41 am
by crispy68
curious...what is your reasoning for needing to add this since display=swap is already being used?