Struct speedy2d::font::FontFamily[][src]

pub struct FontFamily { /* fields omitted */ }

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

impl FontFamily[src]

#[must_use]pub fn new(fonts: Vec<Font>) -> Self[src]

Instantiates a new font family, containing the specified fonts in decreasing order of priority.

Trait Implementations

impl Clone for FontFamily[src]

impl Debug for FontFamily[src]

impl Eq for FontFamily[src]

impl Hash for FontFamily[src]

impl PartialEq<FontFamily> for FontFamily[src]

impl StructuralEq for FontFamily[src]

impl StructuralPartialEq for FontFamily[src]

impl TextLayout for FontFamily[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.