FSlateFontInfo::GetCompositeFont

Get the composite font pointer associated with this font info (either directly or via a [UFont](API\Runtime\Engine\Engine\UFont)) @note This function will return the fallback font if this font info itself does not contain a valid font.

Windows
MacOS
Linux

References

Module

SlateCore

Header

/Engine/Source/Runtime/SlateCore/Public/Fonts/SlateFontInfo.h

Include

#include "Fonts/SlateFontInfo.h"

Source

/Engine/Source/Runtime/SlateCore/Private/Fonts/SlateFontInfo.cpp

Syntax

const FCompositeFont * GetCompositeFont() const

Remarks

Get the composite font pointer associated with this font info (either directly or via a UFont) @note This function will return the fallback font if this font info itself does not contain a valid font. If you want to test whether this font info is empty, use HasValidFont

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