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

LibPDF: Make PDFFont::replacement_for() return a ScaledFont

We only want to load non-bitmap fallback fonts as PDF fallback fonts,
so let's make the return type represent that.

No behavior change.
This commit is contained in:
Nico Weber 2024-03-01 08:08:19 -05:00 committed by Andreas Kling
parent 7d9294b9a4
commit 5dad8b693e
2 changed files with 6 additions and 3 deletions

View file

@ -45,7 +45,7 @@ public:
protected:
virtual PDFErrorOr<void> initialize(Document* document, NonnullRefPtr<DictObject> const& dict, float font_size);
static PDFErrorOr<NonnullRefPtr<Gfx::Font>> replacement_for(StringView name, float font_size);
static PDFErrorOr<NonnullRefPtr<Gfx::ScaledFont>> replacement_for(StringView name, float font_size);
unsigned m_flags { 0 };
};