mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-11 08:50:37 +00:00
LibPDF: Construct accented characters with Type1 seac command
The seac command provides the base and accented character that are needed to create an accented character glyph. Storing these values is all that was left to properly support these composed glyphs.
This commit is contained in:
parent
3eaa27f53a
commit
e4a7606b81
Notes:
sideshowbarker
2024-07-18 04:46:35 +09:00
Author: https://github.com/rtobar Commit: https://github.com/SerenityOS/serenity/commit/e4a7606b81 Pull-request: https://github.com/SerenityOS/serenity/pull/17359
1 changed files with 11 additions and 1 deletions
|
@ -397,11 +397,21 @@ PDFErrorOr<Type1FontProgram::Glyph> Type1FontProgram::parse_glyph(ReadonlyBytes
|
|||
case DotSection:
|
||||
case VStem3:
|
||||
case HStem3:
|
||||
case Seac:
|
||||
// FIXME: Do something with these?
|
||||
state.sp = 0;
|
||||
break;
|
||||
|
||||
case Seac: {
|
||||
auto achar = pop();
|
||||
auto bchar = pop();
|
||||
auto ady = pop();
|
||||
auto adx = pop();
|
||||
// auto asb = pop();
|
||||
state.glyph.set_accented_character(AccentedCharacter { (u8)bchar, (u8)achar, adx, ady });
|
||||
state.sp = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
case Div: {
|
||||
auto num2 = pop();
|
||||
auto num1 = pop();
|
||||
|
|
Loading…
Reference in a new issue