[−][src]Struct crossfont::Rasterizer
Rasterizer, the main type exported by this package.
Given a fontdesc, can rasterize fonts.
Trait Implementations
impl Rasterize for Rasterizer
[src]
type Err = Error
Errors occurring in Rasterize methods.
fn new(
device_pixel_ratio: f32,
use_thin_strokes: bool
) -> Result<Rasterizer, Error>
[src]
device_pixel_ratio: f32,
use_thin_strokes: bool
) -> Result<Rasterizer, Error>
fn metrics(&self, key: FontKey, _size: Size) -> Result<Metrics, Error>
[src]
Get metrics for font specified by FontKey.
fn load_font(&mut self, desc: &FontDesc, size: Size) -> Result<FontKey, Error>
[src]
fn get_glyph(&mut self, glyph: GlyphKey) -> Result<RasterizedGlyph, Error>
[src]
Get rasterized glyph for given glyph key.
fn update_dpr(&mut self, device_pixel_ratio: f32)
[src]
Auto Trait Implementations
impl RefUnwindSafe for Rasterizer
impl Send for Rasterizer
impl Sync for Rasterizer
impl Unpin for Rasterizer
impl UnwindSafe for Rasterizer
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, 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>,