VDocs.NET
Back to DOM

DOM.Styles.Font

Namespace: DOM.Styles

Represents font (character) formatting for document text runs.

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.

24 members

Constructors

Font

3 overloads
Font()

Initializes a newinstance with default (unspecified) values.

Font(string fontName, double size, bool bold, bool italic)

Initializes a newwith a Latin font family, size, and optional bold/italic.

Parameters

fontName
Name of the Latin font (e.g., "Arial", "Times New Roman").
size
Font size in points.
bold
If, applies bold style.
italic
If, applies italic style.
Font(FontPart latin, FontPart eastAsia, FontPart complexScript, FontPart highAnsi)

Initializes a newwith explicit Latin and East Asian font parts.

Parameters

latin
Latin font part (required).
eastAsia
East Asian font part (optional).
complexScript
Complex script font part (optional).
highAnsi
High ANSI font part (optional).

Properties

AllCaps

Gets or sets a value indicating whether text should be rendered in all capital letters.

Color

Gets or sets the text color.

ComplexScriptFont

Gets or sets the font part used for complex script languages (e.g., Arabic, Hebrew).

EastAsia

Gets or sets the East Asian font family (for CJK scripts).

Emboss

Gets or sets whether emboss effect should be applied to the text.

Emphasis

Gets or sets the emphasis mark (dot, circle, sesame, etc.) to use for the text.

HasOutline

Gets or sets a value indicating whether the font is outlined.

HasShadow

Gets or sets a value indicating whether the font has a shadow effect.

Hidden

Gets or sets whether the text is hidden (not visible in normal rendering).

HighAnsi

Gets or sets the High ANSI font part (legacy code-page behaviour).

Hint

Gets or sets a hint describing how the font should be selected or rendered on the target platform.

KerningFontSize

Gets or sets the font size expressed using.

Use this to control precise point/half-point values and conversions handled by.

Latin

Gets or sets the Latin (Western) font family and related settings.

Position

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.

Useto indicate relative horizontal scaling (100 = normal).

SmallCaps

Gets or sets a value indicating whether text should be rendered in small caps.

Spacing

Gets or sets additional spacing between characters (typically positive to expand).

Strike

Gets or sets strike-through style (single, double, none).

Subscript

Gets or sets whether the text is rendered as subscript.

Superscript

Gets or sets whether the text is rendered as superscript.

Underline

Gets or sets underline style information for the font.

VDocs.NET
The .NET Word Document Library

Generate Word
documents.
Not XML.

Create professional documents in .NET without the complexity of OpenXML or Word Interop.

Reset Password

Enter your email and we'll send you a link to reset your password.

Remember your password? Sign in