freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft] How do you reference FreeType family names via HTML CSS?


From: Paul Pedriana
Subject: [ft] How do you reference FreeType family names via HTML CSS?
Date: Wed, 24 Jul 2013 19:01:45 -0700
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

I need to use FreeType to load fonts identified with HTML CSS, but I'm not immediately seeing how this is possible, due to how FreeType sets the FTFace family_name field. For example, when I open the font HelveticaLTStd-BlkCond.ttf with FreeType, it sets the family_name to "Helvetica Lt Std" and the style_name to "Condensed Black". As far as I know, CSS doesn't provide any means to address such a font, as the CSS font-style property is limited to one of three values: normal, italic, oblique. So the "Condensed Black" property is invisible to CSS. I've looked at the .ttf file in FontLab and found that it has two "Family Name" values, and one of them is what would work ("Helvetica Lt Std Cnd Blk"), but FreeType doesn't provice this family name.

Does anybody know the proper resolution of this problem? What do web browsers that are based on FreeType do?

Thanks.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]