pub struct ShapeTextOptions {
pub font_stack: String,
pub max_width: Option<f32>,
pub line_height: f32,
pub letter_spacing: f32,
pub justify: TextJustify,
pub anchor: TextAnchor,
pub writing_mode: SymbolWritingMode,
pub text_transform: SymbolTextTransform,
}Expand description
Options for the text shaping pipeline.
Fields§
§font_stack: StringFont stack name (comma-separated).
max_width: Option<f32>Maximum label width before wrapping, in em units.
None disables wrapping.
line_height: f32Line height in em units (default 1.2).
letter_spacing: f32Extra letter spacing in em units (default 0.0).
justify: TextJustifyText justification.
anchor: TextAnchorAnchor alignment.
writing_mode: SymbolWritingModeWriting mode.
text_transform: SymbolTextTransformText transform.
Trait Implementations§
Source§impl Clone for ShapeTextOptions
impl Clone for ShapeTextOptions
Source§fn clone(&self) -> ShapeTextOptions
fn clone(&self) -> ShapeTextOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShapeTextOptions
impl Debug for ShapeTextOptions
Auto Trait Implementations§
impl Freeze for ShapeTextOptions
impl RefUnwindSafe for ShapeTextOptions
impl Send for ShapeTextOptions
impl Sync for ShapeTextOptions
impl Unpin for ShapeTextOptions
impl UnsafeUnpin for ShapeTextOptions
impl UnwindSafe for ShapeTextOptions
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