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

#include <LegacySlateFontInfoCache.h>

+ Inheritance diagram for FLegacySlateFontInfoCache:

Classes

struct  FFallbackContext
 

Public Member Functions

TSharedPtr< const FCompositeFontGetCompositeFont (const FName &InLegacyFontName, const EFontHinting InLegacyFontHinting)
 
TSharedRef< const FCompositeFontGetDefaultFont ()
 
TSharedPtr< const FCompositeFontGetSystemFont ()
 
bool IsLastResortFontAvailable () const
 
TSharedPtr< const FCompositeFontGetLastResortFont ()
 
const FFontDataGetLastResortFontData (const FFallbackContext &InContext)
 
virtual void AddReferencedObjects (FReferenceCollector &Collector) override
 
virtual FString GetReferencerName () const override
 
- Public Member Functions inherited from FGCObject
 FGCObject ()
 
 FGCObject (const FGCObject &Other)
 
 FGCObject (FGCObject &&Other)
 
 FGCObject (EFlags Flags)
 
virtual ~FGCObject ()
 
FGCObjectoperator= (const FGCObject &)
 
FGCObjectoperator= (FGCObject &&)
 
COREUOBJECT_API void RegisterGCObject ()
 
COREUOBJECT_API void UnregisterGCObject ()
 
virtual bool GetReferencerPropertyName (UObject *Object, FString &OutPropertyName) const
 
- Public Member Functions inherited from TSharedFromThis< FLegacySlateFontInfoCache >
TSharedRef< FLegacySlateFontInfoCache, Mode > AsShared ()
 
TSharedRef< FLegacySlateFontInfoCache const, Mode > AsShared () const
 
TSharedRef< SubobjectType, Mode > AsSharedSubobject (SubobjectType *SubobjectPtr) const
 
TWeakPtr< FLegacySlateFontInfoCache, Mode > AsWeak ()
 
TWeakPtr< FLegacySlateFontInfoCache const, Mode > AsWeak () const
 
TWeakPtr< SubobjectType, Mode > AsWeakSubobject (SubobjectType *SubobjectPtr) const
 
void UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, SharedPtrMode > const *InSharedPtr, OtherType *InObject) const
 
void UpdateWeakReferenceInternal (TSharedRef< SharedRefType, SharedPtrMode > const *InSharedRef, OtherType *InObject) const
 
UE_FORCEINLINE_HINT bool DoesSharedInstanceExist () const
 

Static Public Member Functions

static FLegacySlateFontInfoCacheGet ()
 
- Static Public Member Functions inherited from FGCObject
static COREUOBJECT_API void StaticInit ()
 

Additional Inherited Members

- Public Types inherited from FGCObject
enum class  EFlags : uint32 { None = 0 , RegisterLater = 1 << 0 , AddStableNativeReferencesOnly = 1 << 1 }
 
- Static Public Attributes inherited from FGCObject
static COREUOBJECT_API UGCObjectReferencerGGCObjectReferencer = nullptr
 
- Protected Member Functions inherited from TSharedFromThis< FLegacySlateFontInfoCache >
 TSharedFromThis ()
 
 TSharedFromThis (TSharedFromThis const &)
 
UE_FORCEINLINE_HINT TSharedFromThisoperator= (TSharedFromThis const &)
 
 ~TSharedFromThis ()
 
- Static Protected Member Functions inherited from TSharedFromThis< FLegacySlateFontInfoCache >
static UE_FORCEINLINE_HINT TSharedRef< OtherType, Mode > SharedThis (OtherType *ThisPtr)
 
static UE_FORCEINLINE_HINT TSharedRef< OtherType const, Mode > SharedThis (const OtherType *ThisPtr)
 

Detailed Description

Cache used to efficiently upgrade legacy FSlateFontInfo structs to use a composite font by reducing the amount of duplicate instances that are created

Member Function Documentation

◆ AddReferencedObjects()

void FLegacySlateFontInfoCache::AddReferencedObjects ( FReferenceCollector Collector)
overridevirtual

Pure virtual that must be overloaded by the inheriting class. Use this method to serialize any UObjects contained that you wish to keep around.

Parameters
CollectorThe collector of referenced objects.

Implements FGCObject.

◆ Get()

FLegacySlateFontInfoCache & FLegacySlateFontInfoCache::Get ( )
static

Get (or create) the singleton instance of this cache

◆ GetCompositeFont()

TSharedPtr< const FCompositeFont > FLegacySlateFontInfoCache::GetCompositeFont ( const FName InLegacyFontName,
const EFontHinting  InLegacyFontHinting 
)

Get (or create) an appropriate composite font from the legacy font name

◆ GetDefaultFont()

TSharedRef< const FCompositeFont > FLegacySlateFontInfoCache::GetDefaultFont ( )

Get (or create) the default font based on the current build configuration

◆ GetLastResortFont()

TSharedPtr< const FCompositeFont > FLegacySlateFontInfoCache::GetLastResortFont ( )

Get (or create) the last resort fallback font

◆ GetLastResortFontData()

const FFontData & FLegacySlateFontInfoCache::GetLastResortFontData ( const FFallbackContext InContext)

Get (or create) the last resort fallback font

◆ GetReferencerName()

FString FLegacySlateFontInfoCache::GetReferencerName ( ) const
overridevirtual

Overload this method to report a name for your referencer

Implements FGCObject.

◆ GetSystemFont()

TSharedPtr< const FCompositeFont > FLegacySlateFontInfoCache::GetSystemFont ( )

Get (or create) the default system font

◆ IsLastResortFontAvailable()

bool FLegacySlateFontInfoCache::IsLastResortFontAvailable ( ) const

Is the last resort fallback font available (not all builds have it).


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