mirror of
https://github.com/storytold/wordcraft.git
synced 2026-10-28 20:37:10 -06:00
Word sizes a line by the fonts in it, and a bullet in Symbol (Word's default, U+F0B7) has a taller ascent than Calibri or Times New Roman. Without Symbol (Linux, macOS without Office, the web build) WordCraft draws the bullet from another face and used that face's height, so every bulleted line was shorter than Word's: 14.5 pt against 15.1 pt in Calibri 11 pt at 1.08 spacing, 14.9 against 15.7 in Times New Roman 12 pt. symbol_font_metrics gives Symbol's and Wingdings' ascent and descent as Word's PDFs state them, and a run in one of them that isn't installed takes them. The label's ascent now comes from its style, so the existing rule (the label's extra ascent added unscaled) sees them. Measured in Word 2016: Calibri 11 / Times 12 bullets 15.08 / 15.72 pt, WordCraft now 15.07 / 15.75 pt. On 251 real documents against Word PDFs, page breaks at the same word 45.4% -> 50.1%.