Set Stroke/Fill settings for stroke font in its Draw() function.
This commit is contained in:
parent
36dd6eb6b3
commit
795fd28742
|
@ -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 );
|
||||
|
|
|
@ -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() );
|
||||
|
|
Loading…
Reference in New Issue