summaryrefslogtreecommitdiffstats
path: root/core/src/font.rs
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-18 07:16:19 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2019-11-18 07:16:19 +0100
commitd3553adf278e5b616fbd885f321faa83a4d24b56 (patch)
tree5bbfba3b45fd34d9c9604f28bcbb80e9856873a3 /core/src/font.rs
parent63dbf078fefea444073813e834c2d35fa25eb3a7 (diff)
downloadiced-d3553adf278e5b616fbd885f321faa83a4d24b56.tar.gz
iced-d3553adf278e5b616fbd885f321faa83a4d24b56.tar.bz2
iced-d3553adf278e5b616fbd885f321faa83a4d24b56.zip
Write documentation for `iced_core`
Diffstat (limited to 'core/src/font.rs')
-rw-r--r--core/src/font.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/core/src/font.rs b/core/src/font.rs
index 75ba6a72..be49c825 100644
--- a/core/src/font.rs
+++ b/core/src/font.rs
@@ -1,8 +1,18 @@
+/// A font.
#[derive(Debug, Clone, Copy)]
pub enum Font {
+ /// The default font.
+ ///
+ /// This is normally a font configured in a renderer or loaded from the
+ /// system.
Default,
+
+ /// An external font.
External {
+ /// The name of the external font
name: &'static str,
+
+ /// The bytes of the external font
bytes: &'static [u8],
},
}