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§
Sourcefn convert(
&self,
fontdb: &Database,
absolute_ts: Transform,
cache: &mut UsvgrTextLayoutCache,
fonts_cache: &mut FontsCache,
) -> Option<Node>
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.