Navigation
Unreal Engine C++ API Reference > Runtime > SlateCore > Fonts
References
Module | SlateCore |
Header | /Engine/Source/Runtime/SlateCore/Public/Fonts/SlateFontInfo.h |
Include | #include "Fonts/SlateFontInfo.h" |
Syntax
struct FSlateFontInfo
Remarks
A representation of a font in Slate.
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TSharedPtr< const FCompositeFont > | CompositeFont | The composite font data to use (valid when used with a Slate style set in C++) |
![]() |
EFontFallback | FontFallback | The font fallback level. |
![]() |
TObjectPtr< UObject > | FontMaterial | The material to use when rendering this font |
![]() |
TObjectPtr< const UObject > | FontObject | The font object (valid when used from UMG or a Slate widget style asset) |
![]() |
int32 | LetterSpacing | The uniform spacing (or tracking) between all characters in the text. |
![]() |
FFontOutlineSettings | OutlineSettings | Settings for applying an outline to a font |
![]() |
float | Size | The font size is a measure in point values. |
![]() |
float | SkewAmount | A skew amount to apply to the text. |
![]() |
FName | TypefaceFontName | The name of the font to use from the default typeface (None will use the first entry) |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
Default constructor. | ||
![]() |
FSlateFontInfo
(
const FName& InFontName, |
DEPRECATED - Creates and initializes a new instance with the specified font name and size. | |
![]() |
FSlateFontInfo
(
const ANSICHAR* InFontName, |
DEPRECATED - Creates and initializes a new instance with the specified font name and size. | |
![]() |
FSlateFontInfo
(
const WIDECHAR* InFontName, |
DEPRECATED - Creates and initializes a new instance with the specified font name and size. | |
![]() |
FSlateFontInfo
(
TSharedPtr< const FCompositeFont > InCompositeFont, |
Creates and initializes a new instance with the specified font, size, and emphasis. | |
![]() |
FSlateFontInfo
(
const UObject* InFontObject, |
Creates and initializes a new instance with the specified font, size, and emphasis. | |
![]() |
FSlateFontInfo
(
const FString& InFontName, |
DEPRECATED - Creates and initializes a new instance with the specified font name and size. |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
Dtor. Must be inline |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddReferencedObjects
(
FReferenceCollector& Collector |
|
![]() ![]() |
float | GetClampSize () |
Get the font size clamp for the font renderer (on 16bits) |
![]() ![]() |
float | GetClampSkew () |
Get the skew amount clamp for the text shaper |
![]() ![]() |
const FCompositeFont * | Get the composite font pointer associated with this font info (either directly or via a UFont) | |
![]() ![]() |
bool | HasValidFont () |
Check to see whether this font info has a valid composite font pointer set (either directly or via a UFont) |
![]() ![]() |
bool | IsIdentialToForCaching
(
const FSlateFontInfo& Other |
|
![]() ![]() |
bool | IsIdenticalTo
(
const FSlateFontInfo& Other |
|
![]() |
void | PostSerialize
(
const FArchive& Ar |
Used to upgrade legacy font into so that it uses composite fonts |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | operator==
(
const FSlateFontInfo& Other |