pub struct CharShape {Show 23 fields
pub font: String,
pub size: HwpUnit,
pub bold: bool,
pub italic: bool,
pub color: Color,
pub underline_type: UnderlineType,
pub underline_color: Option<Color>,
pub strikeout_shape: StrikeoutShape,
pub strikeout_color: Option<Color>,
pub outline: OutlineType,
pub shadow: ShadowType,
pub emboss: EmbossType,
pub engrave: EngraveType,
pub vertical_position: VerticalPosition,
pub shade_color: Option<Color>,
pub emphasis: EmphasisType,
pub ratio: i32,
pub spacing: i32,
pub rel_sz: i32,
pub offset: i32,
pub use_kerning: bool,
pub use_font_space: bool,
pub char_border_fill_id: Option<u32>,
}Expand description
A fully-resolved character shape (all fields present).
Fields§
§font: StringFont name.
size: HwpUnitFont size.
bold: boolBold.
italic: boolItalic.
color: ColorText color.
underline_type: UnderlineTypeUnderline type.
underline_color: Option<Color>Underline color (None = inherit text color).
strikeout_shape: StrikeoutShapeStrikeout line shape.
strikeout_color: Option<Color>Strikeout color (None = inherit text color).
outline: OutlineTypeText outline.
shadow: ShadowTypeDrop shadow.
emboss: EmbossTypeEmboss effect.
engrave: EngraveTypeEngrave effect.
vertical_position: VerticalPositionVertical position (replaces superscript/subscript bools).
shade_color: Option<Color>Background shade color (None = transparent).
emphasis: EmphasisTypeEmphasis mark type (symMark). Default: None.
ratio: i32Character width ratio (percent, uniform). Default: 100.
spacing: i32Inter-character spacing (percent, uniform). Default: 0.
rel_sz: i32Relative font size (percent, uniform). Default: 100.
offset: i32Vertical position offset (percent, uniform). Default: 0.
use_kerning: boolEnable kerning. Default: false.
use_font_space: boolUse font-defined inter-character spacing. Default: false.
char_border_fill_id: Option<u32>Border/fill reference for character-level border (None = default).
When None, the HWPX encoder uses borderFillIDRef=2 (the 한글 default
char background, which has no visible border). Set to Some(id) to
reference a custom borderFill entry for character-level borders.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CharShape
impl<'de> Deserialize<'de> for CharShape
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>,
Source§impl JsonSchema for CharShape
impl JsonSchema for CharShape
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more