Use Shaping::Basic for icon helpers in examples
This commit is contained in:
parent
6df435adba
commit
665c89a062
2 changed files with 5 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue