diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-28 12:11:09 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-30 00:57:15 +0200 |
commit | e398164f106a2660aae210d4c93012e8a01d2240 (patch) | |
tree | a5b57e53b7ed35c5c12db2bd5169b8ca25a1d227 /Userland/Libraries/LibGfx/BitmapFont.h | |
parent | 344374588bba63e8b6b90c9357bcce698fdbf0d3 (diff) | |
download | serenity-e398164f106a2660aae210d4c93012e8a01d2240.zip |
LibGfx: Make Font::pixel_metrics() virtual
This makes it easier for BitmapFont and ScaledFont to implement metrics
lookup themselves.
Diffstat (limited to 'Userland/Libraries/LibGfx/BitmapFont.h')
-rw-r--r-- | Userland/Libraries/LibGfx/BitmapFont.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibGfx/BitmapFont.h b/Userland/Libraries/LibGfx/BitmapFont.h index 4a4932e876..0146f2fa7b 100644 --- a/Userland/Libraries/LibGfx/BitmapFont.h +++ b/Userland/Libraries/LibGfx/BitmapFont.h @@ -23,6 +23,8 @@ public: NonnullRefPtr<Font> clone() const override; static NonnullRefPtr<BitmapFont> create(u8 glyph_height, u8 glyph_width, bool fixed, size_t glyph_count); + virtual FontPixelMetrics pixel_metrics() const override; + NonnullRefPtr<BitmapFont> masked_character_set() const; NonnullRefPtr<BitmapFont> unmasked_character_set() const; |