Set Stroke/Fill settings for stroke font in its Draw() function.

This commit is contained in:
Maciej Suminski 2016-05-02 15:56:17 +02:00
parent 36dd6eb6b3
commit 795fd28742
2 changed files with 1 additions and 5 deletions

View File

@ -211,7 +211,7 @@ void STROKE_FONT::Draw( const UTF8& aText, const VECTOR2D& aPosition, double aRo
}
m_gal->SetIsStroke( true );
//m_gal->SetIsFill( false );
m_gal->SetIsFill( false );
if( m_gal->IsFontBold() )
m_gal->SetLineWidth( m_gal->GetLineWidth() * BOLD_FACTOR );

View File

@ -824,8 +824,6 @@ void PCB_PAINTER::draw( const TEXTE_PCB* aText, int aLayer )
m_gal->SetLineWidth( aText->GetThickness() );
}
m_gal->SetIsFill( false );
m_gal->SetIsStroke( true );
m_gal->SetStrokeColor( color );
m_gal->SetTextAttributes( aText );
m_gal->StrokeText( shownText, position, aText->GetOrientationRadians() );
@ -852,8 +850,6 @@ void PCB_PAINTER::draw( const TEXTE_MODULE* aText, int aLayer )
m_gal->SetLineWidth( aText->GetThickness() );
}
m_gal->SetIsFill( false );
m_gal->SetIsStroke( true );
m_gal->SetStrokeColor( color );
m_gal->SetTextAttributes( aText );
m_gal->StrokeText( shownText, position, aText->GetDrawRotationRadians() );