Skip to main content

TextTypographySurface

Trait TextTypographySurface 

Source
pub trait TextTypographySurface: HasTextNode {
    // Provided methods
    fn font_stack(&self, stack: FontStack, size: f32) -> &Self { ... }
    fn font_family(&self, family: FontFamily) -> &Self { ... }
    fn font_weight(&self, weight: FontWeight) -> &Self { ... }
    fn font_style(&self, style: FontStyle) -> &Self { ... }
    fn font_size(&self, size: f32) -> &Self { ... }
    fn line_height(&self, line_height: f32) -> &Self { ... }
    fn text_color(&self, color: u32) -> &Self { ... }
}

Provided Methods§

Source

fn font_stack(&self, stack: FontStack, size: f32) -> &Self

Source

fn font_family(&self, family: FontFamily) -> &Self

Source

fn font_weight(&self, weight: FontWeight) -> &Self

Source

fn font_style(&self, style: FontStyle) -> &Self

Source

fn font_size(&self, size: f32) -> &Self

Source

fn line_height(&self, line_height: f32) -> &Self

Source

fn text_color(&self, color: u32) -> &Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§