UFontBulkData

Choose your operating system:

Windows

macOS

Linux

Inheritance Hierarchy

References

Module

SlateCore

Header

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

Include

#include "Fonts/FontBulkData.h"

Syntax

class UFontBulkData : public UObject

Constructors

Name Description

Public function

UFontBulkData()

Default constructor

Functions

Name Description

Public function Const

int64

 

GetBulkDataSize()

Returns the size of the bulk data in bytes

Public function

void

 

Initialize

(
    const FString& InFontFilename
)

Construct the bulk font data from the given file

Public function

void

 

Initialize

(
    const void*const InFontData,
    const int64 InFontDataSizeBytes
)

Construct the bulk font data from the given data

Public function Const

const void &...

 

Lock

(
    int64& OutFontDataSizeBytes
)

Locks the bulk font data and returns a read-only pointer to it

Public function

void

 

Unlock()

Unlock the bulk font data, after which point the pointer returned by Lock no longer is valid

Overridden from UObject

Name Description

Public function Virtual

void

 

Serialize

(
    FArchive& Ar
)

Handles reading, writing, and reference collecting using FArchive.

Deprecated Functions

Name Description

Public function Const

const void &...

 

Lock

(
    int32& OutFontDataSizeBytes
)

Lock with 32 bits is deprecated, use the 64 bits version.