1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:17:35 +00:00

LibPDF: Add Type0 and TrueType fonts

This commit is contained in:
Matthew Olsson 2022-03-25 08:19:34 -07:00 committed by Andreas Kling
parent e831c374f4
commit 4d0f74a15c
9 changed files with 252 additions and 0 deletions

View file

@ -18,6 +18,12 @@ public:
MalformedPDF,
};
Error(AK::Error error)
: m_type(Type::Internal)
, m_message(String::formatted("Internal error while processing PDF file: {}", error.string_literal()))
{
}
Error(Type type, String const& message)
: m_type(type)
{