From a8d2dd8dc7427d8c5e083c0a1d0897da8dce86d8 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 6 Mar 2022 16:59:18 +0000 Subject: [PATCH] Bitmap text can't yet handle multi-line text. --- common/gal/opengl/opengl_gal.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/gal/opengl/opengl_gal.cpp b/common/gal/opengl/opengl_gal.cpp index f899cd940a..ca26545be0 100644 --- a/common/gal/opengl/opengl_gal.cpp +++ b/common/gal/opengl/opengl_gal.cpp @@ -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;