Back to API Reference
Class
ItalicModifier
Inherits:PooledAttributeModifier<byte>
Renders italic by slanting glyphs. Tags: <i> = auto, <i=20> = synthetic shear of 20% of height, <i=f> = the run font's own slant, <i=r> = a real italic face only.
public ItalicStyle Style{ get; set }Gets or sets the complete italic configuration.
public ItalicMode Mode{ get; set }How italic is realized. A per-range value overrides it; this is the default for a bare tag or whole-text use.
Synthetic shear in percent of height (−100…100; 30 leans the top right by 0.30 of the height, ≈16.7°, not 30°), applied when Mode is ItalicMode.Synthetic. A per-range value overrides it.
protected override AttributeChannel CreateChannel()protected override void OnApply(in RangeApplyContext context)