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> {
|
fn icon<'a, Message>(codepoint: char) -> Element<'a, Message> {
|
||||||
const ICON_FONT: Font = Font::with_name("editor-icons");
|
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()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -460,6 +460,7 @@ fn icon(unicode: char) -> Text<'static> {
|
||||||
.font(Font::with_name("Iced-Todos-Icons"))
|
.font(Font::with_name("Iced-Todos-Icons"))
|
||||||
.width(20)
|
.width(20)
|
||||||
.align_x(Center)
|
.align_x(Center)
|
||||||
|
.shaping(text::Shaping::Basic)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn edit_icon() -> Text<'static> {
|
fn edit_icon() -> Text<'static> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue