Enum flo_canvas::FontOp [−][src]
pub enum FontOp {
UseFontDefinition(Arc<CanvasFontFace>),
FontSize(f32),
LayoutText(String),
DrawGlyphs(Vec<GlyphPosition>),
}Expand description
Operations that can be performed on a font
Variants
Loads a font from a font data file
Tuple Fields of UseFontDefinition
0: Arc<CanvasFontFace>Sets the font size to use for this font ID (in canvas units)
Tuple Fields of FontSize
0: f32Lays out some text in the active layout, to be rendered in the current fill style
Tuple Fields of LayoutText
0: StringDraws a series of glyphs using the current fill style
Tuple Fields of DrawGlyphs
0: Vec<GlyphPosition>Trait Implementations
Encodes this item by appending it to the specified string Read more
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
Auto Trait Implementations
impl RefUnwindSafe for FontOp
impl UnwindSafe for FontOp
Blanket Implementations
Mutably borrows from an owned value. Read more