Struct swash::shape::Shaper [−][src]
pub struct Shaper<'a> { /* fields omitted */ }
Maps character clusters to positioned glyph clusters according to typographic rules and features.
See the module level documentation for detail.
Implementations
impl<'a> Shaper<'a>
[src]
impl<'a> Shaper<'a>
[src]pub fn add_cluster(&mut self, cluster: &CharCluster)
[src]
Adds a character cluster to the shaper.
pub fn add_str(&mut self, s: &str)
[src]
Adds a string to the shaper.
pub fn normalized_coords(&self) -> &[NormalizedCoord]ⓘ
[src]
Returns the current normalized variation coordinates in use by the shaper.
pub fn metrics(&self) -> Metrics
[src]
Returns the current font metrics in use by the shaper.
pub fn shape_with(self, f: impl FnMut(&GlyphCluster<'_>))
[src]
Shapes the text and invokes the specified closure with each resulting glyph cluster.
Auto Trait Implementations
impl<'a> RefUnwindSafe for Shaper<'a>
impl<'a> RefUnwindSafe for Shaper<'a>
impl<'a> !UnwindSafe for Shaper<'a>
impl<'a> !UnwindSafe for Shaper<'a>