From d3553adf278e5b616fbd885f321faa83a4d24b56 Mon Sep 17 00:00:00 2001 From: Héctor Ramón Jiménez Date: Mon, 18 Nov 2019 07:16:19 +0100 Subject: Write documentation for `iced_core` --- core/src/font.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/src/font.rs') 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], }, } -- cgit