| Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
| previous class next class | frames no frames | |||||
Copyright 1998-2008 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.
Core.Object | +-- Engine.Font
MultiFont
| Constants Summary | ||
|---|---|---|
| NULLCHARACTER | = | 127 |
| Inherited Contants from Core.Object |
|---|
| DegToRad, INDEX_NONE, MaxInt, Pi, RadToDeg |
| Variables Summary | |
|---|---|
| Map | CharRemap |
| int | IsRemapped |
| int | NumCharacters |
| array<Texture2D> | Textures |
| Font | |
| array<FontCharacter> | Characters |
| FontImportOptionsData | ImportOptions |
| int | Kerning |
| Inherited Variables from Core.Object |
|---|
| Class, HashNext, HashOuterNext, Linker, LinkerIndex, Name, NetIndex, ObjectArchetype, ObjectFlags, ObjectInternalInteger, Outer, StateFrame, VfTableObject |
| Enumerations Summary |
|---|
| Inherited Enumerations from Core.Object |
|---|
| EAxis, EInputEvent, EInterpCurveMode, EInterpMethodType, ETickingGroup |
| Structures Summary | ||
|---|---|---|
| FontCharacter StartU, StartV, USize, VSize, TextureIndex, VerticalOffset | ||
| Functions Summary | ||
|---|---|---|
![]() | float | GetAuthoredViewportHeight (float ViewportHeight ) con) |
![]() | float | GetMaxCharHeight () con) |
![]() | int | GetResolutionPageIndex (float HeightTest) con) |
![]() | float | GetScalingFactor (float HeightTest) con) |
| Constants Detail |
|---|
| Variables Detail |
|---|
When IsRemapped is true, this array maps unicode values to entries in the Characters array
True if font is 'remapped'. That is, the character array is not a direct mapping to unicode values. Instead,
Number of characters in the font, not including multiple instances of the same character (for multi-fonts).
Textures that store this font's glyph image data
List of characters in the font. For a MultiFont, this will include all characters in all sub-fonts! Thus,
Options used when importing this font
Default horizontal spacing between characters when rendering text with this font
| Structures Detail |
|---|
var(Font) int StartU;};
var(Font) int StartV;
var(Font) editconst BYTE TextureIndex;
var(Font) int USize;
var(Font) int VerticalOffset;
var(Font) int VSize;
this struct is serialized using binary serialization so any changes to it require a package version bump
| Functions Detail |
|---|
GetAuthoredViewportHeight Source codeDetermine the height of the mutli-font resolution page which will be used for the specified resolution.
@param ViewportHeight the height (in pixels) of the viewport being rendered to.
GetMaxCharHeight Source code
@return the height (in pixels) of the tallest character in this font.
@param HeightTest the height (in pixels) of the viewport being rendered to; if not specified
GetResolutionPageIndex Source codeCalulate the index for the texture page containing the multi-font character set to use, based on the specified screen resolution.
@param HeightTest the height (in pixels) of the viewport being rendered to.
@return 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 Source codeCalculate the amount of scaling necessary to match the multi-font subfont which most closely matches the specified resolution.
@param HeightTest the height (in pixels) of the viewport being rendered to.
@return the percentage scale required to match the size of the multi-font's closest matching subfont.
| Defaultproperties |
|---|
defaultproperties
{
ImportOptions=(FontName="Arial",Height=16.000000,bEnableAntialiasing=True,ForegroundColor=(R=1.000000,G=1.000000,B=1.000000,A=1.000000),TexturePageWidth=256,TexturePageMaxHeight=256,XPadding=1,YPadding=1)
Name="Default__Font"
ObjectArchetype=Object'Core.Default__Object'
}
|
| Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
| previous class next class | frames no frames | |||||