From 8887766607c3632bcbef8efc819103c8d3502131 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 4 Jan 2023 19:53:00 +0100 Subject: [PATCH] LibGfx: Remove bogus rounding in FontPixelMetrics::line_spacing() --- Userland/Libraries/LibGfx/Font/Font.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {