FCanvasShapedTextItem

Text item which can handle complex shaped text.

Windows
MacOS
Linux

Inheritance Hierarchy

FCanvasItem

FCanvasTextItemBase

FCanvasShapedTextItem

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/CanvasItem.h

Include

#include "CanvasItem.h"

Syntax

class FCanvasShapedTextItem : public FCanvasTextItemBase

Remarks

Text item which can handle complex shaped text.

Variables

Name Description

Public variable

FShapedGlyphSeq...

 

ShapedGlyphSequence

The shaped text sequence to draw

Constructors

Name Description

Public function

FCanvasShapedTextItem

(
    const FVector2D& InPosition,
    FShapedGlyphSequenceRef InShapedGly...,
    const FLinearColor& InColor
)

Text item

Overridden from FCanvasTextItemBase

Name Description

Protected function Virtual

void

 

DrawStringInternal

(
    FCanvas* InCanvas,
    const FVector2D& DrawPos,
    const FLinearColor& DrawColor
)

Internal string draw

In a method to make it simpler to do effects like shadow, outline

Protected function Virtual Const

ESimpleEleme...

 

GetTextBlendMode

(
    const bool bHasShadow
)

Get the blend mode we should use to draw this text

Protected function Virtual Const

FVector2D

 

GetTextSize

(
    float DPIScale
)

Get the measured size of the text to draw

Protected function Virtual Const

bool

 

HasValidText()

Does this text item have valid text to draw?

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss