Struct piet_cairo::CairoText
source · pub struct CairoText { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Text for CairoText
impl Text for CairoText
§type TextLayout = CairoTextLayout
type TextLayout = CairoTextLayout
A concrete type that implements the
TextLayout
trait.§type TextLayoutBuilder = CairoTextLayoutBuilder
type TextLayoutBuilder = CairoTextLayoutBuilder
A concrete type that implements the
TextLayoutBuilder
trait.source§fn font_family(&mut self, family_name: &str) -> Option<FontFamily>
fn font_family(&mut self, family_name: &str) -> Option<FontFamily>
Query the platform for a font with a given name, and return a
FontFamily
object corresponding to that font, if it is found. Read moresource§fn load_font(&mut self, _data: &[u8]) -> Result<FontFamily, Error>
fn load_font(&mut self, _data: &[u8]) -> Result<FontFamily, Error>
Load the provided font data and make it available for use. Read more
source§fn new_text_layout(&mut self, text: impl TextStorage) -> Self::TextLayoutBuilder
fn new_text_layout(&mut self, text: impl TextStorage) -> Self::TextLayoutBuilder
Create a new layout object to display the provided
text
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for CairoText
impl !Send for CairoText
impl !Sync for CairoText
impl Unpin for CairoText
impl UnwindSafe for CairoText
Blanket Implementations§
source§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
source§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.