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

Classes

struct  FTextIterator
 
class  FTextRenderComponentMIDCache
 
struct  FTextRenderComponentMIDCache::FMIDData
 
class  FTextRenderSceneProxy
 
class  FTextRenderComponentCultureChangedFixUp
 

Macros

#define LOCTEXT_NAMESPACE   "TextRenderComponent"
 

Functions

FVector2D ComputeTextSize (FTextIterator It, class UFont *Font, float XScale, float YScale, float HorizSpacingAdjust, float VertSpacingAdjust)
 
float ComputeVerticalAlignmentOffset (float SizeY, EVerticalTextAligment VerticalAlignment, float LegacyVerticalOffset)
 
float CalculateVerticalAlignmentOffset (const TCHAR *Text, class UFont *Font, float XScale, float YScale, float HorizSpacingAdjust, float VertSpacingAdjust, EVerticalTextAligment VerticalAlignment)
 
FVertexDeclarationElementList InitDummyVertexDeclarationElementsForText ()
 

Macro Definition Documentation

◆ LOCTEXT_NAMESPACE

#define LOCTEXT_NAMESPACE   "TextRenderComponent"

Function Documentation

◆ CalculateVerticalAlignmentOffset()

float CalculateVerticalAlignmentOffset ( const TCHAR Text,
class UFont Font,
float  XScale,
float  YScale,
float  HorizSpacingAdjust,
float  VertSpacingAdjust,
EVerticalTextAligment  VerticalAlignment 
)

For the given text info, calculate the vertical offset that needs to be applied to the component in order to vertically align it to the requested alignment.

◆ ComputeTextSize()

FVector2D ComputeTextSize ( FTextIterator  It,
class UFont Font,
float  XScale,
float  YScale,
float  HorizSpacingAdjust,
float  VertSpacingAdjust 
)

◆ ComputeVerticalAlignmentOffset()

float ComputeVerticalAlignmentOffset ( float  SizeY,
EVerticalTextAligment  VerticalAlignment,
float  LegacyVerticalOffset 
)

◆ InitDummyVertexDeclarationElementsForText()

FVertexDeclarationElementList InitDummyVertexDeclarationElementsForText ( )