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:
parent
7d9294b9a4
commit
5dad8b693e
2 changed files with 6 additions and 3 deletions
|
@ -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 };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue