Set linewidth to Gerber plotter as well a GAL.
Fixes https://gitlab.com/kicad/code/kicad/issues/4428
This commit is contained in:
parent
4a1ee40058
commit
9db2969911
|
@ -355,6 +355,7 @@ void BRDITEMS_PLOTTER::PlotFootprintTextItem( TEXTE_MODULE* aTextMod, COLOR4D aC
|
||||||
wxSize size = aTextMod->GetTextSize();
|
wxSize size = aTextMod->GetTextSize();
|
||||||
wxPoint pos = aTextMod->GetTextPos();
|
wxPoint pos = aTextMod->GetTextPos();
|
||||||
double orient = aTextMod->GetDrawRotation();
|
double orient = aTextMod->GetDrawRotation();
|
||||||
|
int thickness = aTextMod->GetEffectiveTextPenWidth();
|
||||||
|
|
||||||
if( aTextMod->IsMirrored() )
|
if( aTextMod->IsMirrored() )
|
||||||
size.x = -size.x; // Text is mirrored
|
size.x = -size.x; // Text is mirrored
|
||||||
|
@ -370,10 +371,11 @@ void BRDITEMS_PLOTTER::PlotFootprintTextItem( TEXTE_MODULE* aTextMod, COLOR4D aC
|
||||||
MODULE* parent = static_cast<MODULE*> ( aTextMod->GetParent() );
|
MODULE* parent = static_cast<MODULE*> ( aTextMod->GetParent() );
|
||||||
gbr_metadata.SetCmpReference( parent->GetReference() );
|
gbr_metadata.SetCmpReference( parent->GetReference() );
|
||||||
|
|
||||||
|
m_plotter->SetCurrentLineWidth( thickness );
|
||||||
|
|
||||||
m_plotter->Text( pos, aColor, aTextMod->GetShownText(), orient, size,
|
m_plotter->Text( pos, aColor, aTextMod->GetShownText(), orient, size,
|
||||||
aTextMod->GetHorizJustify(), aTextMod->GetVertJustify(),
|
aTextMod->GetHorizJustify(), aTextMod->GetVertJustify(), thickness,
|
||||||
aTextMod->GetEffectiveTextPenWidth(), aTextMod->IsItalic(), allow_bold,
|
aTextMod->IsItalic(), allow_bold, false, &gbr_metadata );
|
||||||
false, &gbr_metadata );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue