Developer forum

Forum » Dynamicweb 10 » Load of font weights according to typography settings

Load of font weights according to typography settings

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I have a project where I have defined to use a font with weight of 900 for heading a dn a regular one for the body.

The typography json looks like this:

{
  "Id": "diventura",
  "Name": "Diventura",
  "BaseFontSize": 18,
  "BaseFontScale": 1.2,
  "ParagraphFont": "Albert Sans",
  "ParagraphFontWeight": 400,
  "ParagraphLineHeight": 1.4,
  "HeadingFont": "Albert Sans",
  "HeadingFontWeight": 900,
  "HeadingLineHeight": 1.6,
  "ButtonFont": "Albert Sans",
  "ButtonFontWeight": 700,
  "ButtonLineHeight": 1.5
}

According to this setup, the font whould be loaded with 400, 700 and 900 weigths.
However, the css file loading the foint only loads  the 400 weight:
@import url('https://fonts.googleapis.com/css2?family=Albert%20Sans:wght@400&display=swap');

Do I need to make another setting in order to load the other 2 weights?
Thank you,

Adrian


Replies

 
Anders Ebdrup
Reply

Dear Adrian,

I believe that this has already been bugged: https://github.com/dynamicweb/Swift/issues/47

Best regards, Anders

 

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Anders,

Thank you very much for the info. I have not noticed it.

I will update my solution to use the latest DW10 version.

Thank you,

Adrian

 

You must be logged in to post in the forum