Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FCanvas
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/CanvasTypes.h |
| Include | #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
)
Remarks
Draw an string centered on given location. This function is being deprecated. a FCanvasTextItem should be used instead. total size in pixels of text drawn
Parameters
| Name | 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) |