Navigation
API > API/Runtime > API/Runtime/SlateCore
| Name | FCompositeFont |
| Type | struct |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Fonts/CompositeFont.h |
| Include Path | #include "Fonts/CompositeFont.h" |
Syntax
USTRUCT ()
struct FCompositeFont
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Default constructor | Fonts/CompositeFont.h | ||
FCompositeFont
(
const FName& InFontName, |
Convenience constructor for when your composite font only contains a single font | Fonts/CompositeFont.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bEnableAscentDescentOverride | bool | 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. | Fonts/CompositeFont.h |
|
| DefaultTypeface | FTypeface | The default typeface that will be used when not overridden by a sub-typeface | Fonts/CompositeFont.h | |
| FallbackTypeface | FCompositeFallbackFont | The fallback typeface that will be used as a last resort when no other typeface provides a match | Fonts/CompositeFont.h | |
| HistoryRevision | int32 | Transient value containing the current history ID of this composite font This should be updated when the composite font is changed (which should happen infrequently as composite fonts are assumed to be mostly immutable) once they've been setup | Fonts/CompositeFont.h | |
| SubTypefaces | TArray< FCompositeSubFont > | Sub-typefaces to use for a specific set of characters | Fonts/CompositeFont.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool IsAscentDescentOverrideEnabled() |
Returns the enabled state of ascent and descent override. | Fonts/CompositeFont.h | |
void MakeDirty() |
Call this when the composite font is changed after its initial setup - this allows various caches to update as required | Fonts/CompositeFont.h |