FCanvasShapedTextItem

Text item which can handle complex shaped text.

Windows
MacOS
Linux

Inheritance Hierarchy

FCanvasItem

FCanvasTextItemBase

FCanvasShapedTextItem

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?

References

Module

Engine

Header

Runtime/Engine/Public/CanvasItem.h

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback