[Fontconfig-bugs] [Bug 29497] Support for sFamilyClass font attribute to allow searching by serif style

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Mar 23 21:03:39 UTC 2018


https://bugs.freedesktop.org/show_bug.cgi?id=29497

--- Comment #25 from Mingye Wang (Arthur2e5) <arthur200126 at gmail.com> ---
Aside from the SFNT sFamilyClass/Panose values, a more primitive form of
self-identification is found in PFM files that accompany some PostScript Type1
fonts. This single-byte identification is named as "dfPitchAndFamily" in
Adobe's documentations[1]; structually, the higher four bits encodes a generic
class, while the least significant bit is set for proportional fonts.
   [1]:
https://www.adobe.com/content/dam/acom/en/devnet/font/pdfs/5178.PFM.pdf#page=7

A fuller definition of the higher four bits can be found in fontforge
source[2]. (Yes, Windows FNT files have that byte too...) It includes 0x00 for
"don't care", 0x10 for "serif", 0x20 for "sans", 0x30 for "fixed" (mono? why is
it separate from the least significant bit?), 0x40 for "script", and 0x50 for
"decorative".

  [2]:
https://github.com/fontforge/fontforge/blob/b9149c1/fontforge/winfonts.c#L95-L102

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20180323/70063af8/attachment.html>


More information about the Fontconfig-bugs mailing list