# TextHinting

Controls how raster text is fitted to the pixel grid.

 Enum  

`ChartForgeX.Typography`

**Namespace**

`ChartForgeX.Typography`

**Assembly**

`ChartForgeX`

**Source**

[TextHinting.cs:6](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextHinting.cs#L6)

**Base**

`Enum`

**Implements**

 `IComparable` `ISpanFormattable` `IFormattable` `IConvertible` 

**Modifiers**

sealed

Controls how raster text is fitted to the pixel grid.

## Inheritance

- Enum
- TextHinting

## Usage

 Explore 12 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 7

- Property [ChartRasterOptions.TextHinting](/api/chartforgex-core-chartrasteroptions/#property-texthinting)
- Property [VisualRenderOptions.TextHinting](/api/chartforgex-rendering-visualrenderoptions/#property-texthinting)
- Field [TextHinting.Auto](/api/chartforgex-typography-texthinting/#field-auto)
- Field [TextHinting.Full](/api/chartforgex-typography-texthinting/#field-full)
- Field [TextHinting.None](/api/chartforgex-typography-texthinting/#field-none)
- Property [TextStyle.Hinting](/api/chartforgex-typography-textstyle/#property-hinting)
- Property [VisualArtifactInterchangeWaterfallArtifact.RasterTextHinting](/api/chartforgex-visualartifacts-visualartifactinterchangewaterfallartifact/#property-rastertexthinting)

### Accepted by parameters 5

- Extension method [ChartRasterOptions.TextHinting](/api/chartforgex-core-chartrasteroptions/#extension-texthinting-chartforgex-core-chartrasteroptions-chartforgex-typography-texthinting) parameter `value`
- Method [ChartRasterOptionsFluent.TextHinting](/api/chartforgex-core-chartrasteroptionsfluent/#method-texthinting-chartforgex-core-chartrasteroptions-chartforgex-typography-texthinting) parameter `value`
- Constructor [VisualRenderOptions.VisualRenderOptions](/api/chartforgex-rendering-visualrenderoptions/#constructor-ctor-int32-int32-int64-nullable-chartforgex-typography-texthinting) parameter `textHinting`
- Extension method [TextStyle.Hinting](/api/chartforgex-typography-textstyle/#extension-hinting-chartforgex-typography-textstyle-chartforgex-typography-texthinting) parameter `value`
- Method [TextStyleFluent.Hinting](/api/chartforgex-typography-textstylefluent/#method-hinting-chartforgex-typography-textstyle-chartforgex-typography-texthinting) parameter `value`

 Filter members   

    Show inherited   

 

## Inherited Methods

 `public int CompareTo(object? target)` [#](#method-compareto-object) 

Inherited from Enum

Parameters

**target object? required**

Returns

 `int` 

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

Inherited from Enum

Parameters

**obj object? required**

Returns

 `bool` 

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

Inherited from Enum

Returns

 `int` 

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

Inherited from object

Returns

 `Type` 

 `public TypeCode GetTypeCode()` [#](#method-gettypecode) 

Inherited from Enum

Returns

 `TypeCode` 

 `public bool HasFlag(Enum flag)` [#](#method-hasflag-enum) 

Inherited from Enum

Parameters

**flag Enum required**

Returns

 `bool` 

 ToString 4 overloads 

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

Inherited from Enum

Returns

 `string` 

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

Inherited from Enum

Parameters

**format string? required**

Returns

 `string` 

 `public string ToString(IFormatProvider? provider)` [#](#method-tostring-iformatprovider) 

Inherited from Enum

 `Obsolete("The provider argument is not used. Use ToString() instead.")` 

Parameters

**provider IFormatProvider? required**

Returns

 `string` 

 `public string ToString(string? format, IFormatProvider? provider)` [#](#method-tostring-string-iformatprovider) 

Inherited from Enum

 `Obsolete("The provider argument is not used. Use ToString(String) instead.")` 

Parameters

**format string? required**

**provider IFormatProvider? required**

Returns

 `string` 

## Values

 `public const TextHinting Auto` [#](#field-auto) 

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

Text drawn at 12 output pixels or smaller has its baseline, x-height, and cap height moved to whole pixels, vertically only, so stems and x-heights are crisp while advances, widths, and wrapping stay exactly those of unhinted text. Larger text is drawn as designed.

Value: `0`

 `public const TextHinting None` [#](#field-none) 

[TextHinting.cs:18](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextHinting.cs#L18)

Every glyph is drawn exactly as designed, at any size: use it where outline geometry matters more than crisp rows, such as animation frames that move text by fractions of a pixel.

Value: `1`

 `public const TextHinting Full` [#](#field-full) 

[TextHinting.cs:27](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextHinting.cs#L27)

Adds horizontal fitting and limited darkening of narrow, straight stems to [TextHinting.Auto](/api/chartforgex-typography-texthinting/) at 12 output pixels and below. Glyph ink can move by less than one output pixel; advances, measurement, wrapping, and fitting retain the font's layout. Slanted and colour glyphs keep their existing outline policy. Exact-size horizontal embedded monochrome strikes use their authored coverage and the text colour, retaining shaped advances. Font instruction programs are not executed.

Value: `2`

<!-- PowerForge markdown artifact sha256:CEF7FA376FEA89021908406651EB4F86476A4A279435AEEA30A08CC13F79F268 -->
