Navigation
API > API/Runtime > API/Runtime/SlateCore
A representation of a font in Slate.
| Name | FSlateFontInfo |
| Type | struct |
| Header File | /Engine/Source/Runtime/SlateCore/Public/Fonts/SlateFontInfo.h |
| Include Path | #include "Fonts/SlateFontInfo.h" |
Syntax
USTRUCT (BlueprintType ,
Meta=(HasNativeMake="/Script/SlateRHIRenderer.SlateFontBlueprintLibrary.MakeSlateFontInfo"))
struct FSlateFontInfo
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSlateFontInfo
(
TSharedPtr< const FCompositeFont > InCompositeFont, |
Creates and initializes a new instance with the specified font, size, and emphasis. | Fonts/SlateFontInfo.h | |
FSlateFontInfo
(
const WIDECHAR* InFontName, |
Creates and initializes a new instance with the specified font name and size. | Fonts/SlateFontInfo.h | |
FSlateFontInfo
(
const ANSICHAR* InFontName, |
Creates and initializes a new instance with the specified font name and size. | Fonts/SlateFontInfo.h | |
FSlateFontInfo
(
const FName& InFontName, |
Creates and initializes a new instance with the specified font name and size. | Fonts/SlateFontInfo.h | |
| Default constructor. | Fonts/SlateFontInfo.h | ||
FSlateFontInfo
(
const UObject* InFontObject, |
Creates and initializes a new instance with the specified font, size, and emphasis. | Fonts/SlateFontInfo.h | |
FSlateFontInfo
(
const FString& InFontName, |
Creates and initializes a new instance with the specified font name and size. | Fonts/SlateFontInfo.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~FSlateFontInfo() |
Dtor. Must be inline | Fonts/SlateFontInfo.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| bForceMonospaced | bool | Enable pseudo-monospaced font. | Fonts/SlateFontInfo.h |
|
| bMaterialIsStencil | bool | When enabled, whole quads are filled by the material without automatically stenciling the text - this needs to be done within the material (using Font Signed Distance node). | Fonts/SlateFontInfo.h |
|
| CompositeFont | TSharedPtr< const FCompositeFont > | The composite font data to use (valid when used with a Slate style set in C++) | Fonts/SlateFontInfo.h | |
| FontFallback | EFontFallback | The font fallback level. | Fonts/SlateFontInfo.h | |
| FontMaterial | TObjectPtr< UObject > | The material to use when rendering | Fonts/SlateFontInfo.h |
|
| FontObject | TObjectPtr< const UObject > | The font object (valid when used from UMG or a Slate widget style asset) | Fonts/SlateFontInfo.h |
|
| LetterSpacing | int32 | The uniform spacing (or tracking) between all characters in the text. | Fonts/SlateFontInfo.h |
|
| MonospacedWidth | float | The uniform width to apply to all characters when bForceMonospaced is enabled, proportional of the font Size. | Fonts/SlateFontInfo.h |
|
| OutlineSettings | FFontOutlineSettings | Settings for applying an outline to a font | Fonts/SlateFontInfo.h |
|
| Size | float | The font size is a measure in point values. | Fonts/SlateFontInfo.h |
|
| SkewAmount | float | A skew amount to apply to the text. | Fonts/SlateFontInfo.h |
|
| TypefaceFontName | FName | The name of the font to use from the default typeface (None will use the first entry) | Fonts/SlateFontInfo.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddReferencedObjects
(
FReferenceCollector& Collector |
Fonts/SlateFontInfo.h | ||
float GetClampSize() |
Get the font size clamp for the font renderer (on 16bits) | Fonts/SlateFontInfo.h | |
float GetClampSkew() |
Get the skew amount clamp for the text shaper | Fonts/SlateFontInfo.h | |
const FCompositeFont * GetCompositeFont () |
Get the composite font pointer associated with this font info (either directly or via a UFont) | Fonts/SlateFontInfo.h | |
bool HasValidFont() |
Check to see whether this font info has a valid composite font pointer set (either directly or via a UFont) | Fonts/SlateFontInfo.h | |
bool IsIdenticalTo
(
const FSlateFontInfo& Other |
Fonts/SlateFontInfo.h | ||
bool IsLegacyIdenticalTo
(
const FSlateFontInfo& Other |
We need to verify equality without taking into account some more recently added UPROPERTY.. | Fonts/SlateFontInfo.h | |
void PostSerialize
(
const FArchive& Ar |
Used to upgrade legacy font into so that it uses composite fonts | Fonts/SlateFontInfo.h |
Operators
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool operator==
(
const FSlateFontInfo& Other |
Fonts/SlateFontInfo.h |