Use Times metrics for bold and italic text

Add ptmb8t/ptmri8t/ptmbi8t metrics and TimesBold/TimesItalic/TimesBoldItalic
paragraph faces. A ptm document now maps Roman, bold, italic and bold-italic
base faces to the Times family, so headings and emphasised runs use Times
widths while the PDF backend continues to embed Liberation Serif.

The arXiv output is unchanged at 3 pages; previews measured 12.5-17.5 ms warm
and 191 ms cold. Test count is 1076.
This commit is contained in:
gloamxun committed 2026-10-28 00:08:19 +08:00
1 parent e9bbd4bd87
commit fd9ee0740b
12 files changed
+100 -18

No files matched your search

+4 -2
View File
@@ -39,8 +39,8 @@ execution is not a goal.
horizontal/vertical offsets, so a `geometry` document gets its centred
6.5in text block and page-2/page-3 headers instead of content at x=0.
- Still visibly different from TeX:
- body face uses Times metrics (`ptmr8t`) with Liberation Serif TrueType;
bold/italic Times faces and CMR-metric headings remain;
- body face uses Times Roman/bold/italic metrics (`ptmr8t`, `ptmb8t`,
`ptmri8t`, `ptmbi8t`) with Liberation Serif TrueType;
- the arXiv class's top/bottom rules, "A Preprint" undertitle and uppercase
Times title are drawn, and two author groups are laid out side by side as a
centred two-column halign. ORCID icons are still missing;
@@ -68,6 +68,8 @@ execution is not a goal.
- Incremental bottlenecks:
- release-mode measurements after the paragraph-unit cache: article-basic
**47 ms**, arXiv late edit **p50 47.6 ms / p95 53.3 ms** (one page changed),
Times arXiv previews measured 12.5–17.5 ms warm and 191 ms cold in
this round; the Times TFM parse is lazy and cached.
a 10-page simple document **p50 13 ms / p95 14.7 ms**; the measured
3-page and 10-page cases now meet the <100 ms target, while the cold
first build is still 150–370 ms and a heading/front-matter edit still