mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 02:03:12 +02:00
Bitmap text can't yet handle multi-line text.
This commit is contained in:
parent
c919817c18
commit
a8d2dd8dc7
@ -1296,8 +1296,13 @@ void OPENGL_GAL::BitmapText( const wxString& aText, const VECTOR2I& aPosition,
|
||||
const EDA_ANGLE& aAngle )
|
||||
{
|
||||
// Fallback to generic impl (which uses the stroke font) on cases we don't handle
|
||||
if( IsTextMirrored() || aText.Contains( wxT( "^{" ) ) || aText.Contains( wxT( "_{" ) ) )
|
||||
if( IsTextMirrored()
|
||||
|| aText.Contains( wxT( "^{" ) )
|
||||
|| aText.Contains( wxT( "_{" ) )
|
||||
|| aText.Contains( wxT( "\n" ) ) )
|
||||
{
|
||||
return GAL::BitmapText( aText, aPosition, aAngle );
|
||||
}
|
||||
|
||||
const UTF8 text( aText );
|
||||
VECTOR2D textSize;
|
||||
|
Loading…
x
Reference in New Issue
Block a user