![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <SlateFontInfo.h>
Public Attributes | |
| TObjectPtr< const UObject > | FontObject |
| TObjectPtr< UObject > | FontMaterial |
| FFontOutlineSettings | OutlineSettings |
| TSharedPtr< const FCompositeFont > | CompositeFont |
| FName | TypefaceFontName |
| float | Size |
| int32 | LetterSpacing = 0 |
| float | SkewAmount = 0.0f |
| EFontFallback | FontFallback |
| bool | bForceMonospaced = false |
| bool | bMaterialIsStencil = false |
| float | MonospacedWidth = 1.0f |
Friends | |
| uint32 | GetLegacyTypeHash (const FSlateFontInfo &FontInfo) |
| uint32 | GetTypeHash (const FSlateFontInfo &FontInfo) |
A representation of a font in Slate.
| FSlateFontInfo::FSlateFontInfo | ( | ) |
Default constructor.
|
inline |
Dtor. Must be inline
| FSlateFontInfo::FSlateFontInfo | ( | TSharedPtr< const FCompositeFont > | InCompositeFont, |
| const float | InSize, | ||
| const FName & | InTypefaceFontName = NAME_None, |
||
| const FFontOutlineSettings & | InOutlineSettings = FFontOutlineSettings() |
||
| ) |
Creates and initializes a new instance with the specified font, size, and emphasis.
| InCompositeFont | The font instance to use. |
| InSize | The size of the font. |
| InTypefaceFontName | The name of the font to use from the default typeface (None will use the first entry) |
| FSlateFontInfo::FSlateFontInfo | ( | const UObject * | InFontObject, |
| const float | InSize, | ||
| const FName & | InTypefaceFontName = NAME_None, |
||
| const FFontOutlineSettings & | InOutlineSettings = FFontOutlineSettings() |
||
| ) |
Creates and initializes a new instance with the specified font, size, and emphasis.
| InFontObject | The font instance to use. |
| InSize | The size of the font. |
| InFamilyFontName | The name of the font to use from the default typeface (None will use the first entry) |
| FSlateFontInfo::FSlateFontInfo | ( | const FString & | InFontName, |
| float | InSize, | ||
| EFontHinting | InHinting = EFontHinting::Default, |
||
| const FFontOutlineSettings & | InOutlineSettings = FFontOutlineSettings() |
||
| ) |
Creates and initializes a new instance with the specified font name and size.
| InFontName | The name of the font. |
| InSize | The size of the font. |
| InHinting | The type of hinting to use for the font. |
| FSlateFontInfo::FSlateFontInfo | ( | const FName & | InFontName, |
| float | InSize, | ||
| EFontHinting | InHinting = EFontHinting::Default |
||
| ) |
Creates and initializes a new instance with the specified font name and size.
| InFontName | The name of the font. |
| InSize | The size of the font. |
| InHinting | The type of hinting to use for the font. |
| FSlateFontInfo::FSlateFontInfo | ( | const ANSICHAR * | InFontName, |
| float | InSize, | ||
| EFontHinting | InHinting = EFontHinting::Default |
||
| ) |
Creates and initializes a new instance with the specified font name and size.
| InFontName | The name of the font. |
| InSize | The size of the font. |
| InHinting | The type of hinting to use for the font. |
| FSlateFontInfo::FSlateFontInfo | ( | const WIDECHAR * | InFontName, |
| float | InSize, | ||
| EFontHinting | InHinting = EFontHinting::Default |
||
| ) |
Creates and initializes a new instance with the specified font name and size.
| InFontName | The name of the font. |
| InSize | The size of the font. |
| InHinting | The type of hinting to use for the font. |
| void FSlateFontInfo::AddReferencedObjects | ( | FReferenceCollector & | Collector | ) |
| float FSlateFontInfo::GetClampSize | ( | ) | const |
Get the font size clamp for the font renderer (on 16bits)
| float FSlateFontInfo::GetClampSkew | ( | ) | const |
Get the skew amount clamp for the text shaper
| const FCompositeFont * FSlateFontInfo::GetCompositeFont | ( | ) | const |
Get the composite font pointer associated with this font info (either directly or via a UFont)
| bool FSlateFontInfo::HasValidFont | ( | ) | const |
Check to see whether this font info has a valid composite font pointer set (either directly or via a UFont)
|
inline |
|
inline |
We need to verify equality without taking into account some more recently added UPROPERTY.. this is required and used only by the legacy FSlateFontKey.
|
inline |
|
friend |
We need a Type Hash that does not take into account some more recently added UPROPERTY.. this is required and used only by the legacy FSlateFontKey.
|
friend |
Calculates a type hash value for a font info.
Type hashes are used in certain collection types, such as TMap.
| FontInfo | The font info to calculate the hash for. |
When enabled, whole quads are filled by the material without automatically stenciling the text - this needs to be done within the material (using Font Signed Distance node).
| TSharedPtr<const FCompositeFont> FSlateFontInfo::CompositeFont |
The composite font data to use (valid when used with a Slate style set in C++)
| EFontFallback FSlateFontInfo::FontFallback |
The font fallback level. Runtime only, don't set on shared FSlateFontInfo, as it may change the font elsewhere (make a copy).
| TObjectPtr<UObject> FSlateFontInfo::FontMaterial |
The material to use when rendering
| TObjectPtr<const UObject> FSlateFontInfo::FontObject |
| int32 FSlateFontInfo::LetterSpacing = 0 |
The uniform spacing (or tracking) between all characters in the text.
| float FSlateFontInfo::MonospacedWidth = 1.0f |
The uniform width to apply to all characters when bForceMonospaced is enabled, proportional of the font Size.
| FFontOutlineSettings FSlateFontInfo::OutlineSettings |
Settings for applying an outline to a font
| float FSlateFontInfo::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, you can change the UMG Font settings to ensure that UMG font size is displayed in its 72 DPI equivalent, even if Slate will still use 96 DPI internally.
| float FSlateFontInfo::SkewAmount = 0.0f |
A skew amount to apply to the text.
| FName FSlateFontInfo::TypefaceFontName |
The name of the font to use from the default typeface (None will use the first entry)