[][src]Struct fontdb::FaceInfo

pub struct FaceInfo {
    pub id: ID,
    pub source: Arc<Source>,
    pub index: u32,
    pub family: String,
    pub post_script_name: String,
    pub style: Style,
    pub weight: Weight,
    pub stretch: Stretch,
    pub monospaced: bool,
}

A single font face info.

A font can have multiple faces.

A single item of the Database.

Fields

id: ID

An unique ID.

source: Arc<Source>

A font source.

We have to use Rc, because multiple FaceInfo objects can reference the same data in case of font collections.

index: u32

A face index in the source.

family: String

A family name.

Corresponds to a Font Family (1) name ID in a TrueType font.

post_script_name: String

A PostScript name.

Corresponds to a PostScript name (6) name ID in a TrueType font.

style: Style

A font face style.

weight: Weight

A font face weight.

stretch: Stretch

A font face stretch.

monospaced: bool

Indicates that the font face is monospaced.

Trait Implementations

impl Clone for FaceInfo[src]

impl Debug for FaceInfo[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.