UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FCachedTypefaceData Class Reference

#include <FontCacheCompositeFont.h>

Public Member Functions

 FCachedTypefaceData ()
 
 FCachedTypefaceData (const FTypeface &InTypeface, const float InScalingFactor=1.0f)
 
FORCEINLINE const FTypefaceGetTypeface () const
 
const FFontDataGetPrimaryFontData () const
 
const FFontDataGetFontData (const FName &InName) const
 
FORCEINLINE float GetScalingFactor () const
 
void GetCachedFontData (TArray< const FFontData * > &OutFontData) const
 

Detailed Description

Cached data for a given typeface

Constructor & Destructor Documentation

◆ FCachedTypefaceData() [1/2]

FCachedTypefaceData::FCachedTypefaceData ( )

Default constructor

◆ FCachedTypefaceData() [2/2]

FCachedTypefaceData::FCachedTypefaceData ( const FTypeface InTypeface,
const float  InScalingFactor = 1.0f 
)

Construct the cache from the given typeface

Member Function Documentation

◆ GetCachedFontData()

void FCachedTypefaceData::GetCachedFontData ( TArray< const FFontData * > &  OutFontData) const

Get all the font data cached by this entry

◆ GetFontData()

const FFontData * FCachedTypefaceData::GetFontData ( const FName InName) const

Find the font associated with the given name

◆ GetPrimaryFontData()

const FFontData * FCachedTypefaceData::GetPrimaryFontData ( ) const

Get the font data associated with the primary (first) entry in this typeface

◆ GetScalingFactor()

FORCEINLINE float FCachedTypefaceData::GetScalingFactor ( ) const
inline

Get the scaling factor for this typeface

◆ GetTypeface()

FORCEINLINE const FTypeface & FCachedTypefaceData::GetTypeface ( ) const
inline

Get the typeface we cached data from


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