mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
LibPDF/CFF: Clear stack after "endchar" commands
Both type 1 and type 2 spec tell us to do this. I haven't observed a difference from this, but I noticed it in the spec while I was touching this code. Probably good to do what the spec tells us to do.
This commit is contained in:
parent
020c00ede2
commit
c9234f35f1
Notes:
sideshowbarker
2024-07-16 20:51:53 +09:00
Author: https://github.com/nico
Commit: c9234f35f1
Pull-request: https://github.com/SerenityOS/serenity/pull/23299
Reviewed-by: https://github.com/gmta ✅
1 changed files with 1 additions and 0 deletions
|
@ -663,6 +663,7 @@ PDFErrorOr<Type1FontProgram::Glyph> Type1FontProgram::parse_glyph(ReadonlyBytes
|
|||
}
|
||||
path.close();
|
||||
}
|
||||
state.sp = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue