X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..6de34a005df0e4a02d88750703b950237b77d9c8:/icuSources/layout/LEFontInstance.cpp?ds=sidebyside diff --git a/icuSources/layout/LEFontInstance.cpp b/icuSources/layout/LEFontInstance.cpp index 31641718..0bbb6279 100644 --- a/icuSources/layout/LEFontInstance.cpp +++ b/icuSources/layout/LEFontInstance.cpp @@ -1,7 +1,7 @@ /* ******************************************************************************* * - * Copyright (C) 1999-2003, International Business Machines + * Copyright (C) 1999-2004, International Business Machines * Corporation and others. All Rights Reserved. * ******************************************************************************* @@ -14,10 +14,11 @@ #include "LETypes.h" #include "LEScripts.h" #include "LEFontInstance.h" +#include "LEGlyphStorage.h" U_NAMESPACE_BEGIN -const char LEFontInstance::fgClassID=0; +UOBJECT_DEFINE_RTTI_IMPLEMENTATION(LEFontInstance) const LEFontInstance *LEFontInstance::getSubFont(const LEUnicode chars[], le_int32 *offset, le_int32 limit, le_int32 script, LEErrorCode &success) const @@ -36,7 +37,7 @@ const LEFontInstance *LEFontInstance::getSubFont(const LEUnicode chars[], le_int } void LEFontInstance::mapCharsToGlyphs(const LEUnicode chars[], le_int32 offset, le_int32 count, - le_bool reverse, const LECharMapper *mapper, LEGlyphID glyphs[]) const + le_bool reverse, const LECharMapper *mapper, LEGlyphStorage &glyphStorage) const { le_int32 i, out = 0, dir = 1; @@ -57,11 +58,11 @@ void LEFontInstance::mapCharsToGlyphs(const LEUnicode chars[], le_int32 offset, } } - glyphs[out] = mapCharToGlyph(code, mapper); + glyphStorage[out] = mapCharToGlyph(code, mapper); if (code >= 0x10000) { i += 1; - glyphs[out += dir] = 0xFFFF; + glyphStorage[out += dir] = 0xFFFF; } } }