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:
1 parent
2ef5e29329
commit
e9bbd4bd87
11 files changed
+108
-29
No files matched your search
@@ -810,6 +810,24 @@ pub fn display_lists_to_pdf_with_cm_type1(
|
||||
)
|
||||
}
|
||||
|
||||
/// Write PDFs with Liberation TrueType outlines and a document Info dictionary.
|
||||
pub fn display_lists_to_pdf_with_truetype_and_metadata(
|
||||
pages: &[DisplayList],
|
||||
page_width: i64,
|
||||
page_height: i64,
|
||||
origin: PageOrigin,
|
||||
metadata: &PdfMetadata,
|
||||
) -> Vec<u8> {
|
||||
write_pdf(
|
||||
pages,
|
||||
page_width,
|
||||
page_height,
|
||||
origin,
|
||||
FontBackend::TrueType,
|
||||
metadata,
|
||||
)
|
||||
}
|
||||
|
||||
/// Write PDFs with Computer Modern Type1 outlines and a document Info dictionary.
|
||||
pub fn display_lists_to_pdf_with_cm_type1_and_metadata(
|
||||
pages: &[DisplayList],
|
||||
|
||||
Reference in new issue
Block a user