mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-10 13:01:29 +00:00
fix(render): the Mac OS Roman reading test covers ZapfDingbats and a /Differences naming .notdef (hayro-interpret patch 101)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Pq7HyCHD1R3rywQBPCHXZA
This commit is contained in:
1 parent
15bc6159d1
commit
11c7a02762
1 file changed
+6
@@ -927,4 +927,10 @@ fn the_mac_roman_reading_needs_no_base_encoding_and_no_symbolic_builtin() {
|
||||
diffs.set(b"Differences".to_vec(), Object::Array(vec![Object::Int(0x8E), Object::name("ecircumflex")]));
|
||||
assert_eq!(read(vec![("Encoding", Object::Dict(diffs))]), ["à", "ê"], "/Differences without a base encoding");
|
||||
assert_eq!(read(vec![("BaseFont", Object::name("Symbol"))]), ["", ""], "Symbol");
|
||||
assert_eq!(read(vec![("BaseFont", Object::name("ZapfDingbats"))]), ["", ""], "ZapfDingbats");
|
||||
// A name it can't read clears the Mac OS Roman reading for its code, as it clears a base
|
||||
// encoding's.
|
||||
let mut notdef = Dict::new();
|
||||
notdef.set(b"Differences".to_vec(), Object::Array(vec![Object::Int(0x8E), Object::name(".notdef")]));
|
||||
assert_eq!(read(vec![("Encoding", Object::Dict(notdef))]), ["à", ""], "/Differences naming .notdef");
|
||||
}
|
||||
Reference in new issue
Block a user