Forum Moderators: not2easy

Message Too Old, No Replies

How to use "font-weight" ?

         

Peter_S

1:29 pm on Sep 5, 2017 (gmt 0)

5+ Year Member Top Contributors Of The Month



Hi,

Does "font-weight" readlly do something? (beside the values 400 and 700).

I am trying to make a font between "normal" and "bold", which should be values 500 and 600, but it ends to be normal or bold , nothing intermediate.

May be I am missing something.

Thank you,

lucy24

5:16 pm on Sep 5, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Doesn't it depend on the user's OS? Ostensibly Windows makes a finer distinction, while Mac doesn't. For the foreseeable future it's safest to stick with "bold" and "normal".

robzilla

8:13 pm on Sep 5, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You would need a font that supports those values. Many fonts only provide for the defaults 400 (normal) and 700 (bold).

Peter_S

9:02 pm on Sep 5, 2017 (gmt 0)

5+ Year Member Top Contributors Of The Month



You would need a font that supports those values. Many fonts only provide for the defaults 400 (normal) and 700 (bold).

Of course! Silly me!

Thank you robzilla, and lucy24 too.

lucy24

9:34 pm on Sep 5, 2017 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You would need a font that supports those values.
If the font doesn't come in bold, but the CSS and/or HTML specifies bold, the browser will improvise. Results are not nearly as ghastly as when it tries to “italicize” a font that doesn't come in italic by simply slanting the whole thing.