diff --git a/common/font/stroke_font.cpp b/common/font/stroke_font.cpp index 578281deb3..6c71ce5b0d 100644 --- a/common/font/stroke_font.cpp +++ b/common/font/stroke_font.cpp @@ -238,8 +238,11 @@ VECTOR2I STROKE_FONT::GetTextAsGlyphs( BOX2I* aBBox, std::vector= (int) m_glyphBoundingBoxes->size() || c < 0 ) { + // Filtering non existing glyphes and non printable chars if( c == '\t' ) c = ' '; + else if( c < ' ' ) // Non printable char + c = '?'; else c = '?'; } @@ -247,7 +250,7 @@ VECTOR2I STROKE_FONT::GetTextAsGlyphs( BOX2I* aBBox, std::vector