Navigation
Unreal Engine C++ API Reference > Runtime > SlateCore > Fonts
References
Module | SlateCore |
Header | /Engine/Source/Runtime/SlateCore/Public/Fonts/CompositeFont.h |
Include | #include "Fonts/CompositeFont.h" |
Syntax
USTRUCT ()
struct FFontData
Remarks
Payload data describing an individual font in a typeface. Keep this lean as it's also used as a key!
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FFontData () |
Default constructor | |
![]() |
Construct the raw data from a font face asset | ||
![]() |
FFontData
(
FString InFontFilename, |
Construct the raw data from a filename and the font data attributes |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddReferencedObjects
(
FReferenceCollector& Collector |
Called by FStandaloneCompositeFont to prevent our objects from being GCd |
![]() |
void | ConditionalUpgradeBulkDataToFontFace
(
UObject* InOuter, |
Upgrade v2 bulk data to v3 font face. |
![]() |
void | ConditionalUpgradeFontDataToBulkData
(
UObject* InOuter |
Upgrade v1 font data to v2 bulk data. |
![]() ![]() |
int32 | Returns the overridden value of the ascend. | |
![]() ![]() |
int32 | Returns the overridden value of the descend. | |
![]() ![]() |
const UObject * | Get the font face asset used by this data (if any). | |
![]() ![]() |
FFontFaceDataConstPtr | Get the data buffer containing the data for the current font face. | |
![]() ![]() |
const FString & | Get the filename of the font to use. | |
![]() ![]() |
FFontRasterizationSettings | Get the font face rasterization settings. | |
![]() ![]() |
EFontHinting | GetHinting () |
Get the hinting algorithm to use with the font. |
![]() ![]() |
EFontLayoutMethod | Get the method to use when laying out the font? | |
![]() ![]() |
EFontLoadingPolicy | Get the enum controlling how this font should be loaded at runtime. | |
![]() ![]() |
int32 | Gets the percentage of the font height that's used as the height of the strike brush. | |
![]() ![]() |
int32 | Get the index of the sub-face that should be used. | |
![]() ![]() |
bool | HasFont () |
Is this font data set to a font? (either by filename or by inline data) |
![]() ![]() |
bool | True if this object contains any legacy data that needs to be upgraded PostLoad by calling the functions below (in order). | |
![]() ![]() |
bool | Returns true if the ascend is overridden. | |
![]() ![]() |
bool | Returns true if the descend is overridden. | |
![]() |
bool | Handle serialization for this struct. | |
![]() |
void | SetSubFaceIndex
(
const int32 InSubFaceIndex |
Set the index of the sub-face that should be used. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
bool | operator!=
(
const FFontData& Other |
Check to see whether this font data is not equal to the other font data |
![]() ![]() |
bool | operator==
(
const FFontData& Other |
Check to see whether this font data is equal to the other font data |