Update commenting following a bit of research into commit history.

This commit is contained in:
Jeff Young 2024-05-27 12:23:56 +01:00
parent 233ebb3e09
commit e9a1c3032d
1 changed files with 3 additions and 3 deletions

View File

@ -884,8 +884,7 @@ void SVG_PLOTTER::Text( const VECTOR2I& aPos,
VECTOR2D text_pos_dev = userToDeviceCoordinates( text_pos );
VECTOR2D sz_dev = userToDeviceSize( text_size );
// Output the text as a string for search (and for screen readers that fail to pay attention
// to <desc> tags).
// Output the text as a string for WYSIWYG search and for those who want to edit the file.
{
if( !aOrient.IsZero() )
{
@ -925,7 +924,8 @@ void SVG_PLOTTER::Text( const VECTOR2I& aPos,
fputs( "</g>\n", m_outputFile );
}
// Output the text again as graphics (with a <desc> tag for "proper" screen readers)
// Output the text again as graphics with a <desc> tag (for non-WYSIWYG search and for
// screen readers)
{
fprintf( m_outputFile,
"<g class=\"stroked-text\"><desc>%s</desc>\n",