Added emoji rendering in input field

This commit is contained in:
Mark Qvist 2024-06-01 14:14:12 +02:00
parent d453ca2abb
commit eb4af3c56b
1 changed files with 4 additions and 1 deletions

View File

@ -388,6 +388,9 @@ class SidebandApp(MDApp):
LabelBase.register(name="emoji", LabelBase.register(name="emoji",
fn_regular=fb_path+"NotoEmoji-Regular.ttf") fn_regular=fb_path+"NotoEmoji-Regular.ttf")
LabelBase.register(name="default_input",
fn_regular=fb_path+"DefaultInput.ttf")
LabelBase.register(name="combined", LabelBase.register(name="combined",
fn_regular=fb_path+"NotoSans-Regular.ttf", fn_regular=fb_path+"NotoSans-Regular.ttf",
fn_bold=fb_path+"NotoSans-Bold.ttf", fn_bold=fb_path+"NotoSans-Bold.ttf",
@ -397,7 +400,7 @@ class SidebandApp(MDApp):
def update_input_language(self): def update_input_language(self):
language = self.sideband.config["input_language"] language = self.sideband.config["input_language"]
if language == None: if language == None:
self.input_font = "Roboto" self.input_font = "default_input"
RNS.log("Setting input language to default set", RNS.LOG_DEBUG) RNS.log("Setting input language to default set", RNS.LOG_DEBUG)
else: else:
self.input_font = language self.input_font = language