A representation of a font in Slate. 更多...
#include <SlateFontInfo.h>
Public 成员函数 | |
| FSlateFontInfo () | |
| Default constructor. | |
| FSlateFontInfo (const ANSICHAR *InFontName, uint16 InSize, EFontHinting InHinting=EFontHinting::Default) | |
| DEPRECATED - Creates and initializes a new instance with the specified font name and size. 更多... | |
| FSlateFontInfo (const FName &InFontName, uint16 InSize, EFontHinting InHinting=EFontHinting::Default) | |
| DEPRECATED - Creates and initializes a new instance with the specified font name and size. 更多... | |
| FSlateFontInfo (const FString &InFontName, uint16 InSize, EFontHinting InHinting=EFontHinting::Default, const FFontOutlineSettings &InOutlineSettings=FFontOutlineSettings()) | |
| DEPRECATED - Creates and initializes a new instance with the specified font name and size. 更多... | |
| FSlateFontInfo (const UObject *InFontObject, const int32 InSize, const FName &InTypefaceFontName=NAME_None, const FFontOutlineSettings &InOutlineSettings=FFontOutlineSettings()) | |
| Creates and initializes a new instance with the specified font, size, and emphasis. 更多... | |
| FSlateFontInfo (const WIDECHAR *InFontName, uint16 InSize, EFontHinting InHinting=EFontHinting::Default) | |
| DEPRECATED - Creates and initializes a new instance with the specified font name and size. 更多... | |
| FSlateFontInfo (TSharedPtr< const FCompositeFont > InCompositeFont, const int32 InSize, const FName &InTypefaceFontName=NAME_None, const FFontOutlineSettings &InOutlineSettings=FFontOutlineSettings()) | |
| Creates and initializes a new instance with the specified font, size, and emphasis. 更多... | |
| const FCompositeFont * | GetCompositeFont () const |
| Get the composite font pointer associated with this font info (either directly or via a UFont) 更多... | |
| bool | HasValidFont () const |
| Check to see whether this font info has a valid composite font pointer set (either directly or via a UFont) | |
Public 属性 | |
| TSharedPtr< const FCompositeFont > | CompositeFont |
| The composite font data to use (valid when used with a Slate style set in C++) | |
| EFontFallback | FontFallback |
| The font fallback level. 更多... | |
| UObject * | FontMaterial |
| The material to use when rendering this font | |
| const UObject * | FontObject |
| The font object (valid when used from UMG or a Slate widget style asset) | |
| int32 | LetterSpacing = 0 |
| The uniform spacing (or tracking) between all characters in the text. | |
| FFontOutlineSettings | OutlineSettings |
| Settings for applying an outline to a font | |
| int32 | Size |
| The font size is a measure in point values. 更多... | |
| FName | TypefaceFontName |
| The name of the font to use from the default typeface (None will use the first entry) | |
友元 | |
| uint32 | GetTypeHash (const FSlateFontInfo &FontInfo) |
| Calculates a type hash value for a font info. 更多... | |
A representation of a font in Slate.
| FSlateFontInfo::FSlateFontInfo | ( | TSharedPtr< const FCompositeFont > | InCompositeFont, |
| const int32 | InSize, | ||
| const FName & | InTypefaceFontName = NAME_None, |
||
| const FFontOutlineSettings & | InOutlineSettings = FFontOutlineSettings() |
||
| ) |
Creates and initializes a new instance with the specified font, size, and emphasis.
| InCompositeFont | The font instance to use. |
| InSize | The size of the font. |
| InTypefaceFontName | The name of the font to use from the default typeface (None will use the first entry) |
| FSlateFontInfo::FSlateFontInfo | ( | const UObject * | InFontObject, |
| const int32 | InSize, | ||
| const FName & | InTypefaceFontName = NAME_None, |
||
| const FFontOutlineSettings & | InOutlineSettings = FFontOutlineSettings() |
||
| ) |
Creates and initializes a new instance with the specified font, size, and emphasis.
| InFontObject | The font instance to use. |
| InSize | The size of the font. |
| InFamilyFontName | The name of the font to use from the default typeface (None will use the first entry) |
| FSlateFontInfo::FSlateFontInfo | ( | const FString & | InFontName, |
| uint16 | InSize, | ||
| EFontHinting | InHinting = EFontHinting::Default, |
||
| const FFontOutlineSettings & | InOutlineSettings = FFontOutlineSettings() |
||
| ) |
DEPRECATED - Creates and initializes a new instance with the specified font name and size.
| InFontName | The name of the font. |
| InSize | The size of the font. |
| InHinting | The type of hinting to use for the font. |
| FSlateFontInfo::FSlateFontInfo | ( | const FName & | InFontName, |
| uint16 | InSize, | ||
| EFontHinting | InHinting = EFontHinting::Default |
||
| ) |
DEPRECATED - Creates and initializes a new instance with the specified font name and size.
| InFontName | The name of the font. |
| InSize | The size of the font. |
| InHinting | The type of hinting to use for the font. |
| FSlateFontInfo::FSlateFontInfo | ( | const ANSICHAR * | InFontName, |
| uint16 | InSize, | ||
| EFontHinting | InHinting = EFontHinting::Default |
||
| ) |
DEPRECATED - Creates and initializes a new instance with the specified font name and size.
| InFontName | The name of the font. |
| InSize | The size of the font. |
| InHinting | The type of hinting to use for the font. |
| FSlateFontInfo::FSlateFontInfo | ( | const WIDECHAR * | InFontName, |
| uint16 | InSize, | ||
| EFontHinting | InHinting = EFontHinting::Default |
||
| ) |
DEPRECATED - Creates and initializes a new instance with the specified font name and size.
| InFontName | The name of the font. |
| InSize | The size of the font. |
| InHinting | The type of hinting to use for the font. |
| const FCompositeFont * FSlateFontInfo::GetCompositeFont | ( | ) | const |
Get the composite font pointer associated with this font info (either directly or via a UFont)
|
friend |
Calculates a type hash value for a font info.
Type hashes are used in certain collection types, such as TMap.
| FontInfo | The font info to calculate the hash for. |
| EFontFallback FSlateFontInfo::FontFallback |
The font fallback level.
Runtime only, don't set on shared FSlateFontInfo, as it may change the font elsewhere (make a copy).
| int32 FSlateFontInfo::Size |
The font size is a measure in point values.
The conversion of points to Slate Units is done at 96 dpi. So if you're using a tool like Photoshop to prototype layouts and UI mock ups, be sure to change the default dpi measurements from 72 dpi to 96 dpi.