pub trait TextToPath {
    // Required method
    fn convert(
        &self,
        fontdb: &Database,
        absolute_ts: Transform,
        cache: &mut UsvgrTextLayoutCache,
        fonts_cache: &mut FontsCache
    ) -> Option<Node>;
}
Expand description

A usvgr::Text extension trait.

Required Methods§

source

fn convert( &self, fontdb: &Database, absolute_ts: Transform, cache: &mut UsvgrTextLayoutCache, fonts_cache: &mut FontsCache ) -> Option<Node>

Converts the text node into path(s).

absolute_ts is node’s absolute transform. Used primarily during text-on-path resolving.

Implementations on Foreign Types§

source§

impl TextToPath for Text

source§

fn convert( &self, fontdb: &Database, absolute_ts: Transform, cache: &mut UsvgrTextLayoutCache, fonts_cache: &mut FontsCache ) -> Option<Node>

Implementors§