mirror of
https://github.com/typst/typst
synced 2025-05-14 04:56:26 +08:00
Fix FontFile3
dictionary for OpenType-Fonts
This commit is contained in:
parent
90be79dc86
commit
26a427a321
@ -226,7 +226,7 @@ impl<'a> PdfExporter<'a> {
|
|||||||
let mut font_stream = self.writer.stream(data_ref, &data);
|
let mut font_stream = self.writer.stream(data_ref, &data);
|
||||||
|
|
||||||
if subtype == CidFontType::Type0 {
|
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();
|
font_stream.filter(Filter::FlateDecode).finish();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user