Skip to content

Commit

Permalink
Make the intention of the ToUnicode name assert more clear
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmuizel committed Oct 5, 2023
1 parent 043dded commit db3a490
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,9 @@ fn get_unicode_map<'a>(doc: &'a Document, font: &'a Dictionary) -> Option<HashMa
None => { }
Some(&Object::Name(ref name)) => {
let name = pdf_to_utf8(name);
assert!(name == "Identity-H");
if name != "Identity-H" {
todo!("unsupported ToUnicode name: {:?}", name);
}
}
_ => { panic!("unsupported cmap {:?}", to_unicode)}
}
Expand Down

0 comments on commit db3a490

Please sign in to comment.