Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FCanvas
Description
Draw an string centered on given location. This function is being deprecated. a FCanvasTextItem should be used instead.
| Name | DrawShadowedString |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/CanvasTypes.h |
| Include Path | #include "CanvasTypes.h" |
| Source | /Engine/Source/Runtime/Engine/Private/UserInterface/Canvas.cpp |
int32 DrawShadowedString
(
double StartX,
double StartY,
FStringView Text,
const UFont * Font,
const FLinearColor & Color,
const FLinearColor & ShadowColor
)
total size in pixels of text drawn
Parameters
| Name | Remarks |
|---|---|
| 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) |