Module |
|
Header |
/Engine/Source/Runtime/Slate/Public/Widgets/Text/SlateTextBlockLayout.h |
Include |
#include "Widgets/Text/SlateTextBlockLayout.h" |
Source |
/Engine/Source/Runtime/Slate/Private/Widgets/Text/SlateTextBlockLayout.cpp |
void OverrideTextStyle
(
const FTextBlockStyle & InTextStyle
)
Override the text style used and immediately update the text layout (if required). This can be used to override the text style after calling ComputeDesiredSize (eg, if you can only compute your text style in OnPaint) Please
that changing the size or font used by the text may causing clipping issues until the next call to ComputeDesiredSize