FCanvas::DrawShadowedString

Draw an string centered on given location.

Choose your operating system:

Windows

macOS

Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Public/CanvasTypes.h

Include

#include "CanvasTypes.h"

Source

/Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp

Syntax

int32 DrawShadowedString
(
    float StartX,
    float StartY,
    const TCHAR * Text,
    const UFont * Font,
    const FLinearColor & Color,
    const FLinearColor & ShadowColor
)

Remarks

Draw an string centered on given location. This function is being deprecated. a FCanvasTextItem should be used instead.

Returns

total size in pixels of text drawn

Parameters

Parameter

Description

StartX

X point

StartY

Y point

Text

Text to draw

Font

Font to use

Color

Color of the text

ShadowColor

Shadow color to draw underneath the text (ignored for distance field fonts)