summaryrefslogtreecommitdiffstats
path: root/core/src/font.rs
diff options
context:
space:
mode:
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],
},
}