mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 09:47:35 +00:00
LibPDF: Add some scaffolding for type 3 fonts
This commit is contained in:
parent
7f999b1ff5
commit
4cd1a2d319
4 changed files with 61 additions and 1 deletions
|
@ -12,6 +12,7 @@
|
|||
#include <LibPDF/Fonts/TrueTypeFont.h>
|
||||
#include <LibPDF/Fonts/Type0Font.h>
|
||||
#include <LibPDF/Fonts/Type1Font.h>
|
||||
#include <LibPDF/Fonts/Type3Font.h>
|
||||
|
||||
namespace PDF {
|
||||
|
||||
|
@ -44,7 +45,7 @@ PDFErrorOr<NonnullRefPtr<PDFFont>> PDFFont::create(Document* document, NonnullRe
|
|||
} else if (subtype == "Type0") {
|
||||
font = adopt_ref(*new Type0Font());
|
||||
} else if (subtype == "Type3") {
|
||||
return Error { Error::Type::RenderingUnsupported, "Type3 fonts not yet implemented" };
|
||||
font = adopt_ref(*new Type3Font());
|
||||
} else {
|
||||
dbgln_if(PDF_DEBUG, "Unhandled font subtype: {}", subtype);
|
||||
return Error::internal_error("Unhandled font subtype");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue