[−][src]Struct pathfinder_text::FontContext
Methods
impl<F> FontContext<F> where
F: Loader,
[src]
F: Loader,
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]
&mut self,
scene: &mut Scene,
font: &F,
glyph_id: GlyphId,
render_options: &FontRenderOptions
) -> Result<(), GlyphLoadingError>
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]
&mut self,
scene: &mut Scene,
layout: &Layout,
style: &TextStyle,
render_options: &FontRenderOptions
) -> Result<(), GlyphLoadingError>
pub fn push_text(
&mut self,
scene: &mut Scene,
text: &str,
style: &TextStyle,
collection: &FontCollection,
render_options: &FontRenderOptions
) -> Result<(), GlyphLoadingError>
[src]
&mut self,
scene: &mut Scene,
text: &str,
style: &TextStyle,
collection: &FontCollection,
render_options: &FontRenderOptions
) -> Result<(), GlyphLoadingError>
Trait Implementations
impl<F: Clone> Clone for FontContext<F> where
F: Loader,
[src]
F: Loader,
fn clone(&self) -> FontContext<F>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Auto Trait Implementations
impl<F> RefUnwindSafe for FontContext<F> where
F: RefUnwindSafe,
F: RefUnwindSafe,
impl<F> Send for FontContext<F> where
F: Send,
F: Send,
impl<F> Sync for FontContext<F> where
F: Sync,
F: Sync,
impl<F> Unpin for FontContext<F> where
F: Unpin,
F: Unpin,
impl<F> UnwindSafe for FontContext<F> where
F: UnwindSafe,
F: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,