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 )
|
const EDA_ANGLE& aAngle )
|
||||||
{
|
{
|
||||||
// Fallback to generic impl (which uses the stroke font) on cases we don't handle
|
// 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 );
|
return GAL::BitmapText( aText, aPosition, aAngle );
|
||||||
|
}
|
||||||
|
|
||||||
const UTF8 text( aText );
|
const UTF8 text( aText );
|
||||||
VECTOR2D textSize;
|
VECTOR2D textSize;
|
||||||
|
|
Loading…
Reference in New Issue