nn::font::ArchiveFontBase Class

Syntax

class ArchiveFontBase : public nn::font::ResFontBase

Description

A class that handles font resources that define groups of glyphs.

Member Functions

Constructors/Destructors
ArchiveFontBase Constructor.
V ~ArchiveFontBase Destructor.
Getting Character Data
V GetCharWidths Gets character widths for a character.
V HasGlyph Determines whether glyph data exists.
Other
protected SetResourceBuffer Sets a glyph index adjustment table along with 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 AdjustIndex Adjusts a glyph index obtained from the CMAP block by the number of sheets that have not been loaded. Use the unadjusted glyph index to get character width data from a CWDH block and the adjusted glyph index to extract a glyph image from a sheet.
protected S IncludeName Determines whether nameList contains name.
protected S IsValidResource Determines whether the given binary data contains a compressed font resource up to the GLGR block.
protected S RequestData Runs processing to handle insufficient data in the input stream.
protected S ConstructOpDispatch Distributes processing for each block in a binary file.
protected S ConstructOpAnalyzeFileHeader Processes a binary file header.
protected S ConstructOpAnalyzeGLGR Processes GLGR blocks.
protected S ConstructOpAnalyzeFINF Processes FINF blocks.
protected S ConstructOpAnalyzeCMAP Processes CMAP blocks.
protected S ConstructOpAnalyzeCWDH Processes CWDH blocks.
protected S ConstructOpAnalyzeTGLP Processes TGLP blocks.
protected S ConstructOpPrepairCopySheet Sets up processing to copy a sheet.
protected S ConstructOpPrepairExpandSheet Sets up processing to expand a sheet.
protected S ConstructOpCopy Copies data from the input stream into the construction context's output buffer.
protected S ConstructOpSkip Reads and discards an input stream.
protected S ConstructOpExpand Writes to a construction context's output buffer while expanding an input stream.
protected S ConstructOpFatalError This function is called when processing has continued, even if a fatal error has already occurred.

Class Hierarchy

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

Revision History

2010/11/10
Initial version.

CONFIDENTIAL