Adjust bottom- and centre-aligned linespacing to better match 6.0.

Fixes https://gitlab.com/kicad/code/kicad/issues/11269
This commit is contained in:
Jeff Young 2022-03-29 16:36:06 +01:00
parent 66ebd68060
commit 6a3c5b6e0e
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}