nw::font::ArchiveFontBase::AdjustIndex Member Function

Syntax

protected:
u16 AdjustIndex(
     u16 index
) const;

Arguments

Name Description
in index The glyph index to correct.

Return Values

Returns the index after it has been corrected. Sometimes a glyph index that is not GLYPH_INDEX_NOT_FOUND will become this after correction.

Description

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.


CONFIDENTIAL