Comments on: font-weight https://css-tricks.com Tips, Tricks, and Techniques on using Cascading Style Sheets. Tue, 31 May 2022 14:16:02 +0000 hourly 1 https://wordpress.org/?v=6.1.1 By: Andrés https://css-tricks.com/almanac/properties/f/font-weight/#comment-1659298 Wed, 23 Jan 2019 13:08:52 +0000 http://css-tricks.com/?page_id=22055#comment-1659298 Hi! I noticed how the typeface is deformed by the font-weight rules in Linux (Chrome/Chromium and Firefox at least), they glyph height is decreased in some cases as the font-weight increases. I guess it’s some kind of ugly bug.
Screenshot: http://oi63.tinypic.com/2lsi0xh.jpg
Notice the height of the capital “T” letter related to the “h” letter, also the numbers.

]]>
By: genesisgallery1 https://css-tricks.com/almanac/properties/f/font-weight/#comment-1652814 Sat, 20 Oct 2018 22:56:15 +0000 http://css-tricks.com/?page_id=22055#comment-1652814 It’s 2018 and you finally answered what I’ve been looking up for 2 days. So bolder & lighter are relative to current font weight. Why doesn’t 3wschools just say that! Thank you!!

]]>
By: Bodo https://css-tricks.com/almanac/properties/f/font-weight/#comment-1613258 Thu, 23 Nov 2017 09:04:12 +0000 http://css-tricks.com/?page_id=22055#comment-1613258 Note that according to the W3C specifications the keywords ‘bolder’ and ‘lighter’ do not use every possible variant available in the font. Instead for ‘bolder’ only 400, 700 and 900 and for ‘lighter’ only 100, 400 and 700 are used.

See for example “Meaning of relative weights” here:
https://developer.mozilla.org/en-US/docs/Web/CSS/font-weight

]]>
By: Thoman https://css-tricks.com/almanac/properties/f/font-weight/#comment-1603761 Sun, 28 Aug 2016 15:26:18 +0000 http://css-tricks.com/?page_id=22055#comment-1603761 Thanks for the write-up on this. I’m actually trying to find out the way that Photoshop handles the use of their bold button – definitely don’t think it’s using the bold variation from the actual font unfortunately.

Johannesburg Website Design,
Thoman

]]>
By: Pratik https://css-tricks.com/almanac/properties/f/font-weight/#comment-1598158 Sat, 21 Nov 2015 06:50:45 +0000 http://css-tricks.com/?page_id=22055#comment-1598158 In Open sans Demo though the 600 version is available both 600 and 700 almost look same.
I am working on a project which is using open sans from google fonts i used 600 weighted variant for navigation bar and after some day they started looking like 700. Is there any problem in google fonts style sheets or they are not serving proper fonts.

]]>
By: beast https://css-tricks.com/almanac/properties/f/font-weight/#comment-1597018 Fri, 18 Sep 2015 16:34:41 +0000 http://css-tricks.com/?page_id=22055#comment-1597018 NOOOOOOBS THIS IS EASY

]]>
By: aw media webdesign https://css-tricks.com/almanac/properties/f/font-weight/#comment-1591996 Mon, 19 Jan 2015 11:30:06 +0000 http://css-tricks.com/?page_id=22055#comment-1591996 In Win7 with Chrome and Open Sans 300,400 and 600 included it just shows two variations(400 and 700). So, Louis’ recommendation to use a font-weight which shows up nice in all situations is the best practical solution.

]]>
By: gg https://css-tricks.com/almanac/properties/f/font-weight/#comment-1585917 Wed, 15 Oct 2014 10:51:28 +0000 http://css-tricks.com/?page_id=22055#comment-1585917 In reply to Noufal Binu.

tunne unnu

]]>
By: Noufal Binu https://css-tricks.com/almanac/properties/f/font-weight/#comment-1454158 Thu, 27 Mar 2014 04:04:05 +0000 http://css-tricks.com/?page_id=22055#comment-1454158 Why css bold keword not working without span, but font-weight: normal; is working.

]]>
By: Louis Lazaris https://css-tricks.com/almanac/properties/f/font-weight/#comment-657881 Tue, 12 Nov 2013 22:29:30 +0000 http://css-tricks.com/?page_id=22055#comment-657881 In reply to WM Spielplan.

I don’t recommend that, but you’d have to use a browser hack:

http://browserhacks.com/

I don’t know off hand if there’s one you can use for what you want, but you can search that site. You could also use UA detection, but that’s even worse.

Best choice: Use a weight that looks pretty good everywhere, even if not perfect.

]]>
By: WM Spielplan https://css-tricks.com/almanac/properties/f/font-weight/#comment-656560 Tue, 12 Nov 2013 12:26:00 +0000 http://css-tricks.com/?page_id=22055#comment-656560 Hello,
can i use different font-weights for different browsers? I use the FF Dagny Pro font via typekit in light and it is a good read in Safari, but a terrible one in Firefox. So i would use font-weight: 200; for Safari and for other Browsers font-weight:400;

Is it possible to do that? Thanks!

]]>
By: Daniel https://css-tricks.com/almanac/properties/f/font-weight/#comment-620075 Wed, 30 Oct 2013 22:01:53 +0000 http://css-tricks.com/?page_id=22055#comment-620075 Great article as it points out the many browser support problems that I have been having. I found certain browsers were not reading the same font weights, even when declaring the varying weights with a link tag in the head. Google Chrome seems to ignore the font weight 400 even with a supported google font weight at 400.
The only solution I found was to declare these weights as “normal” to get it to work but it confused me as to why it was happening where in all other browsers it works fine. It may just be this particular font but it certainly puzzled me.

]]>
By: Louis https://css-tricks.com/almanac/properties/f/font-weight/#comment-563502 Fri, 27 Sep 2013 22:12:24 +0000 http://css-tricks.com/?page_id=22055#comment-563502 In reply to Petr Chutny.

No, not necessarily. “bolder” is not an absolute weight, but is relative to the existing font’s boldness. So it could map to 700, if the font starts at a regular weight. It’s a little confusing, but just realize it’s not relative to the “bold” keyword, it’s relative to the boldness (or lightness) of the font, whatever that currently is.

]]>
By: Petr Chutny https://css-tricks.com/almanac/properties/f/font-weight/#comment-563291 Fri, 27 Sep 2013 18:37:41 +0000 http://css-tricks.com/?page_id=22055#comment-563291 Hello, thanks for the article! I am still little confused – bolder should be more than bold, so it may be 800,900?

]]>