Fix FontFile3 dictionary for OpenType-Fonts

This commit is contained in:
Martin Haug 2022-05-30 10:28:06 +02:00
parent 90be79dc86
commit 26a427a321

View File

@ -226,7 +226,7 @@ impl<'a> PdfExporter<'a> {
let mut font_stream = self.writer.stream(data_ref, &data);
if subtype == CidFontType::Type0 {
font_stream.pair(Name(b"Subtype"), Name(b"CIDFontType0C"));
font_stream.pair(Name(b"Subtype"), Name(b"OpenType"));
}
font_stream.filter(Filter::FlateDecode).finish();