Use Times metrics for ptm documents

Add a merged ptmr8t TFM asset, a TimesRoman paragraph face and Cmr10Metrics
entry, map a ptm Roman paragraph to it, and select the Liberation Serif
TrueType PDF backend for those projects. The title is uppercased rather than
small-capped so its widths use Times metrics.

The arXiv PDF now embeds Liberation Serif for body text; title/author/abstract
land at y=88/173/277pt with three pages and all references. Headings and bold/
italic Times faces still use CMR metrics.

Test count is 1075.
This commit is contained in:
gloamxun committed 2026-10-28 00:00:34 +08:00
1 parent 2ef5e29329
commit e9bbd4bd87
11 files changed
+108 -29

No files matched your search

+9
View File
@@ -368,6 +368,8 @@ pub enum ParagraphFont {
BoldSlanted,
/// Italic typewriter (`cmitt10`, TeX `\ttfamily\itshape`).
MonoItalic,
/// Times Roman text selected by `\rmdefault{ptm}` (`ptmr8t`).
TimesRoman,
}
impl ParagraphFont {
@@ -386,6 +388,7 @@ impl ParagraphFont {
Self::Slanted => Self::Italic,
Self::BoldSlanted => Self::BoldItalic,
Self::MonoItalic => Self::Mono,
Self::TimesRoman => Self::Italic,
}
}
@@ -399,6 +402,7 @@ impl ParagraphFont {
Self::SmallCaps => Self::Bold,
Self::Slanted | Self::BoldSlanted => Self::BoldSlanted,
Self::MonoItalic => Self::MonoItalic,
Self::TimesRoman => Self::Bold,
}
}
@@ -413,6 +417,7 @@ impl ParagraphFont {
Self::SmallCaps => Self::SmallCaps,
Self::Slanted | Self::BoldSlanted => Self::Slanted,
Self::MonoItalic => Self::MonoItalic,
Self::TimesRoman => Self::TimesRoman,
}
}
@@ -429,6 +434,7 @@ impl ParagraphFont {
Self::SmallCaps => Self::Italic,
Self::Slanted => Self::Italic,
Self::BoldSlanted => Self::BoldItalic,
Self::TimesRoman => Self::Italic,
}
}
@@ -444,6 +450,7 @@ impl ParagraphFont {
Self::Sans | Self::SansItalic => Self::SansItalic,
Self::SansBold => Self::SansBold,
Self::SmallCaps => Self::Slanted,
Self::TimesRoman => Self::Slanted,
}
}
@@ -458,6 +465,7 @@ impl ParagraphFont {
Self::SmallCaps => Self::SmallCaps,
Self::Slanted | Self::BoldSlanted => Self::Roman,
Self::MonoItalic => Self::Mono,
Self::TimesRoman => Self::TimesRoman,
}
}
@@ -483,6 +491,7 @@ impl ParagraphFont {
Self::Slanted => Self::SmallCaps,
Self::BoldSlanted => Self::Bold,
Self::MonoItalic => Self::Mono,
Self::TimesRoman => Self::TimesRoman,
}
}