mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 17:56:50 -06:00
In a PDF (or the PDF part of an .ai file), a glyph of a subset font that no ToUnicode map, CID table or character map of the font program names was drawn as outlines, so one text object came in split: "RADA" as the type "ADA" plus the R's outline. Such a glyph is now looked for in the installed face of the font's name: the first character (of those single-byte fonts encode: ASCII, Latin-1, Latin Extended-A, punctuation, the euro and trade mark signs, fi and fl) whose glyph draws the same outline, point for point within 2/1000 em, names it. A subset carries the font's own outlines, so an installed copy of the same font finds every glyph. Other versions of the font, empty glyphs and glyphs that are no character still keep their outlines, with the warning as before. Results are cached per glyph. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>