1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 19:57:44 +00:00

LibPDF: Pass Renderer to SimpleFont::draw_glyph()

This makes it available in Type3Font::draw_glyph().

No behavior change.
This commit is contained in:
Nico Weber 2023-11-14 10:18:36 -05:00 committed by Sam Atkins
parent bcc6439b5f
commit 126a0be595
8 changed files with 14 additions and 10 deletions

View file

@ -18,7 +18,7 @@ public:
protected:
PDFErrorOr<void> initialize(Document* document, NonnullRefPtr<DictObject> const& dict, float font_size) override;
virtual Optional<float> get_glyph_width(u8 char_code) const = 0;
virtual PDFErrorOr<void> draw_glyph(Gfx::Painter& painter, Gfx::FloatPoint point, float width, u8 char_code, Color color) = 0;
virtual PDFErrorOr<void> draw_glyph(Gfx::Painter& painter, Gfx::FloatPoint point, float width, u8 char_code, Renderer const&) = 0;
RefPtr<Encoding>& encoding() { return m_encoding; }
RefPtr<Encoding> const& encoding() const { return m_encoding; }