# TextMeasurementMode

Controls whether layout widths depend on fonts installed on the rendering host.

 Enum  

`ChartForgeX.Typography`

**Namespace**

`ChartForgeX.Typography`

**Assembly**

`ChartForgeX`

**Source**

[TextMeasurementMode.cs:4](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextMeasurementMode.cs#L4)

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Controls whether layout widths depend on fonts installed on the rendering host.

## Inheritance

- Enum
- TextMeasurementMode

## Usage

 Explore 8 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 [VisualCanvasStyleOptions.TextMeasurementMode](/api/chartforgex-composition-visualcanvasstyleoptions/#property-textmeasurementmode)
- Property [TopologyRenderOptions.TextMeasurementMode](/api/chartforgex-topology-topologyrenderoptions/#property-textmeasurementmode)
- Field [TextMeasurementMode.InstalledFonts](/api/chartforgex-typography-textmeasurementmode/#field-installedfonts)
- Field [TextMeasurementMode.PortableEstimate](/api/chartforgex-typography-textmeasurementmode/#field-portableestimate)

### Accepted by parameters 4

- Extension method [VisualCanvasStyleOptions.TextMeasurementMode](/api/chartforgex-composition-visualcanvasstyleoptions/#extension-textmeasurementmode-chartforgex-composition-visualcanvasstyleoptions-chartforgex-typography-textmeasurementmode) parameter `value`
- Method [VisualCanvasStyleOptionsFluent.TextMeasurementMode](/api/chartforgex-composition-visualcanvasstyleoptionsfluent/#method-textmeasurementmode-chartforgex-composition-visualcanvasstyleoptions-chartforgex-typography-textmeasurementmode) parameter `value`
- Extension method [TopologyRenderOptions.TextMeasurementMode](/api/chartforgex-topology-topologyrenderoptions/#extension-textmeasurementmode-chartforgex-topology-topologyrenderoptions-chartforgex-typography-textmeasurementmode) parameter `value`
- Method [TopologyRenderOptionsFluent.TextMeasurementMode](/api/chartforgex-topology-topologyrenderoptionsfluent/#method-textmeasurementmode-chartforgex-topology-topologyrenderoptions-chartforgex-typography-textmeasurementmode) 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 TextMeasurementMode PortableEstimate` [#](#field-portableestimate) 

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

Uses the portable width estimate. Geometry is independent of installed fonts; actual glyph widths can differ.

Value: `0`

 `public const TextMeasurementMode InstalledFonts` [#](#field-installedfonts) 

[TextMeasurementMode.cs:8](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Typography/TextMeasurementMode.cs#L8)

Measures the theme family using installed outline fonts. Geometry can differ between hosts.

Value: `1`

<!-- PowerForge markdown artifact sha256:050C83559D7AC08DD4A9FA35B8BEBB6EFB3FA875B86B34763BD6674E020AFF44 -->
