mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-16 13:08:59 +00:00
Show Sample (Hide Sample when it shows) in Type > Composite Fonts... draws the font picked in a line of sample text, with the first character of each custom set added, through the renderer, so color and bitmap glyphs keep their colors. Buttons beside it show or hide lines for the ICF box, em box, baseline, cap height, highest ascent and lowest descent, highest ascender and x-height, and Zoom draws it at 25% to 800% of 36 pt. The em box and ICF box are the Kanji part's font's; the other lines measure the faces the glyphs are drawn in, fallback faces included. Each line takes its part's size, baseline and vertical scale, and Kana scaled at center, as layout sets them. ui.dialog.set takes sample, zoom and the seven line fields, and refuses a zoom outside the menu or a line that is not true or false. FontFace gains cap_height(), the estimate a face without an OS/2 cap height uses, beside x_height(). Docs: docs/mcp.md, docs/type-parity.md, docs/target-app-parity.md.