Developer forum

Forum » Swift » Fonts not shown correct

Fonts not shown correct

Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Hi There,

I have setup some fonts in the Swift design settings. When I look at the page, the css shows the fonts are correct.

But the content reverts back to "Times new Roman". I have rebuilt the solution, forced a refresh, cleared cache, recycled the apppool, but it keeps showing as Times.

I have another solution where I did change the font without issue, so I'm a bit out of idea's here...

Any ideas?

Justin


Replies

 
Nicolai Pedersen
Reply

Just tried those 2 fonts with no issue.

Do you have a URL? And what does the network tab in developer tools says about downloading the fonts?

 
Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

It is a local dev site. It seems the PlayFair font is downloading (but not shown) But I do not see the Exo2.

 
Nicolai Pedersen
Reply

What do you have in this folder and file?

And what browser do you use?

BR Nicolai

 
Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

I Use Chrome, latest version: Version 96.0.4664.45 (Official Build) (64-bit)

This is the folder:

This is the (top of) file Swift_branding_styles_3.css (PlayFair is also defined further down)

I'll try to do a full reboot as well after this post ;-)

Have You Tried Turning It Off And On Again GIFs | Tenor

 

 
Justin Sjouw Dynamicweb Employee
Justin Sjouw
Reply

Restarting did not solve this, and I can see this is not only a problem on the local dev version, but also on the staging server: http://melgers.staging.dynamicweb-cms.com/ 

 
Nicolai Pedersen
Reply
This post has been marked as an answer

It is the space in the font name. Not sure why it works locally.

I made a fix for one template, Swift_branding.cshtml, Devops#6017

Find it attached. Fixed it on the staging.

BR Nicolai

Votes for this answer: 1

 

You must be logged in to post in the forum