UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SlateFontRenderer.cpp File Reference

Namespaces

namespace  SlateFontRendererUtils
 

Functions

 DECLARE_CYCLE_STAT (TEXT("Freetype Render Glyph"), STAT_FreetypeRenderGlyph, STATGROUP_Slate)
 
template<int32 BytesPerPixel>
void SlateFontRendererUtils::ResizeFontBitmap_SampleInputPixel (const TArray< uint8 > &SrcData, const int32 PixelIndex, FVector4 &OutStepColor)
 
template<>
void SlateFontRendererUtils::ResizeFontBitmap_SampleInputPixel< 1 > (const TArray< uint8 > &SrcData, const int32 PixelIndex, FVector4 &OutStepColor)
 
template<>
void SlateFontRendererUtils::ResizeFontBitmap_SampleInputPixel< 4 > (const TArray< uint8 > &SrcData, const int32 PixelIndex, FVector4 &OutStepColor)
 
template<int32 BytesPerPixel>
void SlateFontRendererUtils::ResizeFontBitmap_StoreAverageOutputPixel (TArray< uint8 > &DstData, const int32 PixelIndex, const FVector4 &StepColor, const int32 PixelCount)
 
template<>
void SlateFontRendererUtils::ResizeFontBitmap_StoreAverageOutputPixel< 1 > (TArray< uint8 > &DstData, const int32 PixelIndex, const FVector4 &StepColor, const int32 PixelCount)
 
template<>
void SlateFontRendererUtils::ResizeFontBitmap_StoreAverageOutputPixel< 4 > (TArray< uint8 > &DstData, const int32 PixelIndex, const FVector4 &StepColor, const int32 PixelCount)
 
template<int32 BytesPerPixel>
void SlateFontRendererUtils::ResizeFontBitmap (const int32 SrcWidth, const int32 SrcHeight, const TArray< uint8 > &SrcData, const int32 DstWidth, const int32 DstHeight, TArray< uint8 > &DstData)
 

Variables

FAutoConsoleVariableRef CVarOutlineFontRenderMethod (TEXT("Slate.OutlineFontRenderMethod"), OutlineFontRenderMethod, TEXT("Changes the render method for outline fonts. 0 = freetype does everything and generates a bitmap for the base glyph (default). 1 = We override the freetype rasterizer. Can help with some rendering anomalies on complicated fonts."))
 
FAutoConsoleVariableRef CVarEnableFontAntiAliasing (TEXT("Slate.EnableFontAntiAliasing"), EnableFontAntiAliasing, TEXT("Enable or disable anti-aliasing for font rendering (0 = off, 1 = on). Enabled by default."))
 

Function Documentation

◆ DECLARE_CYCLE_STAT()

DECLARE_CYCLE_STAT ( TEXT("Freetype Render Glyph" ,
STAT_FreetypeRenderGlyph  ,
STATGROUP_Slate   
)

Variable Documentation

◆ CVarEnableFontAntiAliasing

FAutoConsoleVariableRef CVarEnableFontAntiAliasing(TEXT("Slate.EnableFontAntiAliasing"), EnableFontAntiAliasing, TEXT("Enable or disable anti-aliasing for font rendering (0 = off, 1 = on). Enabled by default.")) ( TEXT("Slate.EnableFontAntiAliasing")  ,
EnableFontAntiAliasing  ,
TEXT("Enable or disable anti-aliasing for font rendering (0 = off, 1 = on). Enabled by default."  
)

◆ CVarOutlineFontRenderMethod

FAutoConsoleVariableRef CVarOutlineFontRenderMethod(TEXT("Slate.OutlineFontRenderMethod"), OutlineFontRenderMethod, TEXT("Changes the render method for outline fonts. 0 = freetype does everything and generates a bitmap for the base glyph (default). 1 = We override the freetype rasterizer. Can help with some rendering anomalies on complicated fonts.")) ( TEXT("Slate.OutlineFontRenderMethod")  ,
OutlineFontRenderMethod  ,
TEXT("Changes the render method for outline fonts. 0 = freetype does everything and generates a bitmap for the base glyph (default). 1 = We override the freetype rasterizer. Can help with some rendering anomalies on complicated fonts."  
)