Wednesday, October 3, 2007

Identify Bold, Italic fonts

Font specifications state that "fsSelection" bits in "OS/2" table (or "macStyle" bits in "head" table) determine whether the font was designed with features like "Italic", "Bold" etc.

"fsSelection" bits ->
Bits 0 & 5 can be used to determine if the font was designed with these features or whether some type of machine simulation was performed on the font to achieve this appearance.

Bit 0 -> Italic if set as 1
Bit 5 -> Bold if set as 1

No comments:

Post a Comment

Search