UE3:Font (UT3)
![]() |
Object >> Font |
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
Copyright 1998-2007 Epic Games, Inc.
A font object, containing information about a set of glyphs. The glyph bitmaps are stored in the contained textures, while the font database only contains the coordinates of the individual glyph.
Constants
NULLCHARACTER
Value: 127
Properties
Property group 'Font'
Characters
Type: array<FontCharacter>
Modifiers: editinline
List of characters in the font. For a MultiFont, this will include all characters in all sub-fonts! Thus, the number of characters in this array isn't necessary the number of characters available in the font
ImportOptions
Type: FontImportOptions.FontImportOptionsData
Options used when importing this font
Default value:
Kerning
Type: int
Default horizontal spacing between characters when rendering text with this font
Internal variables
CharRemap
Type: Map{WORD,WORD}
Modifiers: private, const, native
When IsRemapped is true, this array maps unicode values to entries in the Characters array
IsRemapped
Type: int
True if font is 'remapped'. That is, the character array is not a direct mapping to unicode values. Instead, all characters are indexed indirectly through the CharRemap array
NumCharacters
Type: int
Modifiers: transient
Number of characters in the font, not including multiple instances of the same character (for multi-fonts). This is cached at load-time or creation time, and is never serialized.
Textures
Textures that store this font's glyph image data
Structs
FontCharacter
Modifiers: immutable, native
this struct is serialized using binary serialization so any changes to it require a package version bump
Native functions
GetAuthoredViewportHeight
Determine the height of the mutli-font resolution page which will be used for the specified resolution.
Parameters:
- ViewportHeight - the height (in pixels) of the viewport being rendered to.
GetMaxCharHeight
Parameters:
- HeightTest - the height (in pixels) of the viewport being rendered to; if not specified
Returns:
- the height (in pixels) of the tallest character in this font.
GetResolutionPageIndex
Calulate the index for the texture page containing the multi-font character set to use, based on the specified screen resolution.
Parameters:
- HeightTest - the height (in pixels) of the viewport being rendered to.
Returns:
- the index of the multi-font "subfont" that most closely matches the specified resolution. this value is used as the value for "ResolutionPageIndex" when calling other font-related methods.
GetScalingFactor
Calculate the amount of scaling necessary to match the multi-font subfont which most closely matches the specified resolution.
Parameters:
- HeightTest - the height (in pixels) of the viewport being rendered to.
Returns:
- the percentage scale required to match the size of the multi-font's closest matching subfont.