mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-08 21:10:40 +00:00
text.glyphAlternates reported the default glyph as `chosen` for any character that overflows its area. A character whose style substitutes another glyph (`salt`, or `vert` in vertical type) was reported with a glyph it is not drawn with. The query now shapes such a character alone, with the rest of its grapheme in their own styles and in the text's writing direction, by the same helper text.setGlyphAlternate uses. The helper also shapes the character in the direction its paragraph sets it in, from its bidi level, so a parenthesis set right to left is reported with its mirrored glyph in both commands.