mirror of
https://github.com/penpot/penpot.git
synced 2026-11-11 04:20:42 +00:00
Zhuyin, Pinyin and emphasis marks over horizontal text were placed against an em box bottom-aligned to Skia's tight glyph rect, which spans the hhea ascent and descent. In CJK faces the descent reaches past the em box, so Zhuyin columns sat about 0.17 em below their base, and over annotations relied on a hand-tuned clearance. Place them against the ideographic em box (OS/2 typo metrics) of the font that shaped each base, centred on the line baseline, the same metrics vertical text uses for upright glyphs. AI-assisted-by: claude-opus-5-5