Honor final pdfTeX font charset and document info omission
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user