nn::font::ResFontBase Class

Syntax

class ResFontBase : public nn::font::Font

Description

A base class for font classes that handle resources.

Member Functions

Getting Sheet Information
protected V GetActiveSheetNum Gets the number of active sheets.
protected GetTextureObjectsBufferPtr Gets a pointer to a texture object buffer.
SetTextureObjectsBufferPtr Sets a pointer to a texture object buffer.
GenTextureNames Generates texture names.
V GetBaselinePos Gets the baseline position.
V GetCellHeight Gets the cell height.
V GetCellWidth Gets the cell width.
Constructors/Destructors
ResFontBase Constructor.
V ~ResFontBase Destructor.
Getting Font Data
V GetWidth Gets the width of the font.
V GetHeight Gets the font height.
V GetAscent Gets the ascent of the font.
V GetDescent Gets the font descent.
V GetMaxCharWidth Gets the maximum character width included in the font.
V GetType Gets the font type.
V GetTextureFormat Gets the texture format of the font.
V GetLineFeed Gets the font's linefeed width.
V GetDefaultCharWidths Gets the font's default character widths.
Setting Font Data
V SetLineFeed Sets the font's linefeed width.
V SetDefaultCharWidths Sets the font's default character widths.
V SetAlternateChar Changes the alternate character for the font.
Getting Character Data
V GetCharWidth Gets the character width of a character.
V GetCharWidths Gets character widths for a character.
V GetGlyph Gets glyph data.
V HasGlyph Determines whether glyph data exists.
Text Encoding
V GetCharacterCode Gets the character encoding supported by the font.
Texture Interpolation
V EnableLinearFilter Specifies whether linear interpolation of textures is performed while characters are drawn.
V IsLinearFilterEnableAtSmall Gets whether linear interpolation is used when small characters are displayed.
V IsLinearFilterEnableAtLarge Gets whether linear interpolation is used when large characters are displayed.
V GetTextureWrapFilterValue Gets texture wrapping and filter settings.
Other
protected IsManaging Determines if it is an associated font resource.
protected SetResourceBuffer Sets pointers to an allocated buffer and the FINF block inside it.
protected RemoveResourceBuffer Resets the parameters that were set by the SetResourceBuffer function and then returns a pointer to the allocated buffer.
protected GetGlyphIndex Gets a character's glyph index.
protected FindGlyphIndex Gets a character's glyph index.
protected GetCharWidthsFromIndex Gets the character widths corresponding to a glyph index.
protected GetGlyphFromIndex Gets the glyph data that corresponds to a glyph index.
protected S SetGlyphMember Sets Glyph member variables based on a FontTextureGlyph structure.

Class Hierarchy

nn::font::Font
  nn::font::ResFontBase

Revision History

2010/11/10
Initial version.

CONFIDENTIAL