mirror of
https://github.com/storytold/wordcraft.git
synced 2026-11-18 00:15:44 +00:00
#1613 draws a missing font in Cambria when the font table classes it as roman, as Word does. Times New Roman is roman in every font table, so where it isn't installed (Linux, the web build) every Times document came out in Caladea: lines 2.1 pt taller at 12 pt and different line breaks. Word always has Times New Roman, so it never applies that rule to it. The rule now leaves alone a font whose substitutes are chosen by its name (a metric-compatible clone or the same design under another name: Times, Arial, Courier New, Palatino, the symbol, Hebrew and Persian fonts). Fonts with no clone of their own (Cambria, Georgia, brand fonts) still follow it. Checked on 251 real documents against PDFs from Word: exact page counts 201 -> 229, page breaks in the same place 45.4% -> 51.9%.