unreal.SlateFontInfo

class unreal.SlateFontInfo(font_object=None, font_material=None, outline_settings=[0, False, False, None, [0.0, 0.0, 0.0, 1.0]], typeface_font_name='None', size=24, letter_spacing=0)

Bases: unreal.StructBase

A representation of a font in Slate.

C++ Source:

  • Module: SlateCore

  • File: SlateFontInfo.h

Editor Properties: (see get_editor_property/set_editor_property)

  • font_material (Object): [Read-Write] Font Material: The material to use when rendering this font

  • font_object (Object): [Read-Write] Font Object: The font object (valid when used from UMG or a Slate widget style asset)

  • letter_spacing (int32): [Read-Write] Letter Spacing: The uniform spacing (or tracking) between all characters in the text.

  • outline_settings (FontOutlineSettings): [Read-Write] Outline Settings: Settings for applying an outline to a font

  • size (int32): [Read-Write] Size: The font size is a measure in point values. The conversion of points to Slate Units is done at 96 dpi. So if you’re using a tool like Photoshop to prototype layouts and UI mock ups, be sure to change the default dpi measurements from 72 dpi to 96 dpi.

  • typeface_font_name (Name): [Read-Write] Typeface Font Name: The name of the font to use from the default typeface (None will use the first entry)

property font_material

[Read-Write] Font Material: The material to use when rendering this font

Type

(Object)

property font_object

[Read-Write] Font Object: The font object (valid when used from UMG or a Slate widget style asset)

Type

(Object)

property letter_spacing

[Read-Write] Letter Spacing: The uniform spacing (or tracking) between all characters in the text.

Type

(int32)

property outline_settings

[Read-Write] Outline Settings: Settings for applying an outline to a font

Type

(FontOutlineSettings)

property size

[Read-Write] Size: The font size is a measure in point values. The conversion of points to Slate Units is done at 96 dpi. So if you’re using a tool like Photoshop to prototype layouts and UI mock ups, be sure to change the default dpi measurements from 72 dpi to 96 dpi.

Type

(int32)

property typeface_font_name

[Read-Write] Typeface Font Name: The name of the font to use from the default typeface (None will use the first entry)

Type

(Name)