Web helvetica neue light
![web helvetica neue light web helvetica neue light](https://cdn.myfonts.net/cdn-cgi/image/width=720,height=360,fit=contain,format=auto/images/pim/10000/269795_6360c6ba5436bdd3e29e35efbc52b62d.png)
The weight NSFontManager reports via availableMembersOfFontFamily is incorrect for Helvetica Neue Ultra Light face.įirefox uses the NSFontManager availableMembersOfFontFamily: method to determine the faces for a given font family along with their weights and traits.
![web helvetica neue light web helvetica neue light](https://freefontsdownload.net/data/502/h/helvetica-light/map/0-charmap-helvetica-light.png)
One solution would be to read in the OS/2 table ourselves but that's completely beyond the scope of this bug. With two faces that share the same weight, there's no way via CSS attributes to distinguish between the two.
![web helvetica neue light web helvetica neue light](https://i0.wp.com/www.dafontfree.io/wp-content/uploads/2020/05/3-Nimbus-sans-light.png)
I'm stumped as to how they are calculating these weights, maybe they're just "analyzing" the style name instead of pulling in the OS/2 weight or the Panose weight? Bizarre. So the information in the fonts is correct, I'm not sure how exactly the Apple API is coming up with an Apple weight of 3 instead of 2 for the Ultra Light face. Using the Apple font tools (ftxdumperfuser) I dumped out the OS/2 tables of both fonts: (For list of Apple weight with CSS equivalents, see below) Psname: HelveticaNeue-UltraLight, face: UltraLight, apple-weight: 3, css-weight: 2, traits: 01000004 Psname: HelveticaNeue-Light, face: Light, apple-weight: 3, css-weight: 2, traits: 01000004 It looks like this api is returning the weight of the Ultra Light face incorrectly: Based on data coming back from NSFontManager, both faces are "200" weight fonts.Īt startup we set up a font list containing the names of all faces within each font family along with the associated weight and traits, using NSFontManager availableMembersOfFontFamily.