Navigation
API > API/Runtime > API/Runtime/SlateCore
Representation of a texture for fonts in which characters are packed tightly based on their bounding rectangle
| Name | FSlateFontAtlas |
| Type | class |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Fonts/FontTypes.h |
| Include Path | #include "Fonts/FontTypes.h" |
Syntax
class FSlateFontAtlas :
public ISlateFontTexture ,
public FSlateTextureAtlas
Inheritance Hierarchy
- FSlateTextureAtlas → FSlateFontAtlas
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSlateFontAtlas
(
uint32 InWidth, |
Fonts/FontTypes.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FSlateFontAtlas() |
Fonts/FontTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const FAtlasedTextureSlot * AddCharacter
(
const FCharacterRenderData& CharInfo |
Adds a character to the texture. | Fonts/FontTypes.h | |
bool BeginDeferredAddCharacter
(
const int16 InSizeX, |
Reserve a slot for a character but dont't update the texture yet. | Fonts/FontTypes.h | |
void EndDeferredAddCharacter
(
const FDeferredCharacterRenderData& CharInfo |
Update a character in the texture for already reserved or added slot. | Fonts/FontTypes.h | |
void Flush() |
Flushes all cached data. | Fonts/FontTypes.h |
Overridden from ISlateFontTexture
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void GetAtlasDataCopy
(
TArray< uint8 >& OutData |
Retrieves a copy of the texture atlas data in this texture. | Fonts/FontTypes.h | |
virtual ESlateFontAtlasContentType GetContentType() |
Returns the type of content in the texture | Fonts/FontTypes.h | |
virtual void ReleaseRenderingResources() |
Releases rendering resources of this texture | Fonts/FontTypes.h |
Overridden from FSlateTextureAtlas
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FSlateShaderResource * GetAtlasTexture() |
Fonts/FontTypes.h |