FontClass
Definition
- Namespace
- DOM.Styles
- Assembly
- DOM.dll
Represents font (character) formatting for document text runs.
Remarks
aggregates font family selections (for different script types), typographic features (kerning, scaling, spacing), and text decorations (underline, strike). Most properties are nullable to allow callers to distinguish "not specified" from an explicit value; consumers should apply inheritance or fallback rules when a property is . Font null Fonts are consumed by and by the fluent objects that describe per-script font families. Font FontPart
Examples
Constructors
Initializes a new instance with default (unspecified) values. Font
Initializes a new with a Latin font family, size, and optional bold/italic. Font
Initializes a new with explicit Latin and East Asian font parts. Font
Properties
Gets or sets a value indicating whether text should be rendered in all capital letters.
Gets or sets the text color.
Gets or sets the font part used for complex script languages (e.g., Arabic, Hebrew).
Gets or sets the East Asian font family (for CJK scripts).
Gets or sets whether emboss effect should be applied to the text.
Gets or sets the emphasis mark (dot, circle, sesame, etc.) to use for the text.
Gets or sets a value indicating whether the font is outlined.
Gets or sets a value indicating whether the font has a shadow effect.
Gets or sets whether the text is hidden (not visible in normal rendering).
Gets or sets the High ANSI font part (legacy code-page behaviour).
Gets or sets a hint describing how the font should be selected or rendered on the target platform.
Gets or sets the font size used for kerning.
Use this to control precise point/half-point values and conversions handled by . FontSize
Gets or sets the Latin (Western) font family and related settings.
Gets or sets the baseline position adjustment (positive moves text upward).
Gets or sets scaling for the font as a percentage of the normal width.
Use to indicate relative horizontal scaling (100 = normal). Percentage
Gets or sets a value indicating whether text should be rendered in small caps.
Gets or sets additional spacing between characters (typically positive to expand).
Gets or sets strike-through style (single, double, none).
Gets or sets whether the text is rendered as subscript.
Gets or sets whether the text is rendered as superscript.
Gets or sets underline style information for the font.