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

#include <FontCacheCompositeFont.h>

Public Member Functions

 FCompositeFontCache (const FFreeTypeLibrary *InFTLibrary)
 
 ~FCompositeFontCache ()
 
const FFontDataGetDefaultFontData (const FSlateFontInfo &InFontInfo)
 
const FFontDataGetFontDataForCodepoint (const FSlateFontInfo &InFontInfo, const UTF32CHAR InCodepoint, float &OutScalingFactor)
 
bool HasLoadedFontForCodepoint (const FSlateFontInfo &InFontInfo, const UTF32CHAR InCodepoint)
 
TSharedPtr< FFreeTypeFaceGetFontFace (const FFontData &InFontData)
 
const TSet< FName > & GetFontAttributes (const FFontData &InFontData)
 
void FlushCompositeFont (const FCompositeFont &InCompositeFont)
 
void FlushCache ()
 
void Update ()
 
SIZE_T GetFontDataAssetResidentMemory (const UObject *FontDataAsset) const
 

Friends

class FAsyncLoadFontFaceData
 

Detailed Description

High-level caching of composite fonts and FreeType font faces

Constructor & Destructor Documentation

◆ FCompositeFontCache()

FCompositeFontCache::FCompositeFontCache ( const FFreeTypeLibrary InFTLibrary)

Constructor

◆ ~FCompositeFontCache()

FCompositeFontCache::~FCompositeFontCache ( )

Destructor

Member Function Documentation

◆ FlushCache()

void FCompositeFontCache::FlushCache ( )

Flush this cache

◆ FlushCompositeFont()

void FCompositeFontCache::FlushCompositeFont ( const FCompositeFont InCompositeFont)

Flush a single composite font entry from this cache

◆ GetDefaultFontData()

const FFontData & FCompositeFontCache::GetDefaultFontData ( const FSlateFontInfo InFontInfo)

Get the default font data to use for the given font info

◆ GetFontAttributes()

const TSet< FName > & FCompositeFontCache::GetFontAttributes ( const FFontData InFontData)

Get the attributes associated with the given font data

◆ GetFontDataAssetResidentMemory()

SIZE_T FCompositeFontCache::GetFontDataAssetResidentMemory ( const UObject FontDataAsset) const

Gets the allocated font data for a font data asset

◆ GetFontDataForCodepoint()

const FFontData & FCompositeFontCache::GetFontDataForCodepoint ( const FSlateFontInfo InFontInfo,
const UTF32CHAR  InCodepoint,
float OutScalingFactor 
)

Get the font data to use for the given font info and codepoint

◆ GetFontFace()

TSharedPtr< FFreeTypeFace > FCompositeFontCache::GetFontFace ( const FFontData InFontData)

Gets or loads a FreeType font face

◆ HasLoadedFontForCodepoint()

bool FCompositeFontCache::HasLoadedFontForCodepoint ( const FSlateFontInfo InFontInfo,
const UTF32CHAR  InCodepoint 
)

Return true if the font data to use for the given font info and codepoint is already loaded

◆ Update()

void FCompositeFontCache::Update ( )

Give the composite font cache a chance to perform any tasks it has queued.

Friends And Related Symbol Documentation

◆ FAsyncLoadFontFaceData


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