diff --git a/src/ui/bigtext/bigtext.py b/src/ui/bigtext/bigtext.py index ce9faa1..ea53b80 100644 --- a/src/ui/bigtext/bigtext.py +++ b/src/ui/bigtext/bigtext.py @@ -422,6 +422,14 @@ class InnerBigText(QWidget): y_line_offset = self.char_height; for l in self.lines: text = l.line_tabs_replaced() + text = text.replace("\0", "␀") # qt throws error if we try to draw a null character + text = text.replace("\1", "␁") + text = text.replace("\2", "␂") + text = text.replace("\3", "␃") + text = text.replace("\4", "␄") + text = text.replace("\5", "␅") + text = text.replace("\6", "␆") + text = text.replace("\a", "␇") painter.drawText(left_offset, y_line_offset, text) y_line_offset = y_line_offset + self.char_height