diff options
author | Andreas Kling <kling@serenityos.org> | 2023-01-04 19:53:00 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-01-06 12:02:20 +0100 |
commit | 8887766607c3632bcbef8efc819103c8d3502131 (patch) | |
tree | 4e64e183794d310398a52e42755590a358bf742a /Userland/Libraries | |
parent | bb0c5f8ab47ed64a2caee3287ce9509f238f8434 (diff) | |
download | serenity-8887766607c3632bcbef8efc819103c8d3502131.zip |
LibGfx: Remove bogus rounding in FontPixelMetrics::line_spacing()
Diffstat (limited to 'Userland/Libraries')
-rw-r--r-- | Userland/Libraries/LibGfx/Font/Font.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGfx/Font/Font.h b/Userland/Libraries/LibGfx/Font/Font.h index e4be218719..f5786923ec 100644 --- a/Userland/Libraries/LibGfx/Font/Font.h +++ b/Userland/Libraries/LibGfx/Font/Font.h @@ -124,7 +124,7 @@ struct FontPixelMetrics { // Line gap specified by font. float line_gap { 0 }; - float line_spacing() const { return roundf(ascent) + roundf(descent) + roundf(line_gap); } + float line_spacing() const { return ascent + descent + line_gap; } }; class Font : public RefCounted<Font> { |