summaryrefslogtreecommitdiff
path: root/lib/gui/edit_json/settings_panel.py
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-01-12 20:46:37 +0100
committerGitHub <noreply@github.com>2025-01-12 20:46:37 +0100
commita20029bc1c199b21ec080f66193a9b20a72eae1c (patch)
tree11b0fae86e2da9b0889c44ef663c706a3dd66e55 /lib/gui/edit_json/settings_panel.py
parentc750bc503e8e6d15af4334407b38e902558ec4b4 (diff)
lettering: add right to left support (#3432)
Diffstat (limited to 'lib/gui/edit_json/settings_panel.py')
-rw-r--r--lib/gui/edit_json/settings_panel.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/gui/edit_json/settings_panel.py b/lib/gui/edit_json/settings_panel.py
index 8e0e6073..88cf7ac4 100644
--- a/lib/gui/edit_json/settings_panel.py
+++ b/lib/gui/edit_json/settings_panel.py
@@ -96,6 +96,14 @@ class FontInfo(wx.Panel):
lambda event: self.parent.on_font_meta_value_changed("description", False, event)
)
+ default_variant_label = wx.StaticText(self, label=_("Default Variant"))
+ self.default_variant = wx.Choice(self, choices=[_("→"), _("←"), _("↓"), ("↑")])
+ self.default_variant.Bind(wx.EVT_CHOICE, self.parent.on_default_variant_change)
+
+ text_direction_label = wx.StaticText(self, label=_("Text direction"))
+ self.text_direction = wx.Choice(self, choices=[_("Left to Right"), _("Right to Left")])
+ self.text_direction.Bind(wx.EVT_CHOICE, self.parent.on_text_direction_changed)
+
keywords_label = wx.StaticText(self, label=_("Keywords"))
self.keywords = wx.ListBox(
self,
@@ -110,6 +118,10 @@ class FontInfo(wx.Panel):
(self.name, 0, wx.ALL | wx.EXPAND, 0),
(description_label, 0, wx.ALL, 0),
(self.description, 1, wx.ALL | wx.EXPAND, 0),
+ (default_variant_label, 0, wx.ALL, 0),
+ (self.default_variant, 1, wx.ALL | wx.EXPAND, 0),
+ (text_direction_label, 0, wx.ALL, 0),
+ (self.text_direction, 1, wx.ALL | wx.EXPAND, 0),
(keywords_label, 0, wx.ALL, 0),
(self.keywords, 1, wx.ALL | wx.EXPAND, 0)
])