fixed: pcbnew: incorrect texts width in PS plot output.
This commit is contained in:
parent
88cde3090e
commit
5b74766316
|
@ -308,9 +308,20 @@ static void PlotTextModule( TEXTE_MODULE* pt_texte, int format_plot )
|
||||||
if( pt_texte->m_Mirror )
|
if( pt_texte->m_Mirror )
|
||||||
size.x = -size.x; // Text is mirrored
|
size.x = -size.x; // Text is mirrored
|
||||||
|
|
||||||
if ( format_plot == PLOT_FORMAT_GERBER )
|
switch( format_plot )
|
||||||
SelectD_CODE_For_LineDraw(thickness);
|
{
|
||||||
|
case PLOT_FORMAT_GERBER:
|
||||||
|
SelectD_CODE_For_LineDraw(thickness);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PLOT_FORMAT_HPGL:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PLOT_FORMAT_POST:
|
||||||
|
SetCurrentLineWidthPS( thickness );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
PlotGraphicText( format_plot, pos, BLACK,
|
PlotGraphicText( format_plot, pos, BLACK,
|
||||||
pt_texte->m_Text,
|
pt_texte->m_Text,
|
||||||
orient, size,
|
orient, size,
|
||||||
|
@ -564,8 +575,19 @@ void PlotTextePcb( TEXTE_PCB* pt_texte, int format_plot, int masque_layer )
|
||||||
if( pt_texte->m_Mirror )
|
if( pt_texte->m_Mirror )
|
||||||
size.x = -size.x;
|
size.x = -size.x;
|
||||||
|
|
||||||
if ( format_plot == PLOT_FORMAT_GERBER )
|
switch( format_plot )
|
||||||
SelectD_CODE_For_LineDraw(thickness);
|
{
|
||||||
|
case PLOT_FORMAT_GERBER:
|
||||||
|
SelectD_CODE_For_LineDraw(thickness);
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PLOT_FORMAT_HPGL:
|
||||||
|
break;
|
||||||
|
|
||||||
|
case PLOT_FORMAT_POST:
|
||||||
|
SetCurrentLineWidthPS( thickness );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
PlotGraphicText( format_plot, pos, BLACK,
|
PlotGraphicText( format_plot, pos, BLACK,
|
||||||
pt_texte->m_Text,
|
pt_texte->m_Text,
|
||||||
|
|
Loading…
Reference in New Issue