nw::font::ArchiveFont Class

Syntax

class ArchiveFont : public nw::font::ArchiveFontBase

Description

Constructs a font by extracting only the specified glyph group from the font resource in which the glyph groups are defined.

Enumerated Types

ConstructResult (Derived from ArchiveFontBase)
Type (Derived from Font)

typedef Definitions

GlyphIndex (Derived from ResFontBase)

Member Constants

Other
S LOAD_GLYPH_ALL const char (Derived from ArchiveFontBase)
S HEADER_SIZE const int (Derived from ArchiveFontBase)
S INVALID_CHARACTER_CODE const CharCode (Derived from Font)
protected S ADJUST_OFFSET_SHEET_NOT_LOADED const u16 (Derived from ArchiveFontBase)
protected S GLYPH_INDEX_NOT_FOUND const GlyphIndex (Derived from ResFontBase)

Member Functions

Constructors/Destructors
ArchiveFont Constructor.
V ~ArchiveFont Destructor.
Binding/Releasing Resources
Construct Extracts the glyph group from the archive font and constructs a font.
InitStreamingConstruct Performs initialization to construct a font by extracting glyph groups successively loaded from the archive font.
StreamingConstruct Constructs a font from successive loads from the archive font.
Destroy Discards the font.
S GetRequireBufferSize Calculates the buffer size required to construct the font.
Getting Character Data
V GetGlyph Gets glyph 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.
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.(Derived from ArchiveFontBase)
protected RemoveResourceBuffer Resets the parameter configured by SetResourceBuffer and returns the pointer to the allocated buffer.(Derived from ArchiveFontBase)
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. (Derived from ArchiveFontBase)
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 S IsNullString (Derived from ArchiveFontBase)
protected S IncludeName Determines whether name is included in nameList. (Derived from ArchiveFontBase)
protected S IsValidResource Determines whether the given binary data includes data up through the GLGR block of the compressed font resource.(Derived from ArchiveFontBase)
protected S RequestData The process conducted when there is insufficient input stream data.(Derived from ArchiveFontBase)
protected S ConstructOpDispatch Distributes operations for each block in the binary file.(Derived from ArchiveFontBase)
protected S ConstructOpAnalyzeFileHeader Operations on binary file headers.(Derived from ArchiveFontBase)
protected S ConstructOpAnalyzeGLGR Operations on GLGR blocks.(Derived from ArchiveFontBase)
protected S ConstructOpAnalyzeFINF Operations on FINF blocks.(Derived from ArchiveFontBase)
protected S ConstructOpAnalyzeCMAP Operations on CMAP blocks.(Derived from ArchiveFontBase)
protected S ConstructOpAnalyzeCWDH Operations on CWDH blocks.(Derived from ArchiveFontBase)
protected S ConstructOpAnalyzeTGLP Operations on TGLP blocks.(Derived from ArchiveFontBase)
protected S ConstructOpPrepairCopySheet Sets up sheet-copy operations.(Derived from ArchiveFontBase)
protected S ConstructOpPrepairExpandSheet Sets up sheet-expansion operations.(Derived from ArchiveFontBase)
protected S ConstructOpCopy Copies data from the input stream to the output buffer of the construct context.(Derived from ArchiveFontBase)
protected S ConstructOpSkip Reads and discards the input stream.(Derived from ArchiveFontBase)
protected S ConstructOpExpand Expands the input stream and writes it to the output buffer of the construct context.(Derived from ArchiveFontBase)
protected S ConstructOpFatalError Called when processing continues even though a fatal error has arisen.(Derived from ArchiveFontBase)
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
      nw::font::ArchiveFont

Revision History

2009/11/09
Initial version.

CONFIDENTIAL