Navigation
API > API/Runtime > API/Runtime/SlateCore
Raw font data for a Font Face asset.
Exists as a struct so it can be shared between its owner asset and the font cache without worrying about UObject lifetimes.
| Name | FFontFaceData |
| Type | struct |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Fonts/CompositeFont.h |
| Include Path | #include "Fonts/CompositeFont.h" |
Syntax
struct FFontFaceData
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default constructor | Fonts/CompositeFont.h | ||
FFontFaceData
(
TArray< uint8 >&& InData |
Construct from an existing block of font data | Fonts/CompositeFont.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FFontFaceData() |
Destructor | Fonts/CompositeFont.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Data | TArray< uint8 > | Internal data | Fonts/CompositeFont.h | |
| PreprocessedFontGeometries | TArray< UE::Slate::FPreprocessedFontGeometry > | Preprocessed font geometry data per font sub-face | Fonts/CompositeFont.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
SIZE_T GetAllocatedSize() |
Fonts/CompositeFont.h | ||
const TArray< uint8 > & GetData() |
Fonts/CompositeFont.h | ||
TArrayView< const UE::Slate::FPreprocessedFontGeometry > GetPreprocessedFontGeometries() |
Fonts/CompositeFont.h | ||
bool HasData() |
Fonts/CompositeFont.h | ||
void Serialize
(
FArchive& Ar |
Serialize the data on this instance to/from an archive | Fonts/CompositeFont.h | |
void SetData
(
TArray< uint8 >&& InData |
Set from an existing block of font data | Fonts/CompositeFont.h | |
void SetPreprocessedFontGeometries
(
TArray< UE::Slate::FPreprocessedFontGeometry >&& InPreprocessedFontGeometries |
Set the preprocessed font geometry data per sub-face for the given font data | Fonts/CompositeFont.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FFontFaceDataRef MakeFontFaceData () |
Helper function to construct a default font face data | Fonts/CompositeFont.h | |
static FFontFaceDataRef MakeFontFaceData
(
TArray< uint8 >&& InData |
Helper function to construct a font face data from an existing block of font data | Fonts/CompositeFont.h |