#[non_exhaustive]pub struct HwpxCharShape {Show 23 fields
pub font_ref: HwpxFontRef,
pub height: HwpUnit,
pub text_color: Color,
pub shade_color: Option<Color>,
pub bold: bool,
pub italic: bool,
pub underline_type: UnderlineType,
pub underline_color: Option<Color>,
pub strikeout_shape: StrikeoutShape,
pub strikeout_color: Option<Color>,
pub vertical_position: VerticalPosition,
pub outline_type: OutlineType,
pub shadow_type: ShadowType,
pub emboss_type: EmbossType,
pub engrave_type: EngraveType,
pub emphasis: EmphasisType,
pub ratio: i32,
pub spacing: i32,
pub rel_sz: i32,
pub char_offset: i32,
pub use_kerning: bool,
pub use_font_space: bool,
pub border_fill_id: Option<u32>,
}Expand description
Resolved character properties from <hh:charPr>.
All raw XML strings have been converted to Foundation types.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.font_ref: HwpxFontRefPer-language font references.
height: HwpUnitFont height in HwpUnit (height attribute × 1, already HWPUNIT).
text_color: ColorText color (from textColor attribute, e.g. "#000000").
shade_color: Option<Color>Background shade color (from shadeColor, "none" → None).
bold: boolBold formatting.
italic: boolItalic formatting.
underline_type: UnderlineTypeUnderline type (e.g. None, Bottom).
underline_color: Option<Color>Underline color (None = inherit text color).
strikeout_shape: StrikeoutShapeStrikeout shape (e.g. None, Continuous).
strikeout_color: Option<Color>Strikeout color (None = inherit text color).
vertical_position: VerticalPositionVertical position (Normal/Superscript/Subscript).
outline_type: OutlineTypeText outline type.
shadow_type: ShadowTypeDrop shadow type.
emboss_type: EmbossTypeEmboss effect type.
engrave_type: EngraveTypeEngrave effect type.
emphasis: EmphasisTypeEmphasis mark type (from symMark attribute).
ratio: i32Character width ratio (uniform, from ratio child element).
spacing: i32Inter-character spacing (uniform, from spacing child element).
rel_sz: i32Relative font size (uniform, from relSz child element).
char_offset: i32Vertical position offset (uniform, from offset child element).
use_kerning: boolEnable kerning (from useKerning attribute, 0/1).
use_font_space: boolUse font space (from useFontSpace attribute, 0/1).
border_fill_id: Option<u32>Border/fill reference for character border (borderFillIDRef).
None means use the default value of 2 (한글 default char background).
Set to Some(id) to reference a custom HwpxBorderFill entry.
Trait Implementations§
Source§impl Clone for HwpxCharShape
impl Clone for HwpxCharShape
Source§fn clone(&self) -> HwpxCharShape
fn clone(&self) -> HwpxCharShape
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HwpxCharShape
impl Debug for HwpxCharShape
Source§impl Default for HwpxCharShape
impl Default for HwpxCharShape
Source§impl PartialEq for HwpxCharShape
impl PartialEq for HwpxCharShape
impl Eq for HwpxCharShape
impl StructuralPartialEq for HwpxCharShape
Auto Trait Implementations§
impl Freeze for HwpxCharShape
impl RefUnwindSafe for HwpxCharShape
impl Send for HwpxCharShape
impl Sync for HwpxCharShape
impl Unpin for HwpxCharShape
impl UnwindSafe for HwpxCharShape
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.