UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FFontFaceData Struct Reference

#include <CompositeFont.h>

Public Member Functions

SLATECORE_API FFontFaceData ()
 
SLATECORE_API FFontFaceData (TArray< uint8 > &&InData)
 
SLATECORE_API ~FFontFaceData ()
 
bool HasData () const
 
SLATECORE_API void SetData (TArray< uint8 > &&InData)
 
SLATECORE_API void SetPreprocessedFontGeometries (TArray< UE::Slate::FPreprocessedFontGeometry > &&InPreprocessedFontGeometries)
 
const TArray< uint8 > & GetData () const
 
TArrayView< const UE::Slate::FPreprocessedFontGeometryGetPreprocessedFontGeometries () const
 
SLATECORE_API SIZE_T GetAllocatedSize () const
 
SLATECORE_API void Serialize (FArchive &Ar)
 

Static Public Member Functions

static FFontFaceDataRef MakeFontFaceData ()
 
static FFontFaceDataRef MakeFontFaceData (TArray< uint8 > &&InData)
 

Detailed Description

Raw font data for a Font Face asset.

Note
Exists as a struct so it can be shared between its owner asset and the font cache without worrying about UObject lifetimes.

Constructor & Destructor Documentation

◆ FFontFaceData() [1/2]

FFontFaceData::FFontFaceData ( )

Default constructor

◆ FFontFaceData() [2/2]

FFontFaceData::FFontFaceData ( TArray< uint8 > &&  InData)

Construct from an existing block of font data

◆ ~FFontFaceData()

FFontFaceData::~FFontFaceData ( )

Destructor

Member Function Documentation

◆ GetAllocatedSize()

SIZE_T FFontFaceData::GetAllocatedSize ( ) const
Returns
the memory size of the raw font data and the associated preprocessed data

◆ GetData()

const TArray< uint8 > & FFontFaceData::GetData ( ) const
inline
Returns
The data set on this instance

◆ GetPreprocessedFontGeometries()

TArrayView< const UE::Slate::FPreprocessedFontGeometry > FFontFaceData::GetPreprocessedFontGeometries ( ) const
inline
Returns
The preprocessed font geometry per sub-face of the font represented by Data

◆ HasData()

bool FFontFaceData::HasData ( ) const
inline
Returns
true if this instance has data set on it

◆ MakeFontFaceData() [1/2]

static FFontFaceDataRef FFontFaceData::MakeFontFaceData ( )
inlinestatic

Helper function to construct a default font face data

◆ MakeFontFaceData() [2/2]

static FFontFaceDataRef FFontFaceData::MakeFontFaceData ( TArray< uint8 > &&  InData)
inlinestatic

Helper function to construct a font face data from an existing block of font data

◆ Serialize()

void FFontFaceData::Serialize ( FArchive Ar)

Serialize the data on this instance to/from an archive

◆ SetData()

void FFontFaceData::SetData ( TArray< uint8 > &&  InData)

Set from an existing block of font data

◆ SetPreprocessedFontGeometries()

void FFontFaceData::SetPreprocessedFontGeometries ( TArray< UE::Slate::FPreprocessedFontGeometry > &&  InPreprocessedFontGeometries)

Set the preprocessed font geometry data per sub-face for the given font data


The documentation for this struct was generated from the following files: