From 6a3c5b6e0e40b02686be4c26eb4e1e0f98cf6da6 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Tue, 29 Mar 2022 16:36:06 +0100 Subject: [PATCH] Adjust bottom- and centre-aligned linespacing to better match 6.0. Fixes https://gitlab.com/kicad/code/kicad/issues/11269 --- common/font/font.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/font/font.cpp b/common/font/font.cpp index 233d506bf6..ae15bb7953 100644 --- a/common/font/font.cpp +++ b/common/font/font.cpp @@ -118,7 +118,7 @@ void FONT::getLinePositions( const wxString& aText, const VECTOR2I& aPosition, aExtents.push_back( bBox ); if( i == 0 ) - height += aAttrs.m_Size.y; + height += ( aAttrs.m_Size.y * 1.21 ); // 1.21 is a fudge to match 6.0 positioning else height += interline; }