pub struct TextPathPropertiesTrait {
pub characters: String,
pub style: Box<TextPathTypeStyle>,
pub character_style_overrides: Vec<f64>,
pub layout_version: Option<f64>,
pub style_override_table: HashMap<String, TextPathTypeStyle>,
}
Fields§
§characters: String
The raw characters in the text path node.
style: Box<TextPathTypeStyle>
Style of text including font family and weight.
character_style_overrides: Vec<f64>
The array corresponds to characters in the text box, where each element references the ‘styleOverrideTable’ to apply specific styles to each character. The array’s length can be less than or equal to the number of characters due to the removal of trailing zeros. Elements with a value of 0 indicate characters that use the default type style. If the array is shorter than the total number of characters, the characters beyond the array’s length also use the default style.
layout_version: Option<f64>
Internal property, preserved for backward compatibility. Avoid using this value.
style_override_table: HashMap<String, TextPathTypeStyle>
Map from ID to TextPathTypeStyle for looking up style overrides.
Implementations§
Source§impl TextPathPropertiesTrait
impl TextPathPropertiesTrait
pub fn new( characters: String, style: TextPathTypeStyle, character_style_overrides: Vec<f64>, style_override_table: HashMap<String, TextPathTypeStyle>, ) -> TextPathPropertiesTrait
Trait Implementations§
Source§impl Clone for TextPathPropertiesTrait
impl Clone for TextPathPropertiesTrait
Source§fn clone(&self) -> TextPathPropertiesTrait
fn clone(&self) -> TextPathPropertiesTrait
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 TextPathPropertiesTrait
impl Debug for TextPathPropertiesTrait
Source§impl Default for TextPathPropertiesTrait
impl Default for TextPathPropertiesTrait
Source§fn default() -> TextPathPropertiesTrait
fn default() -> TextPathPropertiesTrait
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextPathPropertiesTrait
impl<'de> Deserialize<'de> for TextPathPropertiesTrait
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 TextPathPropertiesTrait
impl PartialEq for TextPathPropertiesTrait
Source§impl Serialize for TextPathPropertiesTrait
impl Serialize for TextPathPropertiesTrait
impl StructuralPartialEq for TextPathPropertiesTrait
Auto Trait Implementations§
impl Freeze for TextPathPropertiesTrait
impl RefUnwindSafe for TextPathPropertiesTrait
impl Send for TextPathPropertiesTrait
impl Sync for TextPathPropertiesTrait
impl Unpin for TextPathPropertiesTrait
impl UnwindSafe for TextPathPropertiesTrait
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