9#include "Misc/Optional.h"
12 #define WITH_FREETYPE 0
16#ifndef WITH_FREETYPE_V210
17 #define WITH_FREETYPE_V210 0
21#if PLATFORM_COMPILER_HAS_GENERIC_KEYWORD
22 #define generic __identifier(generic)
31 #include FT_FREETYPE_H
38 #include FT_ADVANCES_H
45#if PLATFORM_COMPILER_HAS_GENERIC_KEYWORD
150template <
typename TRetType,
typename TParamType>
157template <
typename TRetType,
typename TParamType>
164template <
typename TRetType,
typename TParamType>
171template <
typename TRetType,
typename TParamType>
178template <
typename TRetType,
typename TParamType>
185template <
typename TRetType,
typename TParamType>
256 return FreeTypeUtils::IsFaceEligibleForSdf(
FTFace);
265#if WITH_ATLAS_DEBUGGING
273 return FreeTypeUtils::GetHeight(
FTFace, LayoutMethod);
280 return FreeTypeUtils::GetScaledHeight(
FTFace, LayoutMethod);
290 return FreeTypeUtils::GetAscender(
FTFace, LayoutMethod);
300 return FreeTypeUtils::GetDescender(
FTFace, LayoutMethod);
305 return FreeTypeUtils::GetBitmapAtlasScale(
FTFace);
310 return FreeTypeUtils::GetBitmapRenderScale(
FTFace);
400#if WITH_ATLAS_DEBUGGING
437 const int32 LoadFlags;
438 const uint32 FontRenderSize;
462 const int32 LoadFlags;
463 const uint32 FontRenderSize;
506 return !(*
this ==
Other);
512 KeyHash =
HashCombine(KeyHash, Key.FirstGlyphIndex);
513 KeyHash =
HashCombine(KeyHash, Key.SecondGlyphIndex);
523 const uint32 FontRenderSize;
570 KeyHash = GetTypeHash(
Face);
572 KeyHash =
HashCombine(KeyHash, GetTypeHash(FontRenderSize));
579 && FontRenderSize ==
Other.FontRenderSize;
584 return !(*
this ==
Other);
595 const uint32 FontRenderSize;
#define check(expr)
Definition AssertionMacros.h:314
EFontLayoutMethod
Definition CompositeFont.h:51
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
UE_FORCEINLINE_HINT bool operator!=(const FIndexedPointer &Other) const
Definition LockFreeList.h:76
ESlateTextureAtlasThreadId GetCurrentSlateTextureAtlasThreadId()
Definition TextureAtlas.cpp:18
ESlateTextureAtlasThreadId
Definition TextureAtlas.h:44
constexpr uint32 HashCombine(uint32 A, uint32 C)
Definition TypeHash.h:36
Definition FontCacheFreeType.h:448
Definition FontCacheFreeType.h:533
FFreeTypeCacheDirectory()
Definition FontCacheFreeType.cpp:950
void FlushCache()
Definition FontCacheFreeType.cpp:958
Definition FontCacheFreeType.h:228
const UE::Slate::FPreprocessedFontGeometry * GetPreprocessedFontGeometry() const
Definition FontCacheFreeType.cpp:424
FORCEINLINE EFontLayoutMethod GetLayoutMethod() const
Definition FontCacheFreeType.h:319
FORCEINLINE bool IsFaceValid() const
Definition FontCacheFreeType.h:235
void OverrideDescent(bool InOverride, int32 Value=0)
Definition FontCacheFreeType.h:343
FORCEINLINE bool SupportsSdf() const
Definition FontCacheFreeType.h:253
SIZE_T GetAllocatedMemorySize() const
Definition FontCacheFreeType.cpp:413
void CompleteAsyncLoad(const FFreeTypeLibrary *InFTLibrary, FFontFaceDataConstRef InMemory, const int32 InFaceIndex)
Definition FontCacheFreeType.cpp:447
FORCEINLINE bool IsFaceLoading() const
Definition FontCacheFreeType.h:244
static TArray< FString > GetAvailableSubFaces(const FFreeTypeLibrary *InFTLibrary, FFontFaceDataConstRef InMemory)
Definition FontCacheFreeType.cpp:541
void OverrideAscent(bool InOverride, int32 Value=0)
Definition FontCacheFreeType.h:335
~FFreeTypeFace()
Definition FontCacheFreeType.cpp:520
void FailAsyncLoad()
Definition FontCacheFreeType.cpp:439
FORCEINLINE const TSet< FName > & GetAttributes() const
Definition FontCacheFreeType.h:314
Definition FontCacheFreeType.h:418
Definition FontCacheFreeType.h:473
Definition FontCacheFreeType.h:199
FFreeTypeLibrary()
Definition FontCacheFreeType.cpp:337
~FFreeTypeLibrary()
Definition FontCacheFreeType.cpp:380
Definition GenericPlatformFile.h:117
Definition UnrealString.h.inl:34
Definition SharedPointer.h:692
Definition SharedPointer.h:153
Definition PreprocessedFontGeometry.h:198
Definition FontCacheFreeType.cpp:74
FORCEINLINE TEnableIf< TIsIntegral< TParamType >::Value, TRetType >::Type ConvertPixelTo26Dot6(TParamType InValue)
Definition FontCacheFreeType.h:165
FORCEINLINE TEnableIf< TIsIntegral< TParamType >::Value, TRetType >::Type Convert26Dot6ToRoundedPixel(TParamType InValue)
Definition FontCacheFreeType.h:151
FORCEINLINE TEnableIf< TIsIntegral< TParamType >::Value, TRetType >::Type ConvertPixelTo16Dot16(TParamType InValue)
Definition FontCacheFreeType.h:179
Definition Voronoi.cpp:10