mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
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
|
||||
// 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user