Keith Packard
2005-Nov-21 08:50 UTC
[Fontconfig] fontconfig should set font weight with usWeightclass value
Around 23 o''clock on Mar 7, "Ken Joseph" wrote:> So I think it makes more sense if fontconfig assigns > font weight values based on usWeightClass value in OS/2 font table > rather than just the bold bit.That''s a good idea. Can you file a bug in the fontconfig bugzilla describing this? (http://fontconfig.org has a pointer). -keith
Ken Joseph
2005-Nov-21 08:50 UTC
[Fontconfig] fontconfig should set font weight with usWeightclass value
Hi, It seems that fontconfig assigns a font weight value of 200 to all fonts which have their bold bit set in the fsSelection value of OS/2 font table regardless of whether the font is demibold, bold or black. This causes applications to pick a wrong font when there are several fonts with the same family and bold bit set but with different styles. For example, I have Zurich Bold and Zurich Black typeface. They are both Zurich family and both have set their bold bit on. But they are both given font weight value 200. Somehow applications see them as same face and display them as the same Bold or Black face. They should be given different font weight value greater than 100. I think font weight values should be set not by the bold bit but by the usWeightClass value in the font OS/2 table. The OpenType OS/2 table information on Abode site http://partners.adobe.com/asn/developer/opentype/os2.html shows the following table. usWeightClass Description ============= ========100 Thin 200 Extra Light 300 Light 400 Normal (Regular) 500 Medium 600 Demibold 700 Bold 800 Extra Bold 900 Black So I think it makes more sense if fontconfig assigns font weight values based on usWeightClass value in OS/2 font table rather than just the bold bit. ________________________________________ ??? ???? ?? ??! (SMTP, ???? ??? ??) http://www.netian.com/premium_mail/main.html