FSlateTextBlockLayout::OverrideTextStyle

Override the text style used and immediately update the text layout (if required).

Windows
MacOS
Linux

References

Module

Slate

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

Syntax

void OverrideTextStyle
(
    const FTextBlockStyle & InTextStyle
)

Remarks

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 note that changing the size or font used by the text may causing clipping issues until the next call to ComputeDesiredSize

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss