Skip to content

Commit

Permalink
Switch to assert_eq to make the unsupported encoding clear.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmuizel committed Dec 28, 2024
1 parent 4789858 commit d336612
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,7 @@ impl<'a> PdfCIDFont<'a> {
&Object::Name(ref name) => {
let name = pdf_to_utf8(name);
dlog!("encoding {:?}", name);
assert!(name == "Identity-H");
assert_eq!(name, "Identity-H");
ByteMapping { codespace: vec![CodeRange{width: 2, start: 0, end: 0xffff }], cid: vec![CIDRange{ src_code_lo: 0, src_code_hi: 0xffff, dst_CID_lo: 0 }]}
}
&Object::Stream(ref stream) => {
Expand Down

0 comments on commit d336612

Please sign in to comment.