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] The material to use when rendering this fontfont_object
(Object): [Read-Write] The font object (valid when used from UMG or a Slate widget style asset)letter_spacing
(int32): [Read-Write] The uniform spacing (or tracking) between all characters in the text.outline_settings
(FontOutlineSettings): [Read-Write] Settings for applying an outline to a fontsize
(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)
- property font_object¶
[Read-Write] The font object (valid when used from UMG or a Slate widget style asset)
- Type
(Object)
- property letter_spacing¶
[Read-Write] The uniform spacing (or tracking) between all characters in the text.
- Type
(int32)
- property outline_settings¶
[Read-Write] Settings for applying an outline to a font
- Type
- property size¶
[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.
- Type
(int32)