pub struct ShaperBuilder<'a> { /* private fields */ }
Expand description
Builder for configuring a shaper.
See the module level documentation for more detail.
Implementations§
source§impl<'a> ShaperBuilder<'a>
impl<'a> ShaperBuilder<'a>
sourcepub fn script(self, script: Script) -> Self
pub fn script(self, script: Script) -> Self
Specifies the script. The default value is Script::Latin
.
sourcepub fn language(self, language: Option<Language>) -> Self
pub fn language(self, language: Option<Language>) -> Self
Specifies the language. The default value is None
.
sourcepub fn direction(self, direction: Direction) -> Self
pub fn direction(self, direction: Direction) -> Self
Specifies the text direction. The default value is Direction::LeftToRight
.
sourcepub fn size(self, ppem: f32) -> Self
pub fn size(self, ppem: f32) -> Self
Specifies the font size in pixels per em. The default value is 0
which will produce glyphs with offsets and advances in font units.
sourcepub fn variations<I>(self, settings: I) -> Self
pub fn variations<I>(self, settings: I) -> Self
Adds variation settings to the shaper.
sourcepub fn normalized_coords<I>(self, coords: I) -> Self
pub fn normalized_coords<I>(self, coords: I) -> Self
Specifies the variation settings in terms of normalized coordinates.
sourcepub fn insert_dotted_circles(self, yes: bool) -> Self
pub fn insert_dotted_circles(self, yes: bool) -> Self
Specifies whether to insert dotted circles for broken clusters. The
default value is false
.
sourcepub fn retain_ignorables(self, yes: bool) -> Self
pub fn retain_ignorables(self, yes: bool) -> Self
Specifies whether characters defined as default ignorable should be
retained by the shaper. The default is false
.
Auto Trait Implementations§
impl<'a> Freeze for ShaperBuilder<'a>
impl<'a> RefUnwindSafe for ShaperBuilder<'a>
impl<'a> Send for ShaperBuilder<'a>
impl<'a> Sync for ShaperBuilder<'a>
impl<'a> Unpin for ShaperBuilder<'a>
impl<'a> !UnwindSafe for ShaperBuilder<'a>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more