VegaRise.NET
Back to DOM

FontSchemeClass

Definition

Namespace
DOM.Styles
Assembly
DOM.dll

Describes a document font scheme used by a theme to provide coordinated typefaces.

Remarks

A groups the primary (major) and secondary (minor) font families for different script categories (Latin, East Asian, Complex Script) and provides a list of script-specific font overrides. Consumers should consult the scheme when producing styled text or when falling back to theme-provided fonts. FontScheme Font schemes are used by . Fonts

Examples

csharp
1// 1. Full Office-style font scheme
2var scheme = new FontScheme
3{
4 Name = "Office",
5 MajorLatin = "Calibri Light",
6 MinorLatin = "Calibri",
7 MajorEastAsian = "MS Gothic",
8 MinorEastAsian = "MS Mincho",
9 MajorComplexScript = "Arial",
10 MinorComplexScript = "Arial"
11};
12
csharp
1// 2. Latin-only scheme
2var scheme = new FontScheme
3{
4 Name = "Latin Only",
5 MajorLatin = "Georgia",
6 MinorLatin = "Verdana"
7};
8
csharp
1// 3. Scheme with per-script overrides
2var scheme = new FontScheme
3{
4 Name = "Custom",
5 MajorLatin = "Segoe UI",
6 MinorLatin = "Segoe UI",
7 ScriptFonts = new List<ScriptFont>
8 {
9 new ScriptFont { ScriptName = "Arab", TypeFace = "Traditional Arabic" },
10 new ScriptFont { ScriptName = "Hebr", TypeFace = "David" }
11 }
12};
13
csharp
1// 4. Attach to a theme
2var theme = new Theme
3{
4 Name = "Custom",
5 Fonts = new FontScheme
6 {
7 Name = "Custom",
8 MajorLatin = "Calibri Light",
9 MinorLatin = "Calibri"
10 }
11};
12
csharp
1// 5. Sparse scheme — only body font configured
2var scheme = new FontScheme
3{
4 Name = "Minimal",
5 MinorLatin = "Arial"
6};
7

Properties

MajorComplexScript

Gets or sets the major complex-script font family used for prominent complex-script text.

MajorEastAsian

Gets or sets the major East Asian font family used for prominent CJK text.

MajorLatin

Gets or sets the major Latin font family used for prominent (heading-level) text.

MinorComplexScript

Gets or sets the minor complex-script font family used for body (regular) complex-script text.

MinorEastAsian

Gets or sets the minor East Asian font family used for body (regular) CJK text.

MinorLatin

Gets or sets the minor Latin font family used for body (regular) Latin text.

Name

Gets or sets the canonical name of the font scheme.

ScriptFontsScriptFont

Gets or sets script-specific font entries that provide overrides or additional font metadata.

VegaRiseVDocs.NET

Reset Password

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

Remember your password? Sign in