FSlateFontCache::GetFontDataForCodepoint

Returns the font to use from the typeface associated with the given codepoint

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

const FFontData & GetFontDataForCodepoint
(
    const FSlateFontInfo & InFontInfo,
    const UTF32CHAR InCodepoint,
    float & OutScalingFactor
) const

Remarks

Returns the font to use from the typeface associated with the given codepoint

Returns

The raw font data

Parameters

Parameter

Description

InFontInfo

A descriptor of the font to get the typeface for

InCodepoint

The codepoint to get the typeface associated with

OutScalingFactor

The scaling factor applied to characters rendered with the given font

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