pub struct Font {
    pub name: String,
    pub path: PathBuf,
}
Expand description

A very high-level view of a font, only concerned with the name and its file location.

##Example

use fontconfig::{Font, Fontconfig};

let fc = Fontconfig::new().unwrap();
let font = fc.find("sans-serif", Some("italic")).unwrap();
println!("Name: {}\nPath: {}", font.name, font.path.display());

Fields

name: String

The true name of this font

path: PathBuf

The location of this font on the filesystem.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.