- Attempted to allow text renderer to auto-detect RTL

- Unable to reproduce original issue so good chance this doesn't fix #167
This commit is contained in:
Trigg 2021-10-13 07:53:37 +00:00
parent 67bc4a1098
commit 4cb30cf470
2 changed files with 2 additions and 0 deletions

View file

@ -251,6 +251,7 @@ class TextOverlayWindow(OverlayWindow):
Draw a text message, returning the Y position of the next message
"""
layout = self.create_pango_layout(text)
layout.set_auto_dir(True)
layout.set_markup(text, -1)
attr = layout.get_attributes()

View file

@ -470,6 +470,7 @@ class VoiceOverlayWindow(OverlayWindow):
Draw username & background at given position
"""
layout = self.create_pango_layout(string)
//layout.set_auto_dir(True)
layout.set_markup(string, -1)
layout.set_width(Pango.SCALE * self.width)