TextRasterizer

Trait TextRasterizer 

Source
pub trait TextRasterizer {
    type CacheKey: Hash + Eq + Clone;

    // Required method
    fn rasterize(
        &self,
        dimensions: CanvasDimensions,
        config: &TextRasterizationConfig<'_>,
        cached_glyphs: &HashMap<Self::CacheKey, GlyphBBoxAndAtlasCoords>,
    ) -> Result<TextRasterizationBuffer<Self::CacheKey>, AvengerWgpuError>;
}

Required Associated Types§

Required Methods§

Implementors§