Navigation
API > API/Runtime > API/Runtime/Engine
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Public/CanvasTypes.h |
| Include | #include "CanvasTypes.h" |
Syntax
struct FTextSizingParameters
Remarks
General purpose data structure for grouping all parameters needed when sizing or wrapping a string
Variables
| Type | Name | Description | |
|---|---|---|---|
| TObjectPtr< const UFont > | DrawFont | The font to use for sizing/wrapping the string | |
| float | DrawX | A pixel value representing the horizontal screen location to begin rendering the string | |
| float | DrawXL | A pixel value representing the width of the area available for rendering the string | |
| float | DrawY | A pixel value representing the vertical screen location to begin rendering the string | |
| float | DrawYL | A pixel value representing the height of the area available for rendering the string | |
| FVector2D | Scaling | A value between 0.0 and 1.0, which represents how much the width/height should be scaled, where 1.0 represents 100% scaling. | |
| FVector2D | SpacingAdjust | Horizontal spacing adjustment between characters and vertical spacing adjustment between wrapped lines |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FTextSizingParameters
(
const UFont* inFont, |
|||
FTextSizingParameters
(
float inDrawX, |