Files
vectorcraft/docs
dotCooCoo 5b0fbec416 Retype: glyphs drawn alike in several fonts count as one outline in near matching
Near matching compared a shape with the 256 glyphs closest to it in
proportion, over every indexed face. Faces that draw the same glyphs
(Noto families sharing their Latin dots, copies of a font under other
names) each took places among the 256, and when glyphs tied, which of
them kept a place depended on an unstable selection. A simplified
period, turned with its line, ranks near the 240th place among the
faces craft-fonts supplies, so each face loaded after them pushed some
fonts' periods out: with four copies of Source Sans 3 loaded,
Source Sans 3's period was no longer compared and Retype left the period
of "no." an outline. In a full vectorcraft-engine test run the test
fonts that other tests load into the shared font database did this to
turned_near_matched_round_glyphs_keep_the_line_turn.

Each indexed glyph now carries a hash of its outline. Ranking groups the
glyphs drawn alike into one outline, keeps the 256 closest outlines
with every glyph of each, and breaks ties by index order. A group is
fitted once and its poses go to each of its glyphs, so the comparisons
spent do not grow with the number of faces that draw the outline.

docs/mcp.md describes the limit as 256 outlines.
2026-11-30 02:55:01 -08:00
..
2026-11-29 18:44:15 -08:00