unreal.SlateFontInfo
¶
- class unreal.SlateFontInfo(font_object: Object = Ellipsis, font_material: Object = Ellipsis, outline_settings: FontOutlineSettings = Ellipsis, typeface_font_name: Name = 'None', size: int = 0, letter_spacing: int = 0, skew_amount: float = 0.0)¶
Bases:
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 fontfont_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 fontsize
(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.skew_amount
(float): [Read-Write] Skew Amount: A skew amount to apply to the text.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: Object¶
[Read-Write] Font Material: The material to use when rendering this font
- Type:
(Object)
- property font_object: Object¶
[Read-Write] Font Object: The font object (valid when used from UMG or a Slate widget style asset)
- Type:
(Object)
- property letter_spacing: int¶
[Read-Write] Letter Spacing: The uniform spacing (or tracking) between all characters in the text.
- Type:
(int32)
- property outline_settings: FontOutlineSettings¶
[Read-Write] Outline Settings: Settings for applying an outline to a font
- Type:
- property size: int¶
[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)