49 struct FCachedFontData
81 return KeySortPredicate(
InOne.Name,
InTwo.Name);
117 check(CompositeFont);
118 return *CompositeFont;
124 return CachedTypefaces[CachedTypeface_DefaultIndex].Get();
130 return CachedTypefaces[CachedTypeface_FallbackIndex].Get();
144 struct FCachedFontRange
170 return InOne.Range.GetLowerBoundValue() <
InTwo.Range.GetLowerBoundValue();
181 static const int32 CachedTypeface_DefaultIndex = 0;
182 static const int32 CachedTypeface_FallbackIndex = 1;
183 static const int32 CachedTypeface_FirstSubTypefaceIndex = 2;
272 void HandleCultureChanged();
#define check(expr)
Definition AssertionMacros.h:314
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
bool SortPredicate(const FCompileOnTheFlyData &A, const FCompileOnTheFlyData &B)
Definition MovieSceneCompiledDataManager.cpp:364
UE_INTRINSIC_CAST UE_REWRITE constexpr std::remove_reference_t< T > && MoveTemp(T &&Obj) noexcept
Definition UnrealTemplate.h:520
Definition FontCacheCompositeFont.cpp:26
Definition FontCacheCompositeFont.h:106
void GetCachedFontData(TArray< const FFontData * > &OutFontData) const
Definition FontCacheCompositeFont.cpp:188
const FCachedTypefaceData * GetTypefaceForCodepoint(const UTF32CHAR InCodepoint) const
Definition FontCacheCompositeFont.cpp:139
FORCEINLINE const FCachedTypefaceData * GetDefaultTypeface() const
Definition FontCacheCompositeFont.h:122
FCachedCompositeFontData()
Definition FontCacheCompositeFont.cpp:113
FORCEINLINE const FCachedTypefaceData * GetFallbackTypeface() const
Definition FontCacheCompositeFont.h:128
void RefreshFontRanges()
Definition FontCacheCompositeFont.cpp:196
FORCEINLINE const FCompositeFont & GetCompositeFont() const
Definition FontCacheCompositeFont.h:115
Definition FontCacheCompositeFont.h:17
FORCEINLINE float GetScalingFactor() const
Definition FontCacheCompositeFont.h:39
const FFontData * GetFontData(const FName &InName) const
Definition FontCacheCompositeFont.cpp:82
void GetCachedFontData(TArray< const FFontData * > &OutFontData) const
Definition FontCacheCompositeFont.cpp:88
const FFontData * GetPrimaryFontData() const
Definition FontCacheCompositeFont.cpp:76
FORCEINLINE const FTypeface & GetTypeface() const
Definition FontCacheCompositeFont.h:26
FCachedTypefaceData()
Definition FontCacheCompositeFont.cpp:54
Definition FontCacheCompositeFont.h:203
void Update()
Definition FontCacheCompositeFont.cpp:603
TSharedPtr< FFreeTypeFace > GetFontFace(const FFontData &InFontData)
Definition FontCacheCompositeFont.cpp:485
void FlushCompositeFont(const FCompositeFont &InCompositeFont)
Definition FontCacheCompositeFont.cpp:592
SIZE_T GetFontDataAssetResidentMemory(const UObject *FontDataAsset) const
Definition FontCacheCompositeFont.cpp:663
const FFontData & GetDefaultFontData(const FSlateFontInfo &InFontInfo)
Definition FontCacheCompositeFont.cpp:295
bool HasLoadedFontForCodepoint(const FSlateFontInfo &InFontInfo, const UTF32CHAR InCodepoint)
Definition FontCacheCompositeFont.cpp:321
void FlushCache()
Definition FontCacheCompositeFont.cpp:597
const TSet< FName > & GetFontAttributes(const FFontData &InFontData)
Definition FontCacheCompositeFont.cpp:584
const FFontData & GetFontDataForCodepoint(const FSlateFontInfo &InFontInfo, const UTF32CHAR InCodepoint, float &OutScalingFactor)
Definition FontCacheCompositeFont.cpp:401
~FCompositeFontCache()
Definition FontCacheCompositeFont.cpp:283
Definition FontCacheFreeType.h:228
Definition FontCacheFreeType.h:199
Definition NameTypes.h:617
FORCEINLINE int32 CompareIndexes(const FName &Other) const
Definition NameTypes.h:935
Definition UnrealString.h.inl:34
Definition SharedPointer.h:692
Definition ContainerAllocationPolicies.h:894
@ Range
Definition EnvQueryTypes.h:81
const TCHAR * Name
Definition OodleDataCompression.cpp:30
Definition CompositeFont.h:428
Definition CompositeFont.h:145
Definition SlateFontInfo.h:147
Definition CompositeFont.h:354