mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-09 22:22:07 +00:00
An installed face added for characters the interface fonts lack (Microsoft YaHei for Simplified Chinese on Windows, for example) now gets a FontTweak y_offset_factor computed from its ascent, descent and line gap against the first face of the Proportional family, so its glyphs share that face's baseline instead of centering the difference in row height. The bundled faces and Latin text do not move. This follows designcraft#394 (baseline_tweak from line metrics) and effectcraft#1395. vectorcraft-text gains line_metrics, and a test face with a CJK system face's vertical proportions checks the baseline at 13, 24 and 40 pt in the interface families.