Navigation
API > API/Plugins > API/Plugins/AvalancheText > API/Plugins/AvalancheText/Font
References
| Module | AvalancheText |
| Header | /Engine/Plugins/Experimental/Avalanche/Source/AvalancheText/Public/Font/AvaFont.h |
| Include | #include "Font/AvaFont.h" |
Syntax
USTRUCT (BlueprintType , Meta=(DisplayName="Motion Design Font"))
struct FAvaFont
Constructors
| Type | Name | Description | |
|---|---|---|---|
FAvaFont () |
Default constructor: calling GetFont() right after the constructor will return the default font | ||
FAvaFont
(
UAvaFontObject* InFontObject |
This FAvaFont will be initialized using the provided UAvaFontObject |
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AreSameFont
(
const FAvaFont* InFontA, |
Checks if the specified Ava Fonts are the same | |
| void | Calling this function will null the now deprecated UFont CurrentFont reference, and use that UFont to initialize the currently used UAvaFontObject | ||
| FString | GenerateFontFormattedString
(
const FString& InFontName, |
Returns a formatted string representing a FAvaFont for the specified FontObjectPathName and FontName Useful e.g. when setting the value of multiple FAvaFonts using IPropertyHandle->SetPerObjectValues | |
| bool | GenerateFontFormattedString
(
const UAvaFontObject* InFontObject, |
Returns a formatted string representing a FAvaFont for the specified UAvaFontObject Useful e.g. when setting the value of multiple FAvaFonts using IPropertyHandle->SetPerObjectValues | |
| UFont * | Returns a default font (Roboto). | ||
| UFont * | GetFont () |
Returns the currently stored font, or default font if none available. | |
| FName | GetFontName () |
Returns current font name, as FName | |
| FString | Returns current font name as FString | ||
| UAvaFontObject * | Returns the currently stored UAvaFontObject. | ||
| EAvaFontSource | Returns current font source (System, Project or Invalid) | ||
| const FString & | In case this FAvaFont is in fallback state, this call can return the name of the missing font asset, if available. | ||
| bool | HasValidFont () |
Checks if the currently referenced font asset is valid. | |
| bool | IsBold () |
Returns true if font is bold | |
| bool | Checks if this FAvaFont is referencing the default font. | ||
| bool | Checks if this FAvaFont is in fallback state. | ||
| bool | IsFavorite () |
Returns true if this FAvaFont is marked as favorite by the user | |
| bool | IsItalic () |
Returns true if font is italic | |
| bool | IsMonospaced () |
Returns true if font is monospaced | |
| void | PostSerialize
(
const FArchive& Ar |
Called after serialization of FAvaFont. | |
| void | SetFavorite
(
const bool bFavorite |
Mark/unmark this font as favorite | |
| void | SetFontObject
(
UAvaFontObject* InFontObject |
Directly sets the current UAvaFontObject, and then updates this FAvaFont accordingly. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FAvaFont& Other |
||
| bool | operator==
(
const FAvaFont& Other |
Fonts are considered equal if they share the same font and font name |
Enums
| Type | Name | Description | |
|---|---|---|---|
| EFontAssetState | Used to handle font state and possible loading issues |