pub struct NativeShapingRequest<'a> {
pub text: &'a str,
pub primary_font_id: FontId,
pub font_size: f32,
pub direction: Direction,
pub script: [u8; 4],
pub language: [u8; 4],
pub allow_system_fallback: bool,
}Expand description
Request parameters submitted to a native shaping route.
Fields§
§text: &'a strThe logical text slice to shape.
primary_font_id: FontIdThe requested primary font identity.
font_size: f32Layout font size in points.
direction: DirectionText direction.
script: [u8; 4]OpenType script tag (e.g. *b"latn", *b"hani").
language: [u8; 4]OpenType language tag (e.g. *b"dflt").
allow_system_fallback: boolWhether the shaper is permitted to substitute platform fallback faces for characters missing from the primary font.
Trait Implementations§
Source§impl<'a> Clone for NativeShapingRequest<'a>
impl<'a> Clone for NativeShapingRequest<'a>
Source§impl<'a> Debug for NativeShapingRequest<'a>
impl<'a> Debug for NativeShapingRequest<'a>
Source§impl<'a> PartialEq for NativeShapingRequest<'a>
impl<'a> PartialEq for NativeShapingRequest<'a>
impl<'a> StructuralPartialEq for NativeShapingRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for NativeShapingRequest<'a>
impl<'a> RefUnwindSafe for NativeShapingRequest<'a>
impl<'a> Send for NativeShapingRequest<'a>
impl<'a> Sync for NativeShapingRequest<'a>
impl<'a> Unpin for NativeShapingRequest<'a>
impl<'a> UnsafeUnpin for NativeShapingRequest<'a>
impl<'a> UnwindSafe for NativeShapingRequest<'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