Improve SNR of EDA_ANGLE stuff.

This commit is contained in:
Jeff Young
2022-01-14 16:08:18 +00:00
parent 431560a46b
commit e048e51f5d
30 changed files with 310 additions and 257 deletions
+3 -8
View File
@@ -1,13 +1,8 @@
/**
* @file SVG_plotter.cpp
* @brief KiCad: specialized plotter for SVG files format
*/
/*
* This program source code file is part of KiCad, a free EDA CAD application.
*
* Copyright (C) 2020 Jean-Pierre Charras, jp.charras at wanadoo.fr
* Copyright (C) 1992-2021 KiCad Developers, see AUTHORS.txt for contributors.
* Copyright (C) 1992-2022 KiCad Developers, see AUTHORS.txt for contributors.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -801,7 +796,7 @@ void SVG_PLOTTER::Text( const VECTOR2I& aPos,
DPOINT text_pos_dev = userToDeviceCoordinates( text_pos );
DPOINT sz_dev = userToDeviceSize( text_size );
if( aOrient != EDA_ANGLE::ANGLE_0 )
if( !aOrient.IsZero() )
{
fprintf( m_outputFile,
"<g transform=\"rotate(%f %f %f)\">\n",
@@ -819,7 +814,7 @@ void SVG_PLOTTER::Text( const VECTOR2I& aPos,
"text-anchor=\"%s\" opacity=\"0\">%s</text>\n",
sz_dev.x, sz_dev.y, hjust, TO_UTF8( XmlEsc( aText ) ) );
if( aOrient != EDA_ANGLE::ANGLE_0 )
if( !aOrient.IsZero() )
fputs( "</g>\n", m_outputFile );
fprintf( m_outputFile, "<g class=\"stroked-text\"><desc>%s</desc>\n",