소스 검색

LibPDF: Ignore seac PS1 commands for now

This command is meant to print an Standard Encoding Accented Character.
It's not critical to implement it yet, but if we want to render more
documents we need to handle the instruction, even if simply ignore it.
Rodrigo Tobar 2 년 전
부모
커밋
41bd304a7f
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp

+ 2 - 0
Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp

@@ -38,6 +38,7 @@ enum ExtendedCommand {
     DotSection,
     DotSection,
     VStem3,
     VStem3,
     HStem3,
     HStem3,
+    Seac = 6,
     Div = 12,
     Div = 12,
     CallOtherSubr = 16,
     CallOtherSubr = 16,
     Pop,
     Pop,
@@ -315,6 +316,7 @@ PDFErrorOr<PS1FontProgram::Glyph> PS1FontProgram::parse_glyph(ReadonlyBytes cons
                 case DotSection:
                 case DotSection:
                 case VStem3:
                 case VStem3:
                 case HStem3:
                 case HStem3:
+                case Seac:
                     // FIXME: Do something with these?
                     // FIXME: Do something with these?
                     state.sp = 0;
                     state.sp = 0;
                     break;
                     break;