[][src]Struct andrew::text::fontconfig::FontConfig

pub struct FontConfig { /* fields omitted */ }

Represents the main fontconfig config file

Methods

impl FontConfig[src]

pub fn new() -> Result<FontConfig, ()>[src]

Creates a new FontConfig object by looking for the fontconfig config file

pub fn get_location(&self) -> &Path[src]

Returns the location of the fontconfig config file being used

pub fn get_font_dirs(&self) -> Vec<PathBuf>[src]

Get the directories that contain fonts

pub fn get_fonts(&self) -> Result<Vec<PathBuf>, Error>[src]

Return all fonts installed on the system

pub fn get_font_dir_files(&self) -> Result<Vec<PathBuf>, Error>[src]

Return all 'fonts.dir' files in font directories

pub fn get_regular_family_fonts(
    &self,
    family: &str
) -> Result<Vec<PathBuf>, Error>
[src]

Returns the paths of regular fonts belonging to a specific family installed on the system

Auto Trait Implementations

impl Send for FontConfig

impl Unpin for FontConfig

impl Sync for FontConfig

impl UnwindSafe for FontConfig

impl RefUnwindSafe for FontConfig

Blanket Implementations

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

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

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.

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

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

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