![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "Fonts/FontCache.h"#include "Misc/ScopeLock.h"#include "HAL/IConsoleManager.h"#include "Algo/Find.h"#include "Application/SlateApplicationBase.h"#include "Internationalization/TextChar.h"#include "Fonts/FontCacheFreeType.h"#include "Fonts/FontCacheHarfBuzz.h"#include "Fonts/FontCacheCompositeFont.h"#include "Fonts/SlateFontRenderer.h"#include "Fonts/SlateTextShaper.h"#include "Fonts/LegacySlateFontInfoCache.h"#include "Fonts/FontProviderInterface.h"#include "Fonts/FontCacheUtils.h"#include "Fonts/SlateSdfGenerator.h"#include "Fonts/FontGeometryPreprocessing.h"#include "Trace/SlateMemoryTags.h"#include <limits>Variables | |
| FAutoConsoleVariableRef | CVarUnloadFreeTypeDataOnFlush (TEXT("Slate.UnloadFreeTypeDataOnFlush"), UnloadFreeTypeDataOnFlush, TEXT("Releases the free type data when the font cache is flushed")) |
| FAutoConsoleVariableRef | CVarDumpFontCacheStats (TEXT("Slate.DumpFontCacheStats"), bDumpFontCacheStats, TEXT("Dump statistics about font cache usage.")) |
| FAutoConsoleVariableRef | CVarFlushFontCache (TEXT("Slate.FlushFontCache"), bFlushFontCache, TEXT("Flush the font cache.")) |
| FAutoConsoleVariableRef | CVarSlateSdfTextEnable (TEXT("UI.SlateSDFText.Enable"), bSlateSdfTextEnable, TEXT("Enables signed distance field-based text rendering in Slate"), FConsoleVariableDelegate::CreateStatic(OnSlateSdfTextEnablementChanged)) |
| FAutoConsoleVariableShadow | ShadowCVarSlateSdfTextEnable (TEXT("SlateSdfText.Enable"), TEXT("UI.SlateSDFText.Enable")) |
| FAutoConsoleVariableRef CVarGrowFontAtlasFrameWindow | ( | TEXT("Slate.GrowFontAtlasFrameWindow") | , |
| FontAtlasFlushParams. | GrowAtlasFrameWindow, | ||
| TEXT("The number of frames within the font atlas will resize rather than flush.") | |||
| ) |
| FAutoConsoleVariableRef CVarGrowFontNonAtlasFrameWindow | ( | TEXT("Slate.GrowFontNonAtlasFrameWindow") | , |
| FontAtlasFlushParams. | GrowNonAtlasFrameWindow, | ||
| TEXT("The number of frames within the large font glyph pool will resize rather than flush.") | |||
| ) |
| FAutoConsoleVariableRef CVarMaxAtlasPagesBeforeFlush | ( | TEXT("Slate.MaxFontAtlasPagesBeforeFlush") | , |
| FontAtlasFlushParams. | InitialMaxAtlasPagesBeforeFlushRequest, | ||
| TEXT("The number of font atlas textures created and used before we flush the font cache if a texture atlas is full") | |||
| ) |
| FAutoConsoleVariableRef CVarMaxFontNonAtlasPagesBeforeFlush | ( | TEXT("Slate.MaxFontNonAtlasTexturesBeforeFlush") | , |
| FontAtlasFlushParams. | InitialMaxNonAtlasPagesBeforeFlushRequest, | ||
| TEXT("The number of large glyph font textures initially.") | |||
| ) |
| DECLARE_DWORD_ACCUMULATOR_STAT | ( | TEXT("Num Font Atlases") | , |
| STAT_SlateNumFontAtlases | , | ||
| STATGROUP_SlateMemory | |||
| ) |
| DECLARE_DWORD_ACCUMULATOR_STAT | ( | TEXT("Num Font Non-Atlased Textures") | , |
| STAT_SlateNumFontNonAtlasedTextures | , | ||
| STATGROUP_SlateMemory | |||
| ) |
| DECLARE_MEMORY_STAT | ( | TEXT("Shaped Glyph Sequence Memory") | , |
| STAT_SlateShapedGlyphSequenceMemory | , | ||
| STATGROUP_SlateMemory | |||
| ) |
| DEFINE_STAT | ( | STAT_SlateFontMeasureCacheMemory | ) |
| ETextShapingMethod GetDefaultTextShapingMethod | ( | ) |
Get the default shaping method (from the "Slate.DefaultTextShapingMethod" CVar)
| bool IsSlateSdfTextFeatureEnabled | ( | ) |
Controls whether the signed distance field rendering mode feature for text is enabled.
| void OnSlateSdfTextEnablementChanged | ( | IConsoleVariable * | Var | ) |
| FAutoConsoleVariableRef CVarDumpFontCacheStats(TEXT("Slate.DumpFontCacheStats"), bDumpFontCacheStats, TEXT("Dump statistics about font cache usage.")) | ( | TEXT("Slate.DumpFontCacheStats") | , |
| bDumpFontCacheStats | , | ||
| TEXT("Dump statistics about font cache usage.") | |||
| ) |
| FAutoConsoleVariableRef CVarFlushFontCache(TEXT("Slate.FlushFontCache"), bFlushFontCache, TEXT("Flush the font cache.")) | ( | TEXT("Slate.FlushFontCache") | , |
| bFlushFontCache | , | ||
| TEXT("Flush the font cache.") | |||
| ) |
| FAutoConsoleVariableRef CVarSlateSdfTextEnable(TEXT("UI.SlateSDFText.Enable"), bSlateSdfTextEnable, TEXT("Enables signed distance field-based text rendering in Slate"), FConsoleVariableDelegate::CreateStatic(OnSlateSdfTextEnablementChanged)) | ( | TEXT("UI.SlateSDFText.Enable") | , |
| bSlateSdfTextEnable | , | ||
| TEXT("Enables signed distance field-based text rendering in Slate") | , | ||
| FConsoleVariableDelegate::CreateStatic(OnSlateSdfTextEnablementChanged) | |||
| ) |
| FAutoConsoleVariableRef CVarUnloadFreeTypeDataOnFlush(TEXT("Slate.UnloadFreeTypeDataOnFlush"), UnloadFreeTypeDataOnFlush, TEXT("Releases the free type data when the font cache is flushed")) | ( | TEXT("Slate.UnloadFreeTypeDataOnFlush") | , |
| UnloadFreeTypeDataOnFlush | , | ||
| TEXT("Releases the free type data when the font cache is flushed") | |||
| ) |
| FAutoConsoleVariableShadow ShadowCVarSlateSdfTextEnable(TEXT("SlateSdfText.Enable"), TEXT("UI.SlateSDFText.Enable")) | ( | TEXT("SlateSdfText.Enable") | , |
| TEXT("UI.SlateSDFText.Enable") | |||
| ) |