Skip to content
ChartForgeX
Class

VisualTypography

ChartForgeX.Themes

Namespace
ChartForgeX.Themes
Assembly
ChartForgeX
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.

Accepted by parameters 3

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) #

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) #

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) #

Creates a font request for the normal or monospace family.

Parameters

monospace bool = false optional

Returns

FontSpec
public VisualTypography WithFamily(string family) #

Creates an independent scale with a different proportional family.

Parameters

family string required
public VisualTypography WithMinimumReadableTextSize(double size) #

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

Parameters

size double required

Properties

public string Family { get; } #

Gets the fallback family stack.

public string MonospaceFamily { get; } #

Gets the monospace fallback family stack.

public double AxisTitleSize { get; } #

Gets the independent axis title size.

public double TitleSize { get; } #

Gets the title size.

public double SubtitleSize { get; } #

Gets the subtitle size.

public double AxisSize { get; } #

Gets the axis size.

public double LegendSize { get; } #

Gets the legend size.

public double DataLabelSize { get; } #

Gets the data-label size.

public double ScalarValueSize { get; } #

Gets the primary value size for scalar charts.

public double CenterValueSize { get; } #

Gets the value size inside a radial chart.

public double TileLabelSize { get; } #

Gets the default VisualCanvas information-tile label size.

public double TileValueSize { get; } #

Gets the default VisualCanvas information-tile value size.

public double TileDetailSize { get; } #

Gets the default VisualCanvas information-tile detail size.

public double MinimumReadableTextSize { get; } #

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