Struct speedy2d::font::FontFamily [−][src]
pub struct FontFamily { /* fields omitted */ }
Expand description
A collection of fonts, in decreasing order of priority. When laying out text, if a codepoint cannot be found in the first font in the list, the subsequent fonts will also be searched.
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Returns the glyph corresponding to the provided codepoint. If the glyph
cannot be found, None
is returned. Read more
fn layout_text(
&self,
text: &str,
scale: f32,
options: TextOptions
) -> Rc<FormattedTextBlock> where
Self: Sized,
fn layout_text(
&self,
text: &str,
scale: f32,
options: TextOptions
) -> Rc<FormattedTextBlock> where
Self: Sized,
Lays out a block of text with the specified scale and options. The
result may be passed to Graphics2D::draw_text
. Read more
fn layout_text_from_unindexed_codepoints(
&self,
unindexed_codepoints: &[char],
scale: f32,
options: TextOptions
) -> Rc<FormattedTextBlock> where
Self: Sized,
fn layout_text_from_unindexed_codepoints(
&self,
unindexed_codepoints: &[char],
scale: f32,
options: TextOptions
) -> Rc<FormattedTextBlock> where
Self: Sized,
Lays out a block of text with the specified scale and options. The
result may be passed to Graphics2D::draw_text
. Read more
fn layout_text_from_codepoints(
&self,
codepoints: &[Codepoint],
scale: f32,
options: TextOptions
) -> Rc<FormattedTextBlock> where
Self: Sized,
fn layout_text_from_codepoints(
&self,
codepoints: &[Codepoint],
scale: f32,
options: TextOptions
) -> Rc<FormattedTextBlock> where
Self: Sized,
Lays out a block of text with the specified scale and options. The
result may be passed to Graphics2D::draw_text
. Read more
Auto Trait Implementations
impl !RefUnwindSafe for FontFamily
impl !Send for FontFamily
impl !Sync for FontFamily
impl Unpin for FontFamily
impl !UnwindSafe for FontFamily
Blanket Implementations
Mutably borrows from an owned value. Read more