diff options
author | Andreas Kling <kling@serenityos.org> | 2023-01-03 14:55:48 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-01-03 15:25:02 +0100 |
commit | 555d7a6fced8a3014b3ad6d6b380d8c27270e72d (patch) | |
tree | 3df019f9c6ebdc99be627cb97d7e926cc5bf8b14 /Userland/Libraries/LibGfx/Font/ScaledFont.h | |
parent | 3407ab0fd1c287391cad8cb89e4a36fa3a07c453 (diff) | |
download | serenity-555d7a6fced8a3014b3ad6d6b380d8c27270e72d.zip |
LibGfx: Make Font::glyph_width*() APIs return float
Diffstat (limited to 'Userland/Libraries/LibGfx/Font/ScaledFont.h')
-rw-r--r-- | Userland/Libraries/LibGfx/Font/ScaledFont.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibGfx/Font/ScaledFont.h b/Userland/Libraries/LibGfx/Font/ScaledFont.h index fd2b4186ee..15d3fa7d40 100644 --- a/Userland/Libraries/LibGfx/Font/ScaledFont.h +++ b/Userland/Libraries/LibGfx/Font/ScaledFont.h @@ -43,8 +43,8 @@ public: virtual u16 weight() const override { return m_font->weight(); } virtual Gfx::Glyph glyph(u32 code_point) const override; virtual bool contains_glyph(u32 code_point) const override { return m_font->glyph_id_for_code_point(code_point) > 0; } - virtual u8 glyph_width(u32 code_point) const override; - virtual int glyph_or_emoji_width(u32 code_point) const override; + virtual float glyph_width(u32 code_point) const override; + virtual float glyph_or_emoji_width(u32 code_point) const override; virtual float glyphs_horizontal_kerning(u32 left_code_point, u32 right_code_point) const override; virtual int preferred_line_height() const override { return metrics().height() + metrics().line_gap; } virtual u8 glyph_height() const override { return m_point_height; } |