本文整理汇总了C++中LEGlyphStorage::insertGlyphs方法的典型用法代码示例。如果您正苦于以下问题:C++ LEGlyphStorage::insertGlyphs方法的具体用法?C++ LEGlyphStorage::insertGlyphs怎么用?C++ LEGlyphStorage::insertGlyphs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LEGlyphStorage
的用法示例。
在下文中一共展示了LEGlyphStorage::insertGlyphs方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: while
void ContextualGlyphInsertionProcessor2::doInsertion(LEGlyphStorage &glyphStorage, le_int32 atGlyph, le_uint16 &index, le_uint16 count, le_bool /* isKashidaLike */, le_bool isBefore, LEErrorCode &success)
{
if (!count)
return;
LEGlyphID *insertGlyphs = glyphStorage.insertGlyphs(atGlyph, count + 1, success);
if (LE_FAILURE(success))
return;
for (le_uint32 glyph = 0; glyph < count + 1; glyph++)
insertGlyphs[glyph] = 0; // undef
// Note: Kashida vs Split Vowel seems to only affect selection and highlighting.
// We note the flag, but do not layout different.
// https://developer.apple.com/fonts/TTRefMan/RM06/Chap6mort.html
le_int16 targetIndex = 0;
if (isBefore) {
insertGlyphs[count] = glyphStorage[atGlyph];
} else {
insertGlyphs[targetIndex++] = glyphStorage[atGlyph];
}
while(count-- && LE_SUCCESS(success)) {
le_uint16 insertGlyph;
if (insertionAction.getObject(index++, insertGlyph, success))
insertGlyphs[targetIndex++] = SWAPW(insertGlyph);
}
}