Resolve pdfTeX SFD subfonts against actual TrueType cmaps
This commit is contained in:
1 parent
fd5ab59f42
commit
868814288c
10 files changed
+481
-43
No files matched your search
@@ -1851,6 +1851,14 @@ fn write_native_font(
|
||||
("Type1", descriptor, name, format!("[{widths}]"), encoding, true)
|
||||
}
|
||||
NativeFontProgram::TrueType(program) => {
|
||||
if let Some(codes) = &program.subfont_codes {
|
||||
for &slot in used.keys().filter(|&&slot| codes[usize::from(slot)].is_none()) {
|
||||
diagnostics.push(format!("character {slot} in subfont {} is not mapped to any charcode", face.name));
|
||||
}
|
||||
}
|
||||
if let Some([platform, encoding]) = program.missing_subfont_cmap {
|
||||
diagnostics.push(format!("cannot find cmap subtable for (pid,eid) = ({platform}, {encoding})"));
|
||||
}
|
||||
let width_object = objects.len() + 1;
|
||||
objects.push(format!("[{widths}]").into_bytes());
|
||||
let (descriptor, name) = truetype_fonts::write(
|
||||
|
||||
Reference in new issue
Block a user