Click or drag to resize

FontMap Class

A FontMap creates an Image containing a subset of rendered glyphs of a given Font. In addition a FontMap provides information about each glyph on the image such as its pixel position on the image. Such an image can be used together with the provided information to create geometry consisting of individual quads with each quad displaying a single character of a text string.
Inheritance Hierarchy

Namespace:  Fusee.Engine.Core
Assembly:  Fusee.Engine.Core (in Fusee.Engine.Core.dll) Version: (
public class FontMap

The FontMap type exposes the following members.

Public methodFontMap
Initializes a new instance of the FontMap class.
Public propertyAlphabet
Gets or sets the list of characters that should be present on the font Image.
Public propertyFont
Gets or sets the font displayed on this font map.
Public propertyImage
Gets the image containing all characters specified in the Alphabet. Use this image as a texture used by individual rectangles each displaying a single character. Use the information retrieved from GetGlyphOnMap(UInt32) to position the character rectangles and to align their texure coordinates.
Public propertyPixelHeight
Gets or sets the pixel height of each character on this font. This setting will affect the size of the font Image , so be careful with this setting.
Public propertyUptodate
Gets a value indicating whether this FontMap is uptodate.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFixTextKerning
Fixes the kerning of a text (if possible). Todo: Instead of fixing existing geometry provide methods to create kerned geometry.
Public methodGetGlyphOnMap
Gets the glyph on map information for the given character/glyph. This information can be used to create geometry textured with on single character from the font Image.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
See Also