Navigation
Unreal Engine C++ API Reference > Runtime > Engine > Engine
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- UFontFace
References
Module | Engine |
Header | /Engine/Source/Runtime/Engine/Classes/Engine/FontFace.h |
Include | #include "Engine/FontFace.h" |
Syntax
class UFontFace :
public UObject,
public IFontFaceInterface
Remarks
A font face asset contains the raw payload data for a source TTF/OTF file as used by FreeType. During cook this asset type generates a ".ufont" file containing the raw payload data (unless loaded "Inline").
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
int32 | AscendOverriddenValue | The typographic ascender of the face, expressed in font units. |
![]() |
bool | bIsAscendOverridden | Activate this option to use the specified ascend value instead of the value from the font. |
![]() |
bool | bIsDescendOverridden | Activate this option to use the specified descend value instead of the value from the font. |
![]() |
int32 | DescendOverriddenValue | The typographic ascender of the face, expressed in font units. |
![]() |
FFontFaceDataRef | FontFaceData | The data associated with the font face. |
![]() |
EFontHinting | Hinting | The hinting algorithm to use with the font face. |
![]() |
EFontLayoutMethod | LayoutMethod | Which method should we use when laying out the font? Try changing this if you notice clipping or height issues with your font. |
![]() |
EFontLoadingPolicy | LoadingPolicy | Enum controlling how this font face should be loaded at runtime. |
![]() |
FString | SourceFilename | The filename of the font face we were created from. |
![]() |
TArray< FString > | SubFaces | Transient cache of the sub-faces available within this face |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
UFontFace () |
Default constructor |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void |
Overridden from UObject
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
void | GetAssetRegistryTags
(
TArray< FAssetRegistryTag >& OutTags |
Gathers a list of asset registry searchable tags which are name/value pairs with some type information This only needs to be implemented for asset objects |
![]() ![]() |
void | GetResourceSizeEx
(
FResourceSizeEx& CumulativeResourceSize |
Get the size of the object/resource for use in memory tools or to display to artists/LDs in the Editor This is the extended version which separates up the used memory into different memory regions (the actual definition of which may be platform specific). |
![]() ![]() |
void | PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
Called when a property on this object has been modified externally |
![]() ![]() |
void | PostEditUndo () |
Called after applying a transaction to the object. |
![]() ![]() |
void | Handles reading, writing, and reference collecting using FArchive. |
Overridden from IFontFaceInterface
Type | Name | Description | |
---|---|---|---|
![]() ![]() ![]() |
int32 | Returns the overridden value of the ascend. | |
![]() ![]() ![]() |
int32 | Returns the overridden value of the descend. | |
![]() ![]() ![]() |
FFontFaceDataConstRef | Get the data buffer containing the data for the current font face. | |
![]() ![]() ![]() |
const FString & | Get the filename of the font to use. | |
![]() ![]() ![]() |
EFontHinting | GetHinting () |
Get the hinting algorithm to use with the font. |
![]() ![]() ![]() |
EFontLayoutMethod | Get the method to use when laying out the font? | |
![]() ![]() ![]() |
EFontLoadingPolicy | Get the enum controlling how this font should be loaded at runtime. | |
![]() ![]() |
void | InitializeFromBulkData
(
const FString& InFilename, |
Initialize this font face from legacy bulk data. |
![]() ![]() ![]() |
bool | Returns true if the ascend is overridden. | |
![]() ![]() ![]() |
bool | Returns true if the descend is overridden. |
Deprecated Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TArray< uint8 > | FontFaceData_DEPRECATED | The data associated with the font face. |