# RasterFontSource

Describes the font source selected for PNG text rendering.

 Enum  

`ChartForgeX.Core`

**Namespace**

`ChartForgeX.Core`

**Assembly**

`ChartForgeX`

**Source**

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

**Base**

`Enum`

**Implements**

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

**Modifiers**

sealed

Describes the font source selected for PNG text rendering.

## Inheritance

- Enum
- RasterFontSource

## Usage

 Explore 4 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 [RasterFontInfo.Source](/api/chartforgex-core-rasterfontinfo/#property-source)
- Field [RasterFontSource.Automatic](/api/chartforgex-core-rasterfontsource/#field-automatic)
- Field [RasterFontSource.BuiltIn](/api/chartforgex-core-rasterfontsource/#field-builtin)
- Field [RasterFontSource.Requested](/api/chartforgex-core-rasterfontsource/#field-requested)

 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 RasterFontSource Requested` [#](#field-requested) 

[PngFontSource.cs:10](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/PngFontSource.cs#L10)

The configured PNG font path was loaded.

Value: `0`

 `public const RasterFontSource Automatic` [#](#field-automatic) 

[PngFontSource.cs:15](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/PngFontSource.cs#L15)

ChartForgeX selected an available platform font automatically.

Value: `1`

 `public const RasterFontSource BuiltIn` [#](#field-builtin) 

[PngFontSource.cs:20](https://github.com/EvotecIT/ChartForgeX/blob/main/ChartForgeX/Core/PngFontSource.cs#L20)

ChartForgeX will use the built-in tiny fallback font.

Value: `2`

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