freetype-devel
[Top][All Lists]
Advanced

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

ftdump can show the CID registry, ordering, and supplement?


From: suzuki toshiya
Subject: ftdump can show the CID registry, ordering, and supplement?
Date: Sun, 16 Apr 2023 16:21:37 +0900
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0

Hi all,

FreeType has an API to retrieve the CID registry, ordering, and supplement;
FT_Get_CID_Registry_Ordering_Supplement(), but ftdump does not use it.

In traditional usecases of CIDKeyedFont 0 and 2, we don't have to use
FreeType to obtain ROS information, because they are often written in
the plain text part at the beginning of the font files. Also, the number
of glyphs is sufficiently informative to guess the ROS of the font file.

Recently I found that the max glyph index in maxp of some OpenType/CFF
is different from any of the defined Adobe specs (maybe their coverages are
subsets of the defined glyph collection). ftdump is not a font debugger,
but it would be much more helpful if it can dump the ROS info from
OpenType/CFF.

My preliminary patch is
https://gitlab.freedesktop.org/mpsuzuki/ft2demos-mps-wip/-/commit/aa425196385b6639616b18291c7aa3a6d865a760

Does such a feature in ftdump make sense? I hope to hear your comments.

Regards,
mpsuzuki



reply via email to

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