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)

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] The material to use when rendering this font
  • font_object (Object): [Read-Write] The font object (valid when used from UMG or a Slate widget style asset)
  • outline_settings (FontOutlineSettings): [Read-Write] Settings for applying an outline to a font
  • size (int32): [Read-Write] 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] The name of the font to use from the default typeface (None will use the first entry)
font_material

(Object) – [Read-Write] The material to use when rendering this font

font_object

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

outline_settings

(FontOutlineSettings) – [Read-Write] Settings for applying an outline to a font

size

(int32) – [Read-Write] 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] The name of the font to use from the default typeface (None will use the first entry)