Navigation
API > API/Runtime > API/Runtime/Engine
Text item which can handle complex shaped text.
| Name | FCanvasShapedTextItem |
| Type | class |
| Header File | /Engine/Source/Runtime/Engine/Public/CanvasItem.h |
| Include Path | #include "CanvasItem.h" |
Syntax
class FCanvasShapedTextItem : public FCanvasTextItemBase
Inheritance Hierarchy
- FCanvasItem → FCanvasTextItemBase → FCanvasShapedTextItem
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FCanvasShapedTextItem
(
const FVector2D& InPosition, |
Shaped text item for complex script rendering. | CanvasItem.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| ShapedGlyphSequence | FShapedGlyphSequencePtr | The shaped text sequence to draw | CanvasItem.h |
Functions
Public
Protected
Overridden from FCanvasTextItemBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void DrawStringInternal
(
FCanvas* InCanvas, |
Internal string drawIn a method to make it simpler to do effects like shadow, outline | CanvasItem.h | |
virtual ESimpleElementBlendMode GetTextBlendMode
(
const bool bHasShadow |
Get the blend mode we should use to draw this text | CanvasItem.h | |
virtual FVector2D GetTextSize
(
float DPIScale |
Get the measured size of the text to draw | CanvasItem.h | |
virtual bool HasValidText() |
Does this text item have valid text to draw? | CanvasItem.h |