Syling - How to Font Weight?

Forum to discuss the new web client version of Servoy.

Syling - How to Font Weight?

Postby john1598360627 » Tue Jan 18, 2022 11:03 pm

CSS has a font weight.
https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight

However, when I tried setting the font weigh of a style class to a specific value, (600 for example) it doesn't work. In fact it seemed like only 'normal' and 'bold' font weights were available.

Am I missing a step in setting specific font weight values?
john1598360627
 
Posts: 169
Joined: Tue Aug 25, 2020 3:03 pm

Re: Syling - How to Font Weight?

Postby paronne » Wed Jan 19, 2022 10:18 am

Hi John,

it very much depends on the font you are using.
Many fonts have only few weights.

As described in this article https://css3-tutorial.net/text-font/font-weight/

As you can see, there is a difference between the two sentences. But you should be aware that most webfonts do not have more than two or three weights, and weight such as 'light' or 'semi-bold' is rare. The value '400' equals normal and the value '700' equals bold.


Regards,
Paolo
paronne
 
Posts: 202
Joined: Fri Nov 02, 2012 3:21 pm


Return to Servoy NGClient

Who is online

Users browsing this forum: No registered users and 8 guests