mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-07 18:03:32 +00:00
text.setGlyphAlternate looked for the character's glyph only in a cluster as long as the character. A character followed by a combining mark is shaped in one cluster with the mark, so the lookup found nothing: under a substituting feature such as salt, `gid: null` reported the default glyph instead of the one drawn, and a request for the default glyph changed nothing. The lookup now also takes a cluster that holds the character's grapheme, and in a cluster of several glyphs takes the character's default glyph or one of its alternates. Text that overflows its area is shaped with the whole grapheme.