Files
vectorcraft/docs
dotCooCoo 3e0a3f6cc7 Retype: outline comparisons in near matching count toward its work limit
Near matching groups the glyphs drawn alike by a hash of their outline
and compares each glyph's outline with the outlines in its hash bucket.
Those comparisons were not counted toward the work limit, and the hash
is not collision-resistant: a font with many glyphs whose outlines hash
alike made each new glyph compare with every outline before it, so the
work grew with the square of the glyph count. Each comparison now takes
one unit per element of the glyph's outline from the work limit, and a
glyph is compared with at most 4 outlines of one hash; past them, it is
an outline of its own. docs/mcp.md describes the new count.

The engine test helper lines_in_family took the line's face from
RetypeIndex::matches, which keeps the first 16 matches over every face.
When other tests had loaded more than 16 copies of Source Sans 3 that
draw the i alike, the family the test asked for could fall past them,
and the helper would use another face, without its kerning, so
a_word_space_after_a_glyph_kerned_toward_it_is_kept_past_the_glyphs_measured
could fail in a full engine run with craft-fonts. The helper now reads
all_matches, as Retype does.
2026-11-30 04:52:29 -08:00
..
2026-11-29 18:44:15 -08:00