From c900ef59d6e2d03c92d0c07bf5750185eb8d0d07 Mon Sep 17 00:00:00 2001 From: Andy Goetz Date: Sun, 30 Jul 2023 21:06:57 -0700 Subject: [PATCH] Opt in to advanced text shaping for entries (#25) This may slow down jolly rendering a bit, but allows for non latin characters to be displayed. --- src/entry.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/entry.rs b/src/entry.rs index 777b5e4..32c3e94 100644 --- a/src/entry.rs +++ b/src/entry.rs @@ -347,7 +347,8 @@ impl StoreEntry { .size(settings.entry.common.text_size()) .style(text_color) .horizontal_alignment(iced::alignment::Horizontal::Left) - .vertical_alignment(iced::alignment::Vertical::Center); + .vertical_alignment(iced::alignment::Vertical::Center) + .shaping(iced::widget::text::Shaping::Advanced); let description = match &self.description { Some(desc) => { @@ -361,6 +362,7 @@ impl StoreEntry { .style(iced::Color::from(text_color)) .horizontal_alignment(iced::alignment::Horizontal::Left) .vertical_alignment(iced::alignment::Vertical::Center) + .shaping(iced::widget::text::Shaping::Advanced) .into() }) .collect();