Developer forum

Forum » Swift » DW10 Swift - Branding page template error with custom fonts

DW10 Swift - Branding page template error with custom fonts

Martin Ottesen
Martin Ottesen
Reply

Hi DW, 

I've tried to use a custom font on one of our new solutions, and i've gotten as far as to choose the font on the branding page. As you can see below in the image, it show up with the right font.

Screenshots are from a Standard Demo solution, where i have recreated the issue.

 

But when i want to initialize the branding page by previewing it:

I end up with this template error: https://twodayco3.dw10demo.dynamicweb-cms.com/Default.aspx?ID=203

 

This only happens when i am trying to use a custom font, google fonts work as intended.

Kind Regards 

Martin

 


Replies

 
Nicolai Pedersen Dynamicweb Employee
Nicolai Pedersen
Reply
This post has been marked as an answer

Yes, seems to be a missing null check.

Added this to your template:

And will fix it in standard Swift.

Votes for this answer: 1
 
Martin Ottesen
Martin Ottesen
Reply

That did the trick, thanks Nicolai.

 

You must be logged in to post in the forum