FSlateFontAtlas

Representation of a texture for fonts in which characters are packed tightly based on their bounding rectangle

Windows
MacOS
Linux

Inheritance Hierarchy

References

Module

SlateCore

Header

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

Include

#include "Fonts/FontTypes.h"

Syntax

class FSlateFontAtlas :
    public ISlateFontTexture,
    public FSlateTextureAtlas

Remarks

Representation of a texture for fonts in which characters are packed tightly based on their bounding rectangle

Constructors

Name Description

Public function

FSlateFontAtlas

(
    uint32 InWidth,
    uint32 InHeight,
    const bool InIsGrayscale
)

Destructors

Name Description

Public function Virtual

~FSlateFontAtlas()

Functions

Name Description

Public function

const FAtlas...

 

AddCharacter

(
    const FCharacterRenderData& CharIn...
)

Adds a character to the texture.

Public function

void

 

Flush()

Flushes all cached data.

Overridden from ISlateFontTexture

Name Description

Public function Virtual Const

bool

 

IsGrayscale()

Returns whether the texture resource is 8-bit grayscale or 8-bit per-channel BGRA color

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