diff options
author | 2019-11-18 07:16:19 +0100 | |
---|---|---|
committer | 2019-11-18 07:16:19 +0100 | |
commit | d3553adf278e5b616fbd885f321faa83a4d24b56 (patch) | |
tree | 5bbfba3b45fd34d9c9604f28bcbb80e9856873a3 /core/src/font.rs | |
parent | 63dbf078fefea444073813e834c2d35fa25eb3a7 (diff) | |
download | iced-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.rs | 10 |
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], }, } |