1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 11:07:46 +00:00

LibPDF: Record base font name read from document

This will be useful for debugging, or if we later on want to show all
the fonts found in the document in an organised manner.
This commit is contained in:
Rodrigo Tobar 2023-01-07 12:26:59 +08:00 committed by Andreas Kling
parent 2552399bcd
commit bfeca4ebb3
5 changed files with 8 additions and 3 deletions

View file

@ -24,6 +24,7 @@ public:
// This is used both by Type 1 and TrueType fonts.
struct CommonData {
DeprecatedFlyString base_font_name;
RefPtr<Gfx::Font> font;
RefPtr<StreamObject> to_unicode;
RefPtr<Encoding> encoding;
@ -45,6 +46,7 @@ public:
virtual bool is_standard_font() const { return m_is_standard_font; }
virtual Type type() const = 0;
virtual DeprecatedFlyString base_font_name() const = 0;
protected:
static Tuple<DeprecatedString, DeprecatedString> replacement_for_standard_latin_font(StringView);