nw::font::ResFont Class

Syntax

class ResFont : public nw::font::ResFontBase

Description

The class for implementing operations on the font resource.

Enumerated Types

Type (Derived from Font)

typedef Definitions

GlyphIndex (Derived from ResFontBase)

Member Constants

Other
protected S GLYPH_INDEX_NOT_FOUND const GlyphIndex (Derived from ResFontBase)
S INVALID_CHARACTER_CODE const CharCode (Derived from Font)

Member Functions

Constructors/Destructors
ResFont Constructor.
V ~ResFont Destructor.
Binding/Releasing Resources
SetResource Enables the use of a font by associating the font resource.
RemoveResource Deallocates the font resource.
GetDrawBuffer Gets the pointer to the buffer required for drawing.
SetDrawBuffer Sets the buffer required for drawing. The size of the buffer being set is obtained with the GetDrawBufferSize function.
S GetDrawBufferSize Calculates the buffer size required for drawing.
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 size of the font's linefeed.
V GetDefaultCharWidths Gets the font's default character width data.
Setting Font Data
V SetLineFeed Sets the linefeed width of the font.
V SetDefaultCharWidths Sets the font's default character width data.
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 width data for characters.
V GetGlyph Gets glyph data.
V HasGlyph Gets the existence (or nonexistence) of glyph data.
Text Encoding
V GetCharacterCode Gets the character code supported by the font.
GetCharStrmReader Gets CharStrmReader, used to interpret text in the character code format the font supports.(Derived from Font)
Getting Sheet Information
V GetBaselinePos Gets the baseline position.
V GetCellHeight Gets the cell height.
V GetCellWidth Gets the cell width.
protected V GetActiveSheetNum Gets the number of active sheets.
protected GetTextureObjectsBufferPtr Gets pointer to texture object buffer.(Derived from ResFontBase)
SetTextureObjectsBufferPtr Sets pointer to the texture object buffer.(Derived from ResFontBase)
GenTextureNames Generates the texture name.(Derived from ResFontBase)
DeleteTextureNames (Derived from ResFontBase)
Texture Interpolation
V EnableLinearFilter Specifies whether or not linear interpolation of textures is performed while characters are drawn.
V IsLinearFilterEnableAtSmall Gets whether or not linear interpolation is to be carried out when small characters are displayed.
V IsLinearFilterEnableAtLarge Gets whether or not linear interpolation is to be carried out when large characters are displayed.
V GetTextureWrapFilterValue Gets the values for the texture's wrap and filter settings.
Other
protected GetFINF (Derived from ResFontBase)
protected IsManaging Determines whether the resource font is associated.(Derived from ResFontBase)
protected SetResourceBuffer Sets pointers to the allocated buffer and the FINF block positioned there.(Derived from ResFontBase)
protected RemoveResourceBuffer Resets the parameter configured by SetResourceBuffer and returns the pointer to the allocated buffer.(Derived from ResFontBase)
protected GetGlyphIndex Gets the character glyph index.(Derived from ResFontBase)
protected FindGlyphIndex Gets the character glyph index.(Derived from ResFontBase)
protected GetCharWidthsFromIndex Gets the character width of the character corresponding to the glyph index.(Derived from ResFontBase)
protected GetGlyphFromIndex Gets the glyph data corresponding to the glyph index.(Derived from ResFontBase)
protected S SetGlyphMember Sets Glyphmembers based on the content of the FontTextureGlyph structure(Derived from ResFontBase)

Class Hierarchy

nw::font::Font
  nw::font::ResFontBase
    nw::font::ResFont

Revision History

2009/10/20
Initial version.

CONFIDENTIAL