FSlateFontCache::GetAvailableFontSubFaces

Get the available sub-face data from the given font.

Choose your operating system:

Windows

macOS

Linux

References

Module

SlateCore

Header

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

Include

#include "Fonts/FontCache.h"

Source

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

Syntax

TArray< FString > GetAvailableFontSubFaces
(
    FFontFaceDataConstRef InMemory
) const

Remarks

Get the available sub-face data from the given font. Typically there will only be one face unless this is a TTC/OTC font. The index of the returned entry can be passed as InFaceIndex to the FFreeTypeFace constructor.