[][src]Struct pathfinder_text::FontContext

pub struct FontContext<F> where
    F: Loader
{ /* fields omitted */ }

Methods

impl<F> FontContext<F> where
    F: Loader
[src]

pub fn new() -> FontContext<F>[src]

pub fn push_glyph(
    &mut self,
    scene: &mut Scene,
    font: &F,
    glyph_id: GlyphId,
    render_options: &FontRenderOptions
) -> Result<(), GlyphLoadingError>
[src]

pub fn get_cached_font(&self, postscript_name: &str) -> Option<&F>[src]

Attempts to look up a font in the font cache.

impl FontContext<DefaultLoader>[src]

pub fn push_layout(
    &mut self,
    scene: &mut Scene,
    layout: &Layout,
    style: &TextStyle,
    render_options: &FontRenderOptions
) -> Result<(), GlyphLoadingError>
[src]

pub fn push_text(
    &mut self,
    scene: &mut Scene,
    text: &str,
    style: &TextStyle,
    collection: &FontCollection,
    render_options: &FontRenderOptions
) -> Result<(), GlyphLoadingError>
[src]

Trait Implementations

impl<F: Clone> Clone for FontContext<F> where
    F: Loader
[src]

Auto Trait Implementations

impl<F> RefUnwindSafe for FontContext<F> where
    F: RefUnwindSafe

impl<F> Send for FontContext<F> where
    F: Send

impl<F> Sync for FontContext<F> where
    F: Sync

impl<F> Unpin for FontContext<F> where
    F: Unpin

impl<F> UnwindSafe for FontContext<F> where
    F: UnwindSafe

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.