-
Notifications
You must be signed in to change notification settings - Fork 560
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Text" weight dropping out in Chrome/Windows when installed locally #341
Comments
I don't think it's related to the names but rather to the fact that Text has OS/2.usWeightClass = 450, and Chrome probably makes an assumption that font-weight only goes in full 100s for local fonts. |
Erm... But font-weight: normal = 400, and the font has usWeighClass 450. So that won't work. For local fonts, I think some browsers use usWeightClass for font-weight. For @font-face webfonts, you declare which font-weight a given font file corresponds to so usWeightClass is not used. |
AFAIK, the names don't matter. |
I agree normally the names don't matter but I think here it does matter for the following reasons:
I have a hypothesis that Chrome on Windows is using some sort of map to match style names to approximate weight numbers, and that map doesn't include unusual/arbitrary weight names like "Book", "Ultra", "Text" and "FooBar". |
Hi @colinmford, thanks for the extensive report! What is your impression here: is this a Chrome issue or something that can be fixed easily in the fonts? |
@BoldMonday It seems like it's an issue in Chrome, which they now seem to be investigating. Just wanted to mention it here in case you had anything to add to the report since Plex was one of the fonts being affected by this bug. |
I figured as much. Lots of folks within IBM are using Chrome so it's good to know this is not a bug in Plex. We just try to be very precise and consistent with all the settings in the font info. |
Closing but let me know otherwise. |
Hey all,
While investigating a bug in a web app, I found an issue in Chromium that the Text weight of IBM Plex Sans/Serif exposes. It's not a problem with the font (I'm fairly certain), but I wanted to link to the ticket here since it affects Plex (among other fonts with "non-standard" style names such as "Text", "Book", etc), in the hopes that someone else here can confirm the issue and/or can help get it resolved. Thanks!
https://bugs.chromium.org/p/chromium/issues/detail?id=1130792
The issue can be reproduced as follows:
~/Library/Fonts
on Mac,C:/Windows/Fonts
on Windows)monospace
font.The test page declares each style of IBM Plex Sans in the following manner:
The font's "font family" field (Windows Name ID 1) is reproduced in the
font-family
CSS property. Thefont-weight
andfont-style
CSS attributes reflect the font's "font style" field (Windows Name ID 2).i.e.
or
etc.
This is how the fonts are referenced if a user makes an HTML document from a Word document, for example.
Thanks!
The text was updated successfully, but these errors were encountered: