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:
1 parent
e9bbd4bd87
commit
fd9ee0740b
12 files changed
+100
-18
No files matched your search
@@ -370,6 +370,12 @@ pub enum ParagraphFont {
|
||||
MonoItalic,
|
||||
/// Times Roman text selected by `\rmdefault{ptm}` (`ptmr8t`).
|
||||
TimesRoman,
|
||||
/// Times bold text (`ptmb8t`).
|
||||
TimesBold,
|
||||
/// Times italic text (`ptmri8t`).
|
||||
TimesItalic,
|
||||
/// Times bold italic text (`ptmbi8t`).
|
||||
TimesBoldItalic,
|
||||
}
|
||||
|
||||
impl ParagraphFont {
|
||||
@@ -388,7 +394,10 @@ impl ParagraphFont {
|
||||
Self::Slanted => Self::Italic,
|
||||
Self::BoldSlanted => Self::BoldItalic,
|
||||
Self::MonoItalic => Self::Mono,
|
||||
Self::TimesRoman => Self::Italic,
|
||||
Self::TimesRoman => Self::TimesItalic,
|
||||
Self::TimesItalic => Self::TimesRoman,
|
||||
Self::TimesBold => Self::TimesBoldItalic,
|
||||
Self::TimesBoldItalic => Self::TimesBold,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -402,7 +411,10 @@ impl ParagraphFont {
|
||||
Self::SmallCaps => Self::Bold,
|
||||
Self::Slanted | Self::BoldSlanted => Self::BoldSlanted,
|
||||
Self::MonoItalic => Self::MonoItalic,
|
||||
Self::TimesRoman => Self::Bold,
|
||||
Self::TimesRoman => Self::TimesBold,
|
||||
Self::TimesItalic => Self::TimesBoldItalic,
|
||||
Self::TimesBold => Self::TimesBold,
|
||||
Self::TimesBoldItalic => Self::TimesBoldItalic,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -418,6 +430,9 @@ impl ParagraphFont {
|
||||
Self::Slanted | Self::BoldSlanted => Self::Slanted,
|
||||
Self::MonoItalic => Self::MonoItalic,
|
||||
Self::TimesRoman => Self::TimesRoman,
|
||||
Self::TimesBold => Self::TimesRoman,
|
||||
Self::TimesItalic => Self::TimesItalic,
|
||||
Self::TimesBoldItalic => Self::TimesItalic,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -434,7 +449,10 @@ impl ParagraphFont {
|
||||
Self::SmallCaps => Self::Italic,
|
||||
Self::Slanted => Self::Italic,
|
||||
Self::BoldSlanted => Self::BoldItalic,
|
||||
Self::TimesRoman => Self::Italic,
|
||||
Self::TimesRoman => Self::TimesItalic,
|
||||
Self::TimesItalic => Self::TimesItalic,
|
||||
Self::TimesBold => Self::TimesBoldItalic,
|
||||
Self::TimesBoldItalic => Self::TimesBoldItalic,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -450,7 +468,10 @@ impl ParagraphFont {
|
||||
Self::Sans | Self::SansItalic => Self::SansItalic,
|
||||
Self::SansBold => Self::SansBold,
|
||||
Self::SmallCaps => Self::Slanted,
|
||||
Self::TimesRoman => Self::Slanted,
|
||||
Self::TimesRoman => Self::TimesItalic,
|
||||
Self::TimesItalic => Self::TimesItalic,
|
||||
Self::TimesBold => Self::TimesBoldItalic,
|
||||
Self::TimesBoldItalic => Self::TimesBoldItalic,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -466,6 +487,9 @@ impl ParagraphFont {
|
||||
Self::Slanted | Self::BoldSlanted => Self::Roman,
|
||||
Self::MonoItalic => Self::Mono,
|
||||
Self::TimesRoman => Self::TimesRoman,
|
||||
Self::TimesItalic => Self::TimesRoman,
|
||||
Self::TimesBold => Self::TimesBold,
|
||||
Self::TimesBoldItalic => Self::TimesBold,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -492,6 +516,9 @@ impl ParagraphFont {
|
||||
Self::BoldSlanted => Self::Bold,
|
||||
Self::MonoItalic => Self::Mono,
|
||||
Self::TimesRoman => Self::TimesRoman,
|
||||
Self::TimesItalic => Self::TimesRoman,
|
||||
Self::TimesBold => Self::TimesBold,
|
||||
Self::TimesBoldItalic => Self::TimesBold,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user