Skip to content

Commit

Permalink
Opt in to advanced text shaping for entries
Browse files Browse the repository at this point in the history
This may slow down jolly rendering a bit, but allows for non latin
characters to be displayed.
  • Loading branch information
apgoetz committed Jul 31, 2023
1 parent ba8175f commit c84569f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/entry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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();
Expand Down

0 comments on commit c84569f

Please sign in to comment.