# TextStyle

Defines fully resolved text styling shared by charts, topology, visual blocks, canvases, and image composition.

 Class  

`ChartForgeX.Typography`

**Namespace**

`ChartForgeX.Typography`

**Assembly**

`ChartForgeX`

**Source**

[TextStyle.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L12)

**Modifiers**

sealed

**Attributes**

 `Fluent(Copy = "Clone")` 

Defines fully resolved text styling shared by charts, topology, visual blocks, canvases, and image composition.

## Inheritance

- object
- TextStyle

## Usage

 Explore 75 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 35

- Property [LabelPlacementRequest.Style](/api/chartforgex-rendering-labelplacementrequest/#property-style)
- Property [VisualFrame.LegendStyle](/api/chartforgex-rendering-visualframe/#property-legendstyle)
- Property [VisualFrame.SubtitleStyle](/api/chartforgex-rendering-visualframe/#property-subtitlestyle)
- Property [VisualFrame.TitleStyle](/api/chartforgex-rendering-visualframe/#property-titlestyle)
- Extension method [TextStyle.Alignment](/api/chartforgex-typography-textstyle/#extension-alignment-chartforgex-typography-textstyle-chartforgex-typography-textalignment)
- Extension method [TextStyle.Baseline](/api/chartforgex-typography-textstyle/#extension-baseline-chartforgex-typography-textstyle-chartforgex-typography-textbaseline)
- Extension method [TextStyle.Color](/api/chartforgex-typography-textstyle/#extension-color-chartforgex-typography-textstyle-chartforgex-primitives-chartcolor)
- Extension method [TextStyle.Font](/api/chartforgex-typography-textstyle/#extension-font-chartforgex-typography-textstyle-chartforgex-typography-fontspec)
- Extension method [TextStyle.FontSize](/api/chartforgex-typography-textstyle/#extension-fontsize-chartforgex-typography-textstyle-double)
- Extension method [TextStyle.Hinting](/api/chartforgex-typography-textstyle/#extension-hinting-chartforgex-typography-textstyle-chartforgex-typography-texthinting)
- Extension method [TextStyle.LetterSpacing](/api/chartforgex-typography-textstyle/#extension-letterspacing-chartforgex-typography-textstyle-double)
- Extension method [TextStyle.LineHeight](/api/chartforgex-typography-textstyle/#extension-lineheight-chartforgex-typography-textstyle-double)
- Extension method [TextStyle.OpenTypeLanguageTag](/api/chartforgex-typography-textstyle/#extension-opentypelanguagetag-chartforgex-typography-textstyle-string)
- Extension method [TextStyle.Strikethrough](/api/chartforgex-typography-textstyle/#extension-strikethrough-chartforgex-typography-textstyle-boolean)
- Extension method [TextStyle.StrikethroughStyle](/api/chartforgex-typography-textstyle/#extension-strikethroughstyle-chartforgex-typography-textstyle-chartforgex-typography-textdecorationstyle)
- Extension method [TextStyle.TextCase](/api/chartforgex-typography-textstyle/#extension-textcase-chartforgex-typography-textstyle-chartforgex-typography-textcasetransform)
- Extension method [TextStyle.Underline](/api/chartforgex-typography-textstyle/#extension-underline-chartforgex-typography-textstyle-boolean)
- Extension method [TextStyle.UnderlineStyle](/api/chartforgex-typography-textstyle/#extension-underlinestyle-chartforgex-typography-textstyle-chartforgex-typography-textdecorationstyle)
- Method [TextStyle.Clone](/api/chartforgex-typography-textstyle/#method-clone)
- Method [TextStyle.Create](/api/chartforgex-typography-textstyle/#method-create-double-chartforgex-primitives-chartcolor)
- Method [TextStyleFluent.Alignment](/api/chartforgex-typography-textstylefluent/#method-alignment-chartforgex-typography-textstyle-chartforgex-typography-textalignment)
- Method [TextStyleFluent.Baseline](/api/chartforgex-typography-textstylefluent/#method-baseline-chartforgex-typography-textstyle-chartforgex-typography-textbaseline)
- Method [TextStyleFluent.Color](/api/chartforgex-typography-textstylefluent/#method-color-chartforgex-typography-textstyle-chartforgex-primitives-chartcolor)
- Method [TextStyleFluent.Font](/api/chartforgex-typography-textstylefluent/#method-font-chartforgex-typography-textstyle-action-chartforgex-typography-fontspec)
- Method [TextStyleFluent.FontSize](/api/chartforgex-typography-textstylefluent/#method-fontsize-chartforgex-typography-textstyle-double)
- Method [TextStyleFluent.Hinting](/api/chartforgex-typography-textstylefluent/#method-hinting-chartforgex-typography-textstyle-chartforgex-typography-texthinting)
- Method [TextStyleFluent.LetterSpacing](/api/chartforgex-typography-textstylefluent/#method-letterspacing-chartforgex-typography-textstyle-double)
- Method [TextStyleFluent.LineHeight](/api/chartforgex-typography-textstylefluent/#method-lineheight-chartforgex-typography-textstyle-double)
- Method [TextStyleFluent.OpenTypeLanguageTag](/api/chartforgex-typography-textstylefluent/#method-opentypelanguagetag-chartforgex-typography-textstyle-string)
- Method [TextStyleFluent.Strikethrough](/api/chartforgex-typography-textstylefluent/#method-strikethrough-chartforgex-typography-textstyle-boolean)
- Method [TextStyleFluent.StrikethroughStyle](/api/chartforgex-typography-textstylefluent/#method-strikethroughstyle-chartforgex-typography-textstyle-chartforgex-typography-textdecorationstyle)
- Method [TextStyleFluent.TextCase](/api/chartforgex-typography-textstylefluent/#method-textcase-chartforgex-typography-textstyle-chartforgex-typography-textcasetransform)
- Method [TextStyleFluent.Underline](/api/chartforgex-typography-textstylefluent/#method-underline-chartforgex-typography-textstyle-boolean)
- Method [TextStyleFluent.UnderlineStyle](/api/chartforgex-typography-textstylefluent/#method-underlinestyle-chartforgex-typography-textstyle-chartforgex-typography-textdecorationstyle)
- Method [TextStyleOverride.Resolve](/api/chartforgex-typography-textstyleoverride/#method-resolve-chartforgex-typography-textstyle)

### Accepted by parameters 40

- Method [ImageComposition.DrawText](/api/chartforgex-composition-imagecomposition/#method-drawtext-double-double-double-string-chartforgex-typography-textstyle-chartforgex-typography-textwrapmode-nullable-system-int32-chartforgex-typography-texttrimming) parameter `style`
- Method [ImageComposition.DrawTextHeader](/api/chartforgex-composition-imagecomposition/#method-drawtextheader-double-double-double-string-string-chartforgex-typography-textstyle-chartforgex-typography-textstyle-double) parameter `noteStyle`
- Method [ImageComposition.DrawTextHeader](/api/chartforgex-composition-imagecomposition/#method-drawtextheader-double-double-double-string-string-chartforgex-typography-textstyle-chartforgex-typography-textstyle-double) parameter `titleStyle`
- Method [ImageComposition.DrawTextLayout](/api/chartforgex-composition-imagecomposition/#method-drawtextlayout-double-double-double-chartforgex-typography-textlayout-chartforgex-typography-textstyle) parameter `style`
- Constructor [LabelPlacementRequest.LabelPlacementRequest](/api/chartforgex-rendering-labelplacementrequest/#constructor-ctor-string-chartforgex-primitives-chartpoint-chartforgex-typography-textstyle-collections-generic-ireadonlylist-chartforgex-rendering-labelcandidate-int32) parameter `style`
- Method [LabelPlacementService.Measure](/api/chartforgex-rendering-labelplacementservice/#method-measure-string-chartforgex-typography-textstyle) parameter `style`
- Constructor [VisualFrame.VisualFrame](/api/chartforgex-rendering-visualframe/#constructor-ctor-string-string-nullable-system-boolean-nullable-chartforgex-core-chartlegendposition-boolean-boolean-chartforgex-typography-textstyle-chartforgex-typography-textstyle-chartforgex-typography-textstyle-nullable-system-int32-double-boolean-string) parameter `legendStyle`
- Constructor [VisualFrame.VisualFrame](/api/chartforgex-rendering-visualframe/#constructor-ctor-string-string-nullable-system-boolean-nullable-chartforgex-core-chartlegendposition-boolean-boolean-chartforgex-typography-textstyle-chartforgex-typography-textstyle-chartforgex-typography-textstyle-nullable-system-int32-double-boolean-string) parameter `subtitleStyle`
- Constructor [VisualFrame.VisualFrame](/api/chartforgex-rendering-visualframe/#constructor-ctor-string-string-nullable-system-boolean-nullable-chartforgex-core-chartlegendposition-boolean-boolean-chartforgex-typography-textstyle-chartforgex-typography-textstyle-chartforgex-typography-textstyle-nullable-system-int32-double-boolean-string) parameter `titleStyle`
- Method [TextLayoutEngine.Layout](/api/chartforgex-typography-textlayoutengine/#method-layout-chartforgex-typography-textcontent-double-chartforgex-typography-textstyle-chartforgex-typography-textwrapmode-nullable-system-int32-chartforgex-typography-texttrimming) parameter `style`
- Method [TextLayoutEngine.Measure](/api/chartforgex-typography-textlayoutengine/#method-measure-chartforgex-typography-textcontent-chartforgex-typography-textstyle) parameter `style`
- Extension method [TextStyle.Alignment](/api/chartforgex-typography-textstyle/#extension-alignment-chartforgex-typography-textstyle-chartforgex-typography-textalignment) parameter `textStyle`
- Extension method [TextStyle.Baseline](/api/chartforgex-typography-textstyle/#extension-baseline-chartforgex-typography-textstyle-chartforgex-typography-textbaseline) parameter `textStyle`
- Extension method [TextStyle.Color](/api/chartforgex-typography-textstyle/#extension-color-chartforgex-typography-textstyle-chartforgex-primitives-chartcolor) parameter `textStyle`
- Extension method [TextStyle.Font](/api/chartforgex-typography-textstyle/#extension-font-chartforgex-typography-textstyle-chartforgex-typography-fontspec) parameter `textStyle`
- Extension method [TextStyle.FontSize](/api/chartforgex-typography-textstyle/#extension-fontsize-chartforgex-typography-textstyle-double) parameter `textStyle`
- Extension method [TextStyle.Hinting](/api/chartforgex-typography-textstyle/#extension-hinting-chartforgex-typography-textstyle-chartforgex-typography-texthinting) parameter `textStyle`
- Extension method [TextStyle.LetterSpacing](/api/chartforgex-typography-textstyle/#extension-letterspacing-chartforgex-typography-textstyle-double) parameter `textStyle`
- Extension method [TextStyle.LineHeight](/api/chartforgex-typography-textstyle/#extension-lineheight-chartforgex-typography-textstyle-double) parameter `textStyle`
- Extension method [TextStyle.OpenTypeLanguageTag](/api/chartforgex-typography-textstyle/#extension-opentypelanguagetag-chartforgex-typography-textstyle-string) parameter `textStyle`
- Extension method [TextStyle.Strikethrough](/api/chartforgex-typography-textstyle/#extension-strikethrough-chartforgex-typography-textstyle-boolean) parameter `textStyle`
- Extension method [TextStyle.StrikethroughStyle](/api/chartforgex-typography-textstyle/#extension-strikethroughstyle-chartforgex-typography-textstyle-chartforgex-typography-textdecorationstyle) parameter `textStyle`
- Extension method [TextStyle.TextCase](/api/chartforgex-typography-textstyle/#extension-textcase-chartforgex-typography-textstyle-chartforgex-typography-textcasetransform) parameter `textStyle`
- Extension method [TextStyle.Underline](/api/chartforgex-typography-textstyle/#extension-underline-chartforgex-typography-textstyle-boolean) parameter `textStyle`
- Extension method [TextStyle.UnderlineStyle](/api/chartforgex-typography-textstyle/#extension-underlinestyle-chartforgex-typography-textstyle-chartforgex-typography-textdecorationstyle) parameter `textStyle`
- Method [TextStyleFluent.Alignment](/api/chartforgex-typography-textstylefluent/#method-alignment-chartforgex-typography-textstyle-chartforgex-typography-textalignment) parameter `textStyle`
- Method [TextStyleFluent.Baseline](/api/chartforgex-typography-textstylefluent/#method-baseline-chartforgex-typography-textstyle-chartforgex-typography-textbaseline) parameter `textStyle`
- Method [TextStyleFluent.Color](/api/chartforgex-typography-textstylefluent/#method-color-chartforgex-typography-textstyle-chartforgex-primitives-chartcolor) parameter `textStyle`
- Method [TextStyleFluent.Font](/api/chartforgex-typography-textstylefluent/#method-font-chartforgex-typography-textstyle-chartforgex-typography-fontspec) parameter `textStyle`
- Method [TextStyleFluent.FontSize](/api/chartforgex-typography-textstylefluent/#method-fontsize-chartforgex-typography-textstyle-double) parameter `textStyle`
- Method [TextStyleFluent.Hinting](/api/chartforgex-typography-textstylefluent/#method-hinting-chartforgex-typography-textstyle-chartforgex-typography-texthinting) parameter `textStyle`
- Method [TextStyleFluent.LetterSpacing](/api/chartforgex-typography-textstylefluent/#method-letterspacing-chartforgex-typography-textstyle-double) parameter `textStyle`
- Method [TextStyleFluent.LineHeight](/api/chartforgex-typography-textstylefluent/#method-lineheight-chartforgex-typography-textstyle-double) parameter `textStyle`
- Method [TextStyleFluent.OpenTypeLanguageTag](/api/chartforgex-typography-textstylefluent/#method-opentypelanguagetag-chartforgex-typography-textstyle-string) parameter `textStyle`
- Method [TextStyleFluent.Strikethrough](/api/chartforgex-typography-textstylefluent/#method-strikethrough-chartforgex-typography-textstyle-boolean) parameter `textStyle`
- Method [TextStyleFluent.StrikethroughStyle](/api/chartforgex-typography-textstylefluent/#method-strikethroughstyle-chartforgex-typography-textstyle-chartforgex-typography-textdecorationstyle) parameter `textStyle`
- Method [TextStyleFluent.TextCase](/api/chartforgex-typography-textstylefluent/#method-textcase-chartforgex-typography-textstyle-chartforgex-typography-textcasetransform) parameter `textStyle`
- Method [TextStyleFluent.Underline](/api/chartforgex-typography-textstylefluent/#method-underline-chartforgex-typography-textstyle-boolean) parameter `textStyle`
- Method [TextStyleFluent.UnderlineStyle](/api/chartforgex-typography-textstylefluent/#method-underlinestyle-chartforgex-typography-textstyle-chartforgex-typography-textdecorationstyle) parameter `textStyle`
- Method [TextStyleOverride.Resolve](/api/chartforgex-typography-textstyleoverride/#method-resolve-chartforgex-typography-textstyle) parameter `fallback`

 Filter members   

    Show inherited   

 

## Constructors

 `public TextStyle()` [#](#constructor-ctor) 

[TextStyle.cs:12](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L12)

## Methods

 `public TextStyle Clone()` [#](#method-clone) 

[TextStyle.cs:121](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L121)

Creates a copy that can be modified independently.

Returns

 `TextStyle` 

 `public static TextStyle Create(double fontSize, ChartColor color)` [#](#method-create-double-chartforgex-primitives-chartcolor) 

[TextStyle.cs:137](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L137)

Creates a text style using the supplied size and color.

Parameters

**fontSize double required**

**color ChartForgeX.Primitives.ChartColor required**

Returns

 `TextStyle` 

## 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 FontSpec Font { get; set; }` [#](#property-font) 

[TextStyle.cs:24](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L24)

Gets or sets the font selection.

 `public double FontSize { get; set; }` [#](#property-fontsize) 

[TextStyle.cs:28](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L28)

Gets or sets the font size in logical pixels.

 `public double LetterSpacing { get; set; }` [#](#property-letterspacing) 

[TextStyle.cs:39](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L39)

Gets or sets additional logical pixels between eligible shaped groups. Zero preserves ordinary spacing.

 `public ChartColor Color { get; set; }` [#](#property-color) 

[TextStyle.cs:47](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L47)

Gets or sets the text color.

 `public TextAlignment Alignment { get; set; }` [#](#property-alignment) 

[TextStyle.cs:50](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L50)

Gets or sets horizontal alignment inside the layout region.

 `public double LineHeight { get; set; }` [#](#property-lineheight) 

[TextStyle.cs:54](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L54)

Gets or sets line height as a multiplier of the measured font height.

 `public bool Underline { get; set; }` [#](#property-underline) 

[TextStyle.cs:63](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L63)

Gets or sets a compatibility value that maps to a single solid underline.

 `public TextDecorationStyle UnderlineStyle { get; set; }` [#](#property-underlinestyle) 

[TextStyle.cs:69](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L69)

Gets or sets the underline pattern.

 `public bool Strikethrough { get; set; }` [#](#property-strikethrough) 

[TextStyle.cs:75](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L75)

Gets or sets a compatibility value that maps to a single solid strikethrough.

 `public TextDecorationStyle StrikethroughStyle { get; set; }` [#](#property-strikethroughstyle) 

[TextStyle.cs:81](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L81)

Gets or sets the strikethrough pattern.

 `public TextBaseline Baseline { get; set; }` [#](#property-baseline) 

[TextStyle.cs:87](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L87)

Gets or sets vertical baseline placement.

 `public TextCaseTransform TextCase { get; set; }` [#](#property-textcase) 

[TextStyle.cs:93](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L93)

Gets or sets the display-time text-case transform.

 `public TextHinting Hinting { get; set; }` [#](#property-hinting) 

[TextStyle.cs:105](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L105)

Gets or sets how raster output fits this text to the pixel grid. [TextHinting.Auto](/api/chartforgex-typography-texthinting/) (the default) snaps the baseline, x-height, and cap height of text at 12 output pixels and below to whole pixels without changing its width; [TextHinting.None](/api/chartforgex-typography-texthinting/) draws the outlines exactly. [TextHinting.Full](/api/chartforgex-typography-texthinting/) also fits and darkens narrow straight stems, retaining the same layout. SVG and HTML output leave hinting to the browser.

 `public string? OpenTypeLanguageTag { get; set; }` [#](#property-opentypelanguagetag) 

[TextStyle.cs:113](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L113)

Gets or sets the OpenType language-system tag (for example, SRB or TRK). Null selects the font's default language system. Tags are case-sensitive and padded to four characters; an absent language in a font falls back to its default. This is not a culture name.

 `public double EffectiveFontSize { get; }` [#](#property-effectivefontsize) 

[TextStyle.cs:118](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextStyle.cs#L118)

Gets the font size used to measure and render this style.

## Extension Methods

 `public static TextStyle Alignment(TextStyle textStyle, TextAlignment value)` [#](#extension-alignment-chartforgex-typography-textstyle-chartforgex-typography-textalignment) 

Sets [TextStyle.Alignment](/api/chartforgex-typography-textstyle/): Gets or sets horizontal alignment inside the layout region.

Parameters

**textStyle ChartForgeX.Typography.TextStyle required**

The instance.

**value ChartForgeX.Typography.TextAlignment required**

The value.

Returns

 `TextStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::ChartForgeX.Typography.TextStyle { Alignment = value };    textStyle.Alignment(value);
```

 `public static TextStyle Baseline(TextStyle textStyle, TextBaseline value)` [#](#extension-baseline-chartforgex-typography-textstyle-chartforgex-typography-textbaseline) 

Sets [TextStyle.Baseline](/api/chartforgex-typography-textstyle/): Gets or sets vertical baseline placement.

Parameters

**textStyle ChartForgeX.Typography.TextStyle required**

The instance.

**value ChartForgeX.Typography.TextBaseline required**

The value.

Returns

 `TextStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::ChartForgeX.Typography.TextStyle { Baseline = value };    textStyle.Baseline(value);
```

 `public static TextStyle Color(TextStyle textStyle, ChartColor value)` [#](#extension-color-chartforgex-typography-textstyle-chartforgex-primitives-chartcolor) 

Sets [TextStyle.Color](/api/chartforgex-typography-textstyle/): Gets or sets the text color.

Parameters

**textStyle ChartForgeX.Typography.TextStyle required**

The instance.

**value ChartForgeX.Primitives.ChartColor required**

The value.

Returns

 `TextStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                      // C# fluent
new global::ChartForgeX.Typography.TextStyle { Color = value };    textStyle.Color(value);
```

 Font 2 overloads 

 `public static TextStyle Font(TextStyle textStyle, FontSpec value)` [#](#extension-font-chartforgex-typography-textstyle-chartforgex-typography-fontspec) 

Sets [TextStyle.Font](/api/chartforgex-typography-textstyle/): Gets or sets the font selection.

Parameters

**textStyle ChartForgeX.Typography.TextStyle required**

The instance.

**value ChartForgeX.Typography.FontSpec required**

The value.

Returns

 `TextStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                     // C# fluent
new global::ChartForgeX.Typography.TextStyle { Font = value };    textStyle.Font(value);
```

 `public static TextStyle Font(TextStyle textStyle, Action<FontSpec> configure)` [#](#extension-font-chartforgex-typography-textstyle-action-chartforgex-typography-fontspec) 

Configures a copy of [TextStyle.Font](/api/chartforgex-typography-textstyle/) (a new one when not set) and assigns a copy of it once the callback returns, leaving the property unchanged when the callback throws: Gets or sets the font selection.

Parameters

**textStyle ChartForgeX.Typography.TextStyle required**

The instance.

**configure System.Action<ChartForgeX.Typography.FontSpec> required**

Configures the copy.

Returns

 `TextStyle` The same instance. 

 `public static TextStyle FontSize(TextStyle textStyle, double value)` [#](#extension-fontsize-chartforgex-typography-textstyle-double) 

Sets [TextStyle.FontSize](/api/chartforgex-typography-textstyle/): Gets or sets the font size in logical pixels.

Parameters

**textStyle ChartForgeX.Typography.TextStyle required**

The instance.

**value double required**

The value.

Returns

 `TextStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::ChartForgeX.Typography.TextStyle { FontSize = value };    textStyle.FontSize(value);
```

 `public static TextStyle Hinting(TextStyle textStyle, TextHinting value)` [#](#extension-hinting-chartforgex-typography-textstyle-chartforgex-typography-texthinting) 

Sets [TextStyle.Hinting](/api/chartforgex-typography-textstyle/): Gets or sets how raster output fits this text to the pixel grid. [TextHinting.Auto](/api/chartforgex-typography-texthinting/) (the default) snaps the baseline, x-height, and cap height of text at 12 output pixels and below to whole pixels without changing its width; [TextHinting.None](/api/chartforgex-typography-texthinting/) draws the outlines exactly. [TextHinting.Full](/api/chartforgex-typography-texthinting/) also fits and darkens narrow straight stems, retaining the same layout. SVG and HTML output leave hinting to the browser.

Parameters

**textStyle ChartForgeX.Typography.TextStyle required**

The instance.

**value ChartForgeX.Typography.TextHinting required**

The value.

Returns

 `TextStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                        // C# fluent
new global::ChartForgeX.Typography.TextStyle { Hinting = value };    textStyle.Hinting(value);
```

 `public static TextStyle LetterSpacing(TextStyle textStyle, double value)` [#](#extension-letterspacing-chartforgex-typography-textstyle-double) 

Sets [TextStyle.LetterSpacing](/api/chartforgex-typography-textstyle/): Gets or sets additional logical pixels between eligible shaped groups. Zero preserves ordinary spacing.

Parameters

**textStyle ChartForgeX.Typography.TextStyle required**

The instance.

**value double required**

The value.

Returns

 `TextStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::ChartForgeX.Typography.TextStyle { LetterSpacing = value };    textStyle.LetterSpacing(value);
```

 `public static TextStyle LineHeight(TextStyle textStyle, double value)` [#](#extension-lineheight-chartforgex-typography-textstyle-double) 

Sets [TextStyle.LineHeight](/api/chartforgex-typography-textstyle/): Gets or sets line height as a multiplier of the measured font height.

Parameters

**textStyle ChartForgeX.Typography.TextStyle required**

The instance.

**value double required**

The value.

Returns

 `TextStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                           // C# fluent
new global::ChartForgeX.Typography.TextStyle { LineHeight = value };    textStyle.LineHeight(value);
```

 `public static TextStyle OpenTypeLanguageTag(TextStyle textStyle, string? value)` [#](#extension-opentypelanguagetag-chartforgex-typography-textstyle-string) 

Sets [TextStyle.OpenTypeLanguageTag](/api/chartforgex-typography-textstyle/): Gets or sets the OpenType language-system tag (for example, SRB or TRK). Null selects the font's default language system. Tags are case-sensitive and padded to four characters; an absent language in a font falls back to its default. This is not a culture name.

Parameters

**textStyle ChartForgeX.Typography.TextStyle required**

The instance.

**value string? required**

The value.

Returns

 `TextStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                                    // C# fluent
new global::ChartForgeX.Typography.TextStyle { OpenTypeLanguageTag = value };    textStyle.OpenTypeLanguageTag(value);
```

 `public static TextStyle Strikethrough(TextStyle textStyle, bool value = true)` [#](#extension-strikethrough-chartforgex-typography-textstyle-boolean) 

Sets [TextStyle.Strikethrough](/api/chartforgex-typography-textstyle/): Gets or sets a compatibility value that maps to a single solid strikethrough.

Parameters

**textStyle ChartForgeX.Typography.TextStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `TextStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                              // C# fluent
new global::ChartForgeX.Typography.TextStyle { Strikethrough = value };    textStyle.Strikethrough(value);
```

 `public static TextStyle StrikethroughStyle(TextStyle textStyle, TextDecorationStyle value)` [#](#extension-strikethroughstyle-chartforgex-typography-textstyle-chartforgex-typography-textdecorationstyle) 

Sets [TextStyle.StrikethroughStyle](/api/chartforgex-typography-textstyle/): Gets or sets the strikethrough pattern.

Parameters

**textStyle ChartForgeX.Typography.TextStyle required**

The instance.

**value ChartForgeX.Typography.TextDecorationStyle required**

The value.

Returns

 `TextStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                                   // C# fluent
new global::ChartForgeX.Typography.TextStyle { StrikethroughStyle = value };    textStyle.StrikethroughStyle(value);
```

 `public static TextStyle TextCase(TextStyle textStyle, TextCaseTransform value)` [#](#extension-textcase-chartforgex-typography-textstyle-chartforgex-typography-textcasetransform) 

Sets [TextStyle.TextCase](/api/chartforgex-typography-textstyle/): Gets or sets the display-time text-case transform.

Parameters

**textStyle ChartForgeX.Typography.TextStyle required**

The instance.

**value ChartForgeX.Typography.TextCaseTransform required**

The value.

Returns

 `TextStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                         // C# fluent
new global::ChartForgeX.Typography.TextStyle { TextCase = value };    textStyle.TextCase(value);
```

 `public static TextStyle Underline(TextStyle textStyle, bool value = true)` [#](#extension-underline-chartforgex-typography-textstyle-boolean) 

Sets [TextStyle.Underline](/api/chartforgex-typography-textstyle/): Gets or sets a compatibility value that maps to a single solid underline.

Parameters

**textStyle ChartForgeX.Typography.TextStyle required**

The instance.

**value bool = true optional**

The value; true when omitted.

Returns

 `TextStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                          // C# fluent
new global::ChartForgeX.Typography.TextStyle { Underline = value };    textStyle.Underline(value);
```

 `public static TextStyle UnderlineStyle(TextStyle textStyle, TextDecorationStyle value)` [#](#extension-underlinestyle-chartforgex-typography-textstyle-chartforgex-typography-textdecorationstyle) 

Sets [TextStyle.UnderlineStyle](/api/chartforgex-typography-textstyle/): Gets or sets the underline pattern.

Parameters

**textStyle ChartForgeX.Typography.TextStyle required**

The instance.

**value ChartForgeX.Typography.TextDecorationStyle required**

The value.

Returns

 `TextStyle` The same instance. 

Examples

```csharp
// C# initializer or property                                               // C# fluent
new global::ChartForgeX.Typography.TextStyle { UnderlineStyle = value };    textStyle.UnderlineStyle(value);
```

<!-- PowerForge markdown artifact sha256:8CB97C7AD27B61AB3675C138198692D9275982D2A6AA93676F47EE6576CB1B29 -->
