Outline font adjustment is only for SCH_TEXT, not labels.
Fixes https://gitlab.com/kicad/code/kicad/issues/12746
This commit is contained in:
parent
5f3d440ce3
commit
7f0ebf9e3b
|
@ -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
|
// Adjust text drawn in an outline font to more closely mimic the positioning of
|
||||||
// SCH_FIELD text.
|
// SCH_FIELD text.
|
||||||
if( font->IsOutline() )
|
if( font->IsOutline() && aText->Type() == SCH_TEXT_T )
|
||||||
{
|
{
|
||||||
BOX2I firstLineBBox = aText->GetTextBox( 0 );
|
BOX2I firstLineBBox = aText->GetTextBox( 0 );
|
||||||
int sizeDiff = firstLineBBox.GetHeight() - aText->GetTextSize().y;
|
int sizeDiff = firstLineBBox.GetHeight() - aText->GetTextSize().y;
|
||||||
|
|
Loading…
Reference in New Issue