![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include "Engine/Canvas.h"#include "CanvasBatchedElementRenderItem.h"#include "Internationalization/IBreakIterator.h"#include "SceneView.h"#include "UnrealEngine.h"#include "RenderingThread.h"#include "UObject/Package.h"#include "UObject/ConstructorHelpers.h"#include "EngineStats.h"#include "Materials/MaterialInterface.h"#include "UObject/UObjectIterator.h"#include "Engine/Texture2D.h"#include "Framework/Application/SlateApplication.h"#include "EngineFontServices.h"#include "Internationalization/BreakIterator.h"#include "Internationalization/TextChar.h"#include "Misc/CoreDelegates.h"#include "RHIStaticStates.h"#include "ClearQuad.h"#include "MeshPassProcessor.h"#include "Debug/ReporterGraph.h"#include "Fonts/FontMeasure.h"#include "EngineModule.h"#include "CanvasRender.h"#include "CanvasRendererItem.h"#include "RenderGraphUtils.h"#include "TextureResource.h"#include "DataDrivenShaderPlatformInfo.h"Classes | |
| class | FRDGCanvasRenderTarget |
Namespaces | |
| namespace | DisplayDebugManagerCvars |
| DEFINE_STAT | ( | STAT_Canvas_AddTileRenderTime | ) |
| DEFINE_STAT | ( | STAT_Canvas_AddTriangleRenderTime | ) |
| DEFINE_STAT | ( | STAT_Canvas_DrawMaterialTileTime | ) |
| DEFINE_STAT | ( | STAT_Canvas_DrawStringTime | ) |
| DEFINE_STAT | ( | STAT_Canvas_DrawTextureTileTime | ) |
| DEFINE_STAT | ( | STAT_Canvas_FlushTime | ) |
| DEFINE_STAT | ( | STAT_Canvas_GetBatchElementsTime | ) |
| DEFINE_STAT | ( | STAT_Canvas_NumBatchesCreated | ) |
| DEFINE_STAT | ( | STAT_Canvas_WordWrappingTime | ) |
| ENGINE_API void StringSize | ( | const UFont * | Font, |
| int32 & | XL, | ||
| int32 & | YL, | ||
| FStringView | Text | ||
| ) |
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.
| Font | - font containing texture pages of character glyphs |
| XL | - out width |
| YL | - out height |
| Text | - string of text to be measured |