Struct flo_canvas::FontId
source · pub struct FontId(pub u64);
Expand description
Identifier for a font
Fonts can be used to render text: they need to be pre-loaded and are removed from the canvas by
Draw::ClearCanvas
Tuple Fields§
§0: u64
Trait Implementations§
source§impl CanvasEncoding<String> for FontId
impl CanvasEncoding<String> for FontId
source§fn encode_canvas(&self, append_to: &mut String)
fn encode_canvas(&self, append_to: &mut String)
Encodes this item by appending it to the specified string
source§impl<'de> Deserialize<'de> for FontId
impl<'de> Deserialize<'de> for FontId
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more