Honor final pdfTeX font charset and document info omission

This commit is contained in:
gloamxun committed 2026-11-26 16:48:27 +08:00
1 parent 38c567623a
commit de481fd762
8 files changed
+92 -26

No files matched your search

@@ -83,6 +83,7 @@ impl<'a> FontPlans<'a> {
self,
objects: &mut Vec<Vec<u8>>,
compression: u8,
omit_charset: bool,
) -> Result<References<'a>, String> {
let mut plans: Vec<_> = self.0.into_iter().collect();
plans.sort_unstable_by(|((a, at), _), ((b, bt), _)| {
@@ -109,7 +110,7 @@ impl<'a> FontPlans<'a> {
objects,
&subset.name,
&plan.parameters,
Some(&subset.glyphs),
(!omit_charset).then_some(&subset.glyphs),
&subset.program,
lengths,
compression,