# VisualTypography

The shared logical typography scale; the default follows the chart look specification.

 Class  

`ChartForgeX.Themes`

**Namespace**

`ChartForgeX.Themes`

**Assembly**

`ChartForgeX`

**Source**

[VisualTypography.ChartScale.cs:8](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTypography.ChartScale.cs#L8)

**Modifiers**

sealed

The shared logical typography scale; the default follows the chart look specification.

## Inheritance

- object
- VisualTypography

## Usage

 Explore 7 API references to this type 

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

### Returned or exposed by 4

- Property [VisualTheme.Typography](/api/chartforgex-themes-visualtheme/#property-typography)
- Property [VisualThemeBuilder.Typography](/api/chartforgex-themes-visualthemebuilder/#property-typography)
- Method [VisualTypography.WithFamily](/api/chartforgex-themes-visualtypography/#method-withfamily-string)
- Method [VisualTypography.WithMinimumReadableTextSize](/api/chartforgex-themes-visualtypography/#method-withminimumreadabletextsize-double)

### Accepted by parameters 3

- Constructor [VisualTheme.VisualTheme](/api/chartforgex-themes-visualtheme/#constructor-ctor-chartforgex-themes-visualdesigntokens-chartforgex-themes-visualdesigntokens-chartforgex-themes-visualtypography-double-double-double-double-double-double-double-double-double-nullable-chartforgex-primitives-chartcolor-double-double-double) parameter `typography`
- Method [VisualTheme.FromPaletteJson](/api/chartforgex-themes-visualtheme/#method-frompalettejson-string-chartforgex-themes-visualtypography) parameter `typography`
- Method [VisualTheme.WithTypography](/api/chartforgex-themes-visualtheme/#method-withtypography-chartforgex-themes-visualtypography) parameter `typography`

 Filter members   

    Show inherited   

 

## Constructors

 VisualTypography 2 overloads 

 `public VisualTypography(string family, double titleSize, double subtitleSize, double axisSize, double legendSize, double dataLabelSize, double scalarValueSize, double centerValueSize, double? axisTitleSize, string monospaceFamily)` [#](#constructor-ctor-string-double-double-double-double-double-double-double-nullable-system-double-string) 

[VisualTheme.cs:206](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L206)

Creates typography with the existing chart-role sizes and default tile sizes.

Parameters

**family string required**

**titleSize double required**

**subtitleSize double required**

**axisSize double required**

**legendSize double required**

**dataLabelSize double required**

**scalarValueSize double required**

**centerValueSize double required**

**axisTitleSize double? required**

**monospaceFamily string required**

 `public VisualTypography(string family = "Archivo, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif", double titleSize = 16, double subtitleSize = 13, double axisSize = 12, double legendSize = 12, double dataLabelSize = 12, double scalarValueSize = 34, double centerValueSize = 20, double? axisTitleSize = null, string monospaceFamily = ""JetBrains Mono", "Cascadia Mono", Consolas, monospace", double tileLabelSize = 14, double tileValueSize = 22, double tileDetailSize = 13)` [#](#constructor-ctor-string-double-double-double-double-double-double-double-nullable-system-double-string-double-double-double) 

[VisualTypography.ChartScale.cs:8](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTypography.ChartScale.cs#L8)

Creates a validated immutable font scale including VisualCanvas tile sizes.

Parameters

**family string = "Archivo, "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif" optional**

**titleSize double = 16 optional**

**subtitleSize double = 13 optional**

**axisSize double = 12 optional**

**legendSize double = 12 optional**

**dataLabelSize double = 12 optional**

**scalarValueSize double = 34 optional**

**centerValueSize double = 20 optional**

**axisTitleSize double? = null optional**

**monospaceFamily string = ""JetBrains Mono", "Cascadia Mono", Consolas, monospace" optional**

**tileLabelSize double = 14 optional**

**tileValueSize double = 22 optional**

**tileDetailSize double = 13 optional**

## Methods

 `public FontSpec ToFontSpec(bool monospace = false)` [#](#method-tofontspec-boolean) 

[VisualTheme.cs:234](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L234)

Creates a font request for the normal or monospace family.

Parameters

**monospace bool = false optional**

Returns

 `FontSpec` 

 `public VisualTypography WithFamily(string family)` [#](#method-withfamily-string) 

[VisualTheme.cs:237](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L237)

Creates an independent scale with a different proportional family.

Parameters

**family string required**

Returns

 `VisualTypography` 

 `public VisualTypography WithMinimumReadableTextSize(double size)` [#](#method-withminimumreadabletextsize-double) 

[VisualTypography.ChartScale.cs:56](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTypography.ChartScale.cs#L56)

Creates an independent scale with a different minimum readable text size.

Parameters

**size double required**

Returns

 `VisualTypography` 

## Inherited Methods

 `public virtual bool Equals(object? obj)` [#](#method-equals-object) 

Inherited from object

Parameters

**obj object? required**

Returns

 `bool` 

 `public virtual int GetHashCode()` [#](#method-gethashcode) 

Inherited from object

Returns

 `int` 

 `public Type GetType()` [#](#method-gettype) 

Inherited from object

Returns

 `Type` 

 `public virtual string? ToString()` [#](#method-tostring) 

Inherited from object

Returns

 `string?` 

## Properties

 `public string Family { get; }` [#](#property-family) 

[VisualTheme.cs:227](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L227)

Gets the fallback family stack.

 `public string MonospaceFamily { get; }` [#](#property-monospacefamily) 

[VisualTheme.cs:230](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L230)

Gets the monospace fallback family stack.

 `public double AxisTitleSize { get; }` [#](#property-axistitlesize) 

[VisualTheme.cs:232](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L232)

Gets the independent axis title size.

 `public double TitleSize { get; }` [#](#property-titlesize) 

[VisualTheme.cs:249](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L249)

Gets the title size.

 `public double SubtitleSize { get; }` [#](#property-subtitlesize) 

[VisualTheme.cs:251](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L251)

Gets the subtitle size.

 `public double AxisSize { get; }` [#](#property-axissize) 

[VisualTheme.cs:253](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L253)

Gets the axis size.

 `public double LegendSize { get; }` [#](#property-legendsize) 

[VisualTheme.cs:255](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L255)

Gets the legend size.

 `public double DataLabelSize { get; }` [#](#property-datalabelsize) 

[VisualTheme.cs:257](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L257)

Gets the data-label size.

 `public double ScalarValueSize { get; }` [#](#property-scalarvaluesize) 

[VisualTheme.cs:259](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L259)

Gets the primary value size for scalar charts.

 `public double CenterValueSize { get; }` [#](#property-centervaluesize) 

[VisualTheme.cs:261](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L261)

Gets the value size inside a radial chart.

 `public double TileLabelSize { get; }` [#](#property-tilelabelsize) 

[VisualTheme.cs:263](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L263)

Gets the default VisualCanvas information-tile label size.

 `public double TileValueSize { get; }` [#](#property-tilevaluesize) 

[VisualTheme.cs:265](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L265)

Gets the default VisualCanvas information-tile value size.

 `public double TileDetailSize { get; }` [#](#property-tiledetailsize) 

[VisualTheme.cs:267](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTheme.cs#L267)

Gets the default VisualCanvas information-tile detail size.

 `public double MinimumReadableTextSize { get; }` [#](#property-minimumreadabletextsize) 

[VisualTypography.ChartScale.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Themes/VisualTypography.ChartScale.cs#L12)

Gets the smallest text size readable diagram layouts keep at the size they are shown, 11 px by default.

<!-- PowerForge markdown artifact sha256:876AF18BEA0BBAA54EEC65204688A3AEA96B0234A8F6DC96199C9C4741B74C4F -->
