Home
last modified time | relevance | path

Searched refs:shaper_item (Results 1 – 5 of 5) sorted by relevance

/external/harfbuzz/src/
Dharfbuzz-hebrew.c45 HB_Bool HB_HebrewShape(HB_ShaperItem *shaper_item) in HB_HebrewShape() argument
57 assert(shaper_item->item.script == HB_Script_Hebrew); in HB_HebrewShape()
60 if (HB_SelectScript(shaper_item, hebrew_features)) { in HB_HebrewShape()
62 const int availableGlyphs = shaper_item->num_glyphs; in HB_HebrewShape()
63 if (!HB_ConvertStringToGlyphIndices(shaper_item)) in HB_HebrewShape()
66 HB_HeuristicSetGlyphAttributes(shaper_item); in HB_HebrewShape()
67 HB_OpenTypeShape(shaper_item, /*properties*/0); in HB_HebrewShape()
68 return HB_OpenTypePosition(shaper_item, availableGlyphs, /*doLogClusters*/TRUE); in HB_HebrewShape()
73 const HB_UChar16 *uc = shaper_item->string + shaper_item->item.pos; in HB_HebrewShape()
74 unsigned short *logClusters = shaper_item->log_clusters; in HB_HebrewShape()
[all …]
Dharfbuzz-shaper-private.h95 typedef HB_Bool (*HB_ShapeFunction)(HB_ShaperItem *shaper_item);
105 extern HB_Bool HB_BasicShape(HB_ShaperItem *shaper_item);
106 extern HB_Bool HB_GreekShape(HB_ShaperItem *shaper_item);
107 extern HB_Bool HB_TibetanShape(HB_ShaperItem *shaper_item);
108 extern HB_Bool HB_HebrewShape(HB_ShaperItem *shaper_item);
109 extern HB_Bool HB_ArabicShape(HB_ShaperItem *shaper_item);
110 extern HB_Bool HB_HangulShape(HB_ShaperItem *shaper_item);
111 extern HB_Bool HB_MyanmarShape(HB_ShaperItem *shaper_item);
112 extern HB_Bool HB_KhmerShape(HB_ShaperItem *shaper_item);
113 extern HB_Bool HB_IndicShape(HB_ShaperItem *shaper_item);
[all …]
Dharfbuzz-greek.c356 HB_Bool HB_GreekShape(HB_ShaperItem *shaper_item) in HB_GreekShape() argument
358 const int availableGlyphs = shaper_item->num_glyphs; in HB_GreekShape()
359 const HB_UChar16 *uc = shaper_item->string + shaper_item->item.pos; in HB_GreekShape()
360 unsigned short *logClusters = shaper_item->log_clusters; in HB_GreekShape()
361 HB_GlyphAttributes *attributes = shaper_item->attributes; in HB_GreekShape()
368 HB_STACKARRAY(HB_UChar16, shapedChars, 2 * shaper_item->item.length); in HB_GreekShape()
370 assert(shaper_item->item.script == HB_Script_Greek); in HB_GreekShape()
375 for (i = 1; i < shaper_item->item.length; ++i) { in HB_GreekShape()
398 if (shaper_item->font->klass->canRender(shaper_item->font, (HB_UChar16 *)&shaped, 1)) { in HB_GreekShape()
426 haveGlyphs = shaper_item->font->klass in HB_GreekShape()
[all …]
Dharfbuzz-shaper.cpp560 HB_Bool HB_ConvertStringToGlyphIndices(HB_ShaperItem *shaper_item) in HB_ConvertStringToGlyphIndices() argument
562 if (shaper_item->glyphIndicesPresent) { in HB_ConvertStringToGlyphIndices()
563 shaper_item->num_glyphs = shaper_item->initialGlyphCount; in HB_ConvertStringToGlyphIndices()
564 shaper_item->glyphIndicesPresent = false; in HB_ConvertStringToGlyphIndices()
567 return shaper_item->font->klass in HB_ConvertStringToGlyphIndices()
568 ->convertStringToGlyphIndices(shaper_item->font, in HB_ConvertStringToGlyphIndices()
569shaper_item->string + shaper_item->item.pos, shaper_item->item.length, in HB_ConvertStringToGlyphIndices()
570 shaper_item->glyphs, &shaper_item->num_glyphs, in HB_ConvertStringToGlyphIndices()
571 shaper_item->item.bidiLevel % 2); in HB_ConvertStringToGlyphIndices()
574 HB_Bool HB_BasicShape(HB_ShaperItem *shaper_item) in HB_BasicShape() argument
[all …]
/external/harfbuzz/tests/shaping/
Dmain.cpp224 HB_ShaperItem shaper_item; in shaping() local
225 shaper_item.kerning_applied = false; in shaping()
226 shaper_item.string = reinterpret_cast<const HB_UChar16 *>(str.constData()); in shaping()
227 shaper_item.stringLength = str.length(); in shaping()
228 shaper_item.item.script = script; in shaping()
229 shaper_item.item.pos = 0; in shaping()
230 shaper_item.item.length = shaper_item.stringLength; in shaping()
231 shaper_item.item.bidiLevel = 0; // ### in shaping()
232 shaper_item.shaperFlags = 0; in shaping()
233 shaper_item.font = &hbFont; in shaping()
[all …]