Font import options 更多...
#include <FontImportOptions.h>
Public 成员函数 | |
| FFontImportOptionsData () | |
| Default constructor. | |
Public 属性 | |
| uint32 | bAlphaOnly:1 |
| if true then forces PF_G8 and only maintains Alpha value and discards color | |
| uint32 | bCreatePrintableOnly:1 |
| Skips generation of glyphs for any characters that are not considered 'printable' | |
| uint32 | bEnableAntialiasing:1 |
| Whether the font should be antialiased or not. 更多... | |
| uint32 | bEnableBold:1 |
| Whether the font should be generated in bold or not | |
| uint32 | bEnableDropShadow:1 |
| Enables a very simple, 1-pixel, black colored drop shadow for the generated font | |
| uint32 | bEnableItalic:1 |
| Whether the font should be generated in italics or not | |
| uint32 | bEnableLegacyMode:1 |
| Enables legacy font import mode. 更多... | |
| uint32 | bEnableUnderline:1 |
| Whether the font should be generated with an underline or not | |
| uint32 | bIncludeASCIIRange:1 |
| When specifying a range of characters and this is enabled, forces ASCII characters (0 thru 255) to be included as well | |
| uint32 | bUseDistanceFieldAlpha:1 |
| If true then the alpha channel of the font textures will store a distance field instead of a color mask | |
| TEnumAsByte< enum EFontImportCharacterSet > | CharacterSet |
| Character set for this font | |
| FString | Chars |
| Explicit list of characters to include in the font | |
| FString | CharsFilePath |
| Path on disk to a folder where files that contain a list of characters to include in the font | |
| FString | CharsFileWildcard |
| File mask wildcard that specifies which files within the CharsFilePath to scan for characters in include in the font | |
| int32 | DistanceFieldScaleFactor |
| Scale factor determines how big to scale the font bitmap during import when generating distance field values Note that higher values give better quality but importing will take much longer. | |
| float | DistanceFieldScanRadiusScale |
| Shrinks or expands the scan radius used to determine the silhouette of the font edges. | |
| int32 | ExtendBoxBottom |
| How much to extend the bottom of the UV coordinate rectangle for each character in pixels | |
| int32 | ExtendBoxLeft |
| How much to extend the left of the UV coordinate rectangle for each character in pixels | |
| int32 | ExtendBoxRight |
| How much to extend the right of the UV coordinate rectangle for each character in pixels | |
| int32 | ExtendBoxTop |
| How much to extend the top of the UV coordinate rectangle for each character in pixels | |
| FString | FontName |
| Name of the typeface for the font to import | |
| FLinearColor | ForegroundColor |
| Color of the foreground font pixels. 更多... | |
| float | Height |
| Height of font (point size) | |
| int32 | Kerning |
| The initial horizontal spacing adjustment between rendered characters. 更多... | |
| int32 | TexturePageMaxHeight |
| The maximum vertical size of a texture page for this font in pixels. 更多... | |
| int32 | TexturePageWidth |
| Horizontal size of each texture page for this font in pixels | |
| FString | UnicodeRange |
| Range of Unicode character values to include in the font. 更多... | |
| int32 | XPadding |
| Horizontal padding between each font character on the texture page in pixels | |
| int32 | YPadding |
| Vertical padding between each font character on the texture page in pixels | |
Font import options
| uint32 FFontImportOptionsData::bEnableAntialiasing |
Whether the font should be antialiased or not.
Usually you should leave this enabled.
| uint32 FFontImportOptionsData::bEnableLegacyMode |
Enables legacy font import mode.
This results in lower quality antialiasing and larger glyph bounds, but may be useful when debugging problems
| FLinearColor FFontImportOptionsData::ForegroundColor |
Color of the foreground font pixels.
Usually you should leave this white and instead use the UI Styles editor to change the color of the font on the fly
| int32 FFontImportOptionsData::Kerning |
The initial horizontal spacing adjustment between rendered characters.
This setting will be copied directly into the generated Font object's properties.
| int32 FFontImportOptionsData::TexturePageMaxHeight |
The maximum vertical size of a texture page for this font in pixels.
The actual height of a texture page may be less than this if the font can fit within a smaller sized texture page.
| FString FFontImportOptionsData::UnicodeRange |
Range of Unicode character values to include in the font.
You can specify ranges using hyphens and/or commas (e.g. '400-900')