Navigation
API > API/Runtime > API/Runtime/SlateCore > API/Runtime/SlateCore/Fonts
Inheritance Hierarchy
- FCompositeFont
- FStandaloneCompositeFont
References
| Module | SlateCore |
| Header | /Engine/Source/Runtime/SlateCore/Public/Fonts/CompositeFont.h |
| Include | #include "Fonts/CompositeFont.h" |
Syntax
USTRUCT ()
struct FCompositeFont
Variables
| Type | Name | Description | |
|---|---|---|---|
| bool | bEnableAscentDescentOverride | 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. | |
| FTypeface | DefaultTypeface | The default typeface that will be used when not overridden by a sub-typeface | |
| FCompositeFallbackFont | FallbackTypeface | The fallback typeface that will be used as a last resort when no other typeface provides a match | |
| int32 | HistoryRevision | 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 | |
| TArray< FCompositeSubFont > | SubTypefaces | Sub-typefaces to use for a specific set of characters |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor | |||
FCompositeFont
(
const FName& InFontName, |
Convenience constructor for when your composite font only contains a single font |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | Returns the enabled state of ascent and descent override. | ||
| void | MakeDirty () |
Call this when the composite font is changed after its initial setup - this allows various caches to update as required |