summaryrefslogtreecommitdiffstats
path: root/examples/changelog/src/icon.rs
diff options
context:
space:
mode:
Diffstat (limited to 'examples/changelog/src/icon.rs')
-rw-r--r--examples/changelog/src/icon.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/changelog/src/icon.rs b/examples/changelog/src/icon.rs
new file mode 100644
index 00000000..dd82e5b9
--- /dev/null
+++ b/examples/changelog/src/icon.rs
@@ -0,0 +1,10 @@
+use iced::widget::{text, Text};
+use iced::Font;
+
+pub const FONT_BYTES: &[u8] = include_bytes!("../fonts/changelog-icons.ttf");
+
+const FONT: Font = Font::with_name("changelog-icons");
+
+pub fn copy() -> Text<'static> {
+ text('\u{e800}').font(FONT)
+}