UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CanvasTypes.h File Reference
#include "CoreMinimal.h"
#include "GameTime.h"
#include "SceneTypes.h"
#include "UObject/ObjectMacros.h"
#include "Engine/EngineTypes.h"
#include "HitProxies.h"
#include "CanvasTypes.generated.h"

Go to the source code of this file.

Classes

struct  FTextSizingParameters
 
struct  FWrappedStringElement
 
class  FCanvasWordWrapper
 
class  FCanvas
 
class  FCanvas::FTransformEntry
 
class  FCanvas::FCanvasSortElement
 
class  FCanvasBaseRenderItem
 
struct  FScreenMessageWriter
 

Namespaces

namespace  ERHIFeatureLevel
 

Typedefs

using FRDGTextureRef = FRDGTexture *
 

Functions

ENGINE_API void StringSize (const UFont *Font, int32 &XL, int32 &YL, FStringView Text)
 

Typedef Documentation

◆ FRDGTextureRef

Function Documentation

◆ StringSize()

ENGINE_API void StringSize ( const UFont Font,
int32 XL,
int32 YL,
FStringView  Text 
)
extern

Render string using both a font and a material. The material should have a font exposed as a parameter so that the correct font page can be set based on the character being drawn.

Parameters
Font- font containing texture pages of character glyphs
XL- out width
YL- out height
Text- string of text to be measured