mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 11:05:03 +00:00
The system font scan built each face from its name, fvar, OS/2, head and post tables only, so a family that was found but not loaded never had Thai in its traits. The font menus' Thai filter left such families out, and Show Similar Fonts grouped them with the other scripts until they were loaded. - A face sets Thai when its OS/2 table allows it (no OS/2 table, the Thai Unicode range, bit 24, or the Thai code page, bit 16) and its character map has Thai, loaded or scanned. - The scan reads the cmap table of such a face only, up to 16 MiB. The search for a document's missing fonts reads no cmap table, so its byte limit covers the same tables as before.