UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FCompositeFont Struct Reference

#include <CompositeFont.h>

+ Inheritance diagram for FCompositeFont:

Public Member Functions

 FCompositeFont ()
 
 FCompositeFont (const FName &InFontName, FString InFontFilename, const EFontHinting InHinting, const EFontLoadingPolicy InLoadingPolicy)
 
bool IsAscentDescentOverrideEnabled () const
 

Public Attributes

FTypeface DefaultTypeface
 
FCompositeFallbackFont FallbackTypeface
 
TArray< FCompositeSubFontSubTypefaces
 
bool bEnableAscentDescentOverride = true
 

Constructor & Destructor Documentation

◆ FCompositeFont() [1/2]

FCompositeFont::FCompositeFont ( )
inline

Default constructor

◆ FCompositeFont() [2/2]

FCompositeFont::FCompositeFont ( const FName InFontName,
FString  InFontFilename,
const EFontHinting  InHinting,
const EFontLoadingPolicy  InLoadingPolicy 
)
inline

Convenience constructor for when your composite font only contains a single font

Member Function Documentation

◆ IsAscentDescentOverrideEnabled()

bool FCompositeFont::IsAscentDescentOverrideEnabled ( ) const
inline

Returns the enabled state of ascent and descent override.

Member Data Documentation

◆ bEnableAscentDescentOverride

bool FCompositeFont::bEnableAscentDescentOverride = true

If set to false, the ascent and descent override specified in a Font face will be ignored, and the value from the font source file will be used instead.

◆ DefaultTypeface

FTypeface FCompositeFont::DefaultTypeface

The default typeface that will be used when not overridden by a sub-typeface

◆ FallbackTypeface

FCompositeFallbackFont FCompositeFont::FallbackTypeface

The fallback typeface that will be used as a last resort when no other typeface provides a match

◆ SubTypefaces

TArray<FCompositeSubFont> FCompositeFont::SubTypefaces

Sub-typefaces to use for a specific set of characters


The documentation for this struct was generated from the following file: