From 4cb30cf470e38b513fe614ef0bf1e70a3565ce05 Mon Sep 17 00:00:00 2001 From: Trigg Date: Wed, 13 Oct 2021 07:53:37 +0000 Subject: [PATCH] - Attempted to allow text renderer to auto-detect RTL - Unable to reproduce original issue so good chance this doesn't fix #167 --- discover_overlay/text_overlay.py | 1 + discover_overlay/voice_overlay.py | 1 + 2 files changed, 2 insertions(+) diff --git a/discover_overlay/text_overlay.py b/discover_overlay/text_overlay.py index 7e6a41d..19ebf93 100644 --- a/discover_overlay/text_overlay.py +++ b/discover_overlay/text_overlay.py @@ -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() diff --git a/discover_overlay/voice_overlay.py b/discover_overlay/voice_overlay.py index a852f58..cdd2291 100644 --- a/discover_overlay/voice_overlay.py +++ b/discover_overlay/voice_overlay.py @@ -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)