unreal.FontRasterizationMode

class unreal.FontRasterizationMode

Bases: EnumBase

Enumerates supported font rasterization modes.

C++ Source:

  • Module: SlateCore

  • File: FontRasterizationMode.h

BITMAP: FontRasterizationMode = Ellipsis

Glyphs are rasterized directly into alpha mask bitmaps per size and skew.

Type:

0

MSDF: FontRasterizationMode = Ellipsis

Glyphs are rasterized into multi-channel signed distance fields, which are size and skew agnostic.

Type:

1

SDF: FontRasterizationMode = Ellipsis

Glyphs are rasterized into single-channel signed distance fields, which are size and skew agnostic. More memory efficient but corners may appear rounded.

Type:

2

SDF_APPROXIMATION: FontRasterizationMode = Ellipsis

Glyphs are rasterized into approximate distance fields, which are size and skew agnostic. More memory and computationally efficient but lower quality.

Type:

3