Use Shaping::Basic for icon helpers in examples

This commit is contained in:
Héctor Ramón Jiménez 2025-08-30 18:34:38 +02:00
parent 6df435adba
commit 665c89a062
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
2 changed files with 5 additions and 1 deletions

View file

@ -326,5 +326,8 @@ fn open_icon<'a, Message>() -> Element<'a, Message> {
fn icon<'a, Message>(codepoint: char) -> Element<'a, Message> {
const ICON_FONT: Font = Font::with_name("editor-icons");
text(codepoint).font(ICON_FONT).into()
text(codepoint)
.font(ICON_FONT)
.shaping(text::Shaping::Basic)
.into()
}