nw::font::ArchiveFontBase Class

Syntax

class ArchiveFontBase : public nw::font::ResFontBase

Description

Class for handling the font resource in which the glyph groups are defined

Structures

nw::font::ArchiveFontBase::ConstructContext

Enumerated Types

ConstructResult
Type (Derived from Font)

typedef Definitions

GlyphIndex (Derived from ResFontBase)

Member Constants

Other
S LOAD_GLYPH_ALL
S HEADER_SIZE
S INVALID_CHARACTER_CODE (Derived from Font)
protected S ADJUST_OFFSET_SHEET_NOT_LOADED
protected S GLYPH_INDEX_NOT_FOUND (Derived from ResFontBase)

Member Functions

Constructors/Destructors
ArchiveFontBase Constructor.
V ~ArchiveFontBase Destructor.
Getting Character Data
V GetCharWidths Gets character width data for characters.
V HasGlyph Gets the existence (or nonexistence) of glyph data.
V GetCharWidth Gets the character width of a character.
V GetGlyph Gets glyph data.
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.
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 SetResourceBuffer Sets the pointer to the allocated buffer, the pointer to the FINF block positioned there, and the glyph index adjustment table.
protected RemoveResourceBuffer Resets the parameter configured by SetResourceBuffer and returns the pointer to the allocated buffer.
protected AdjustIndex Corrects for non-loaded sheets for the glyph index obtained from the CMAP block. The glyph index before correction is what is used to obtain character width information by the CWDH block, whereas the glyph index after correction is what is used to cut glyph images out of sheets.
protected GetFINF (Derived from ResFontBase)
protected IsManaging Determines whether the resource font is associated.(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 IsNullString
protected S IncludeName Determines whether name is included in nameList.
protected S IsValidResource Determines whether the given binary data includes data up through the GLGR block of the compressed font resource.
protected S RequestData The process conducted when there is insufficient input stream data.
protected S ConstructOpDispatch Distributes operations for each block in the binary file.
protected S ConstructOpAnalyzeFileHeader Operations on binary file headers.
protected S ConstructOpAnalyzeGLGR Operations on GLGR blocks.
protected S ConstructOpAnalyzeFINF Operations on FINF blocks.
protected S ConstructOpAnalyzeCMAP Operations on CMAP blocks.
protected S ConstructOpAnalyzeCWDH Operations on CWDH blocks.
protected S ConstructOpAnalyzeTGLP Operations on TGLP blocks.
protected S ConstructOpPrepairCopySheet Sets up sheet-copy operations.
protected S ConstructOpPrepairExpandSheet Sets up sheet-expansion operations.
protected S ConstructOpCopy Copies data from the input stream to the output buffer of the construct context.
protected S ConstructOpSkip Reads and discards the input stream.
protected S ConstructOpExpand Expands the input stream and writes it to the output buffer of the construct context.
protected S ConstructOpFatalError Called when processing continues even though a fatal error has arisen.
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::ArchiveFontBase

Revision History

2009/11/09
Initial version.

CONFIDENTIAL