Fixed net names drawing in Cairo.

This commit is contained in:
Maciej Suminski 2016-05-03 14:40:47 +02:00
parent 8d952f35c6
commit 25fa2bbbbd
1 changed files with 5 additions and 1 deletions

View File

@ -302,6 +302,8 @@ void PCB_PAINTER::draw( const TRACK* aTrack, int aLayer )
double textOrientation = -atan( line.y / line.x );
double textSize = std::min( static_cast<double>( width ), length / netName.length() );
m_gal->SetIsStroke( true );
m_gal->SetIsFill( false );
m_gal->SetStrokeColor( m_pcbSettings.GetColor( NULL, aLayer ) );
m_gal->SetLineWidth( width / 10.0 );
m_gal->SetFontBold( false );
@ -488,8 +490,10 @@ void PCB_PAINTER::draw( const D_PAD* aPad, int aLayer )
m_gal->SetFontItalic( false );
m_gal->SetTextMirrored( false );
m_gal->SetStrokeColor( m_pcbSettings.GetColor( NULL, aLayer ) );
m_gal->SetIsStroke( true );
m_gal->SetIsFill( false );
VECTOR2D textpos( 0.0, 0.0);
VECTOR2D textpos( 0.0, 0.0 );
// Divide the space, to display both pad numbers and netnames
// and set the Y text position to display 2 lines