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

LibGfx: Remove bogus rounding in FontPixelMetrics::line_spacing()

This commit is contained in:
Andreas Kling 2023-01-04 19:53:00 +01:00
parent bb0c5f8ab4
commit 8887766607

View file

@ -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> {