pub struct ShapingInput {Show 13 fields
pub buffer_properties: ShapingBufferProperties,
pub direction: TextDirection,
pub face_index: u32,
pub features: Vec<ShapingFeature>,
pub font_id: StableTextId,
pub font_sha256: Sha256Hex,
pub language: Option<String>,
pub scale_x: i32,
pub scale_y: i32,
pub script: Option<OpenTypeTag>,
pub text: String,
pub text_index_unit: String,
pub variations: Vec<FontVariationCoordinate>,
}Expand description
Complete deterministic shaping input for one run of text in one font.
Fields§
§buffer_properties: ShapingBufferProperties§direction: TextDirection§face_index: u32§features: Vec<ShapingFeature>§font_id: StableTextId§font_sha256: Sha256Hex§language: Option<String>Nonempty BCP 47 language when supplied.
scale_x: i32HarfBuzz hb_font_set_scale x value.
scale_y: i32HarfBuzz hb_font_set_scale y value.
script: Option<OpenTypeTag>§text: String§text_index_unit: StringAlways utf8_byte_offset: clusters and feature ranges index UTF-8 bytes.
variations: Vec<FontVariationCoordinate>Trait Implementations§
Source§impl Clone for ShapingInput
impl Clone for ShapingInput
Source§fn clone(&self) -> ShapingInput
fn clone(&self) -> ShapingInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ShapingInput
impl Debug for ShapingInput
Source§impl<'de> Deserialize<'de> for ShapingInput
impl<'de> Deserialize<'de> for ShapingInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ShapingInput
impl PartialEq for ShapingInput
Source§impl Serialize for ShapingInput
impl Serialize for ShapingInput
impl StructuralPartialEq for ShapingInput
Auto Trait Implementations§
impl Freeze for ShapingInput
impl RefUnwindSafe for ShapingInput
impl Send for ShapingInput
impl Sync for ShapingInput
impl Unpin for ShapingInput
impl UnsafeUnpin for ShapingInput
impl UnwindSafe for ShapingInput
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