mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-10-24 10:08:00 -06:00
A simple font that a document names but doesn't embed (Arial,Bold, ArialMT, ...) is drawn with a standard-font stand-in, and each glyph was scaled horizontally to its /Widths advance, narrower or wider. With 600-unit widths, Helvetica-Bold's i and l (278 units) were widened 2.16 times into solid blocks, and the line read as a heavy fixed-pitch face. The advance already places the next glyph (ISO 32000-2 §9.2.4; Widths, Table 109), so a substituted glyph is still narrowed to a narrower advance but no longer widened. Exact standard-14 fonts are unchanged. Vendored hayro-interpret patch 57 (StandardKind::outline_glyph), with tests in crates/render/tests/it/substitute_widths.rs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0175FWj4xFhMhSH3UpMU8DSC