Outline font adjustment is only for SCH_TEXT, not labels.

Fixes https://gitlab.com/kicad/code/kicad/issues/12746
This commit is contained in:
Jeff Young 2022-10-25 16:50:53 +01:00
parent 5f3d440ce3
commit 7f0ebf9e3b
1 changed files with 1 additions and 1 deletions

View File

@ -1957,7 +1957,7 @@ void SCH_PAINTER::draw( const SCH_TEXT *aText, int aLayer )
// Adjust text drawn in an outline font to more closely mimic the positioning of
// SCH_FIELD text.
if( font->IsOutline() )
if( font->IsOutline() && aText->Type() == SCH_TEXT_T )
{
BOX2I firstLineBBox = aText->GetTextBox( 0 );
int sizeDiff = firstLineBBox.GetHeight() - aText->GetTextSize().y;