Struct rust_fontconfig::FcFontCache[][src]

pub struct FcFontCache { /* fields omitted */ }

Implementations

impl FcFontCache[src]

pub fn build() -> Self[src]

Builds a new font cache from all fonts discovered on the system

NOTE: Performance-intensive, should only be called on startup!

pub fn list(&self) -> &BTreeMap<FcPattern, FcFontPath>[src]

Returns the list of fonts and font patterns

pub fn query(&self, pattern: &FcPattern) -> Option<&FcFontPath>[src]

Queries a font from the in-memory font -> file mapping

Trait Implementations

impl Clone for FcFontCache[src]

impl Debug for FcFontCache[src]

impl Default for FcFontCache[src]

impl Eq for FcFontCache[src]

impl Ord for FcFontCache[src]

impl PartialEq<FcFontCache> for FcFontCache[src]

impl PartialOrd<FcFontCache> for FcFontCache[src]

impl StructuralEq for FcFontCache[src]

impl StructuralPartialEq for FcFontCache[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.