STextBlock::SetFont

Sets the font used to draw the text

Windows
MacOS
Linux

References

Module

Slate

Header

/Engine/Source/Runtime/Slate/Public/Widgets/Text/STextBlock.h

Include

#include "Widgets/Text/STextBlock.h"

Source

/Engine/Source/Runtime/Slate/Private/Widgets/Text/STextBlock.cpp

Syntax

void SetFont
(
    const TAttribute< FSlateFontInfo > & InFont
)

Remarks

Sets the font used to draw the text

Parameters

Parameter

Description

InFont

The new font to use

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