Details
-
New Feature
-
Resolution: Won't Do
-
Major
-
None
-
None
-
None
Description
I wanna implement a special font debug feature (I call it SFNTDBG) to check the font penalty, as follows:
1. If there's a font request whose request name string (lfFaceName) is in a pattern of "SFNTDBG:AN/RN" (hereby, AN is an actual font name string, and RN is a request font name string), then the font engine remembers the pair of those two names and the current thread ID. It makes SFNTDBG active. RN is interpreted as a real lfFaceName string.
2. In GetFontPenalty function, when SFNTDBG is active, and when AN and RN and the thread ID were matched, then the font engine dumps the penalty items and the result penalty value.
3. An empty name string matches to any name.
4. After dumping done, SFNTDBG forgets the thread ID.