Logo Search packages:      
Sourcecode: icu version File versions  Download package

void LEGlyphStorage::setAuxData ( le_int32  glyphIndex,
le_uint32  auxData,
LEErrorCode success 
)

Set the auxillary data for a particular glyph.

Parameters:
glyphIndex the index of the glyph
auxData the new auxillary data
success will be set to an error code if the auxillary data cannot be set.
ICU 3.6

Definition at line 368 of file LEGlyphStorage.cpp.

References fAuxData, fGlyphCount, LE_FAILURE, LE_INDEX_OUT_OF_BOUNDS_ERROR, LE_NO_LAYOUT_ERROR, and NULL.

Referenced by OpenTypeLayoutEngine::characterProcessing(), LayoutEngine::characterProcessing(), HanOpenTypeLayoutEngine::characterProcessing(), HangulOpenTypeLayoutEngine::characterProcessing(), and moveGlyph().

{
    if (LE_FAILURE(success)) {
        return;
    }

    if (fAuxData == NULL) {
        success = LE_NO_LAYOUT_ERROR;
        return;
    }

    if (glyphIndex < 0 || glyphIndex >= fGlyphCount) {
        success = LE_INDEX_OUT_OF_BOUNDS_ERROR;
        return;
    }

    fAuxData[glyphIndex] = auxData;
}


Generated by  Doxygen 1.6.0   Back to index