UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SlateFontRenderer.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
8
10
36
38{
39
41inline const TCHAR InvalidSubChar = TEXT('\uFFFD');
42
43#if WITH_FREETYPE
44
47
48#endif // WITH_FREETYPE
49
50} // namespace SlateFontRendererUtils
51
52
58{
59public:
61
65 uint16 GetMaxHeight(const FSlateFontInfo& InFontInfo, const float InScale) const;
66
70 int16 GetBaseline(const FSlateFontInfo& InFontInfo, const float InScale) const;
71
79
87
91 bool HasKerning(const FFontData& InFontData) const;
92
103 int8 GetKerning(const FFontData& InFontData, const float InSize, TCHAR First, TCHAR Second, const float InScale) const;
104
113
123
124#if WITH_FREETYPE
134#endif // WITH_FREETYPE
135
148
149private:
150#if WITH_FREETYPE
155
159 FT_Face GetFontFace(const FFontData& InFontData) const;
160#endif // WITH_FREETYPE
161
162 const FFreeTypeLibrary* FTLibrary;
163 FFreeTypeCacheDirectory* FTCacheDirectory;
164 FCompositeFontCache* CompositeFontCache;
165};
FPlatformTypes::int16 int16
A 16-bit signed integer.
Definition Platform.h:1123
FPlatformTypes::int8 int8
An 8-bit signed integer.
Definition Platform.h:1121
#define TEXT(x)
Definition Platform.h:1272
FPlatformTypes::UTF32CHAR UTF32CHAR
A 32-bit character containing a UTF32 (Unicode, 32-bit, fixed-width) code unit.
Definition Platform.h:1143
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
EFontFallback
Definition SlateFontInfo.h:23
uint16_t uint16
Definition binka_ue_file_header.h:7
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition FontCacheCompositeFont.h:203
Definition FontCacheFreeType.h:533
Definition FontCacheFreeType.h:228
Definition FontCacheFreeType.h:199
Definition SlateFontRenderer.h:58
int16 GetBaseline(const FSlateFontInfo &InFontInfo, const float InScale) const
Definition SlateFontRenderer.cpp:215
bool HasKerning(const FFontData &InFontData) const
Definition SlateFontRenderer.cpp:279
TSharedPtr< FFreeTypeKerningCache > GetKerningCache(const FFontData &InFontData, const uint32 InFontRenderSize) const
Definition SlateFontRenderer.cpp:322
void GetStrikeMetrics(const FSlateFontInfo &InFontInfo, const float InScale, int16 &OutStrikeLinePos, int16 &OutStrikeLineThickness) const
Definition SlateFontRenderer.cpp:257
void GetUnderlineMetrics(const FSlateFontInfo &InFontInfo, const float InScale, int16 &OutUnderlinePos, int16 &OutUnderlineThickness) const
Definition SlateFontRenderer.cpp:236
bool CanLoadCodepoint(const FFontData &InFontData, const UTF32CHAR InCodepoint, EFontFallback MaxFallbackLevel) const
Definition SlateFontRenderer.cpp:332
bool GetRenderData(const FShapedGlyphEntry &InShapedGlyph, const FFontOutlineSettings &InOutlineSettings, FCharacterRenderData &OutRenderData) const
Definition SlateFontRenderer.cpp:407
int8 GetKerning(const FFontData &InFontData, const float InSize, TCHAR First, TCHAR Second, const float InScale) const
Definition SlateFontRenderer.cpp:295
uint16 GetMaxHeight(const FSlateFontInfo &InFontInfo, const float InScale) const
Definition SlateFontRenderer.cpp:192
Definition SharedPointer.h:692
Definition SlateFontRenderer.cpp:43
const TCHAR InvalidSubChar
Definition SlateFontRenderer.h:41
Definition FontTypes.h:99
Definition CompositeFont.h:145
Definition SlateFontInfo.h:37
Definition SlateFontRenderer.h:15
EFontFallback CharFallbackLevel
Definition SlateFontRenderer.h:26
FFreeTypeFaceGlyphData()
Definition SlateFontRenderer.h:28
uint32 GlyphFlags
Definition SlateFontRenderer.h:23
uint32 GlyphIndex
Definition SlateFontRenderer.h:20
TSharedPtr< FFreeTypeFace > FaceAndMemory
Definition SlateFontRenderer.h:17
Definition FontCache.h:143
Definition SlateFontInfo.h:147