Home
last modified time | relevance | path

Searched refs:glyphIndex (Results 1 – 22 of 22) sorted by relevance

/external/skia/experimental/sktext/src/
DProcessor.cpp215 … auto startGlyph = runIndex == line.fTextStart.runIndex() ? line.fTextStart.glyphIndex() : 0; in iterateByVisualOrder()
216 …auto endGlyph = runIndex == line.fTextEnd.runIndex() ? line.fTextEnd.glyphIndex() : run.fGlyphs.si… in iterateByVisualOrder()
220 for (auto glyphIndex = startGlyph; glyphIndex <= endGlyph; ++glyphIndex) { in iterateByVisualOrder() local
221 auto textIndex = run.fClusters[glyphIndex]; in iterateByVisualOrder()
222 if (glyphIndex < endGlyph && !this->hasProperty(textIndex, units)) { in iterateByVisualOrder()
226 glyphRange.fEnd = glyphIndex; in iterateByVisualOrder()
229 glyphRange.fStart = glyphIndex; in iterateByVisualOrder()
260 … auto startGlyph = runIndex == line.fTextStart.runIndex() ? line.fTextStart.glyphIndex() : 0; in iterateByVisualOrder()
261 …auto endGlyph = runIndex == line.fTextEnd.runIndex() ? line.fTextEnd.glyphIndex() : run.fGlyphs.si… in iterateByVisualOrder()
267 for (auto glyphIndex = startGlyph; glyphIndex <= endGlyph; ++glyphIndex) { in iterateByVisualOrder() local
[all …]
DWrapper.cpp60 for (size_t glyphIndex = 0; glyphIndex < run.fPositions.size(); ++glyphIndex) { in breakTextIntoLines() local
61 auto textIndex = run.fClusters[glyphIndex]; in breakTextIntoLines()
64 cluster = Stretch(GlyphPos(runIndex, glyphIndex), textIndex, runMetrics); in breakTextIntoLines()
71 … auto clusterWidth = run.fPositions[glyphIndex].fX - run.fPositions[cluster.glyphStartIndex()].fX; in breakTextIntoLines()
72 cluster.finish(glyphIndex, textIndex, clusterWidth); in breakTextIntoLines()
126 cluster = Stretch(GlyphPos(runIndex, glyphIndex), textIndex, runMetrics); in breakTextIntoLines()
DLine.h62 GlyphPos(size_t runIndex, size_t glyphIndex) : fRunIndex(runIndex), fGlyphIndex(glyphIndex) { } in GlyphPos() argument
69 size_t glyphIndex() const { return fGlyphIndex; } in glyphIndex() function
134 this->fGlyphEnd.glyphIndex() == tail.fGlyphStart.glyphIndex()); in moveTo()
142 void finish(size_t glyphIndex, size_t textIndex, SkScalar width) { in finish() argument
144 this->fGlyphEnd.setGlyphIndex(glyphIndex); in finish()
155 size_t glyphStartIndex() const { return fGlyphStart.glyphIndex(); } in glyphStartIndex()
/external/skia/docs/examples/
DCanvas_drawTextBlob.cpp18 int glyphIndex = 0;
23 memcpy(run.glyphs, &glyphs[glyphIndex], sizeof(glyphs[0]) * runLen);
25 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr);
26 glyphIndex += runLen;
DTextBlob_bounds.cpp18 int glyphIndex = 0;
24 memcpy(run.glyphs, &glyphs[glyphIndex], sizeof(glyphs[0]) * runLen);
25 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr);
26 glyphIndex += runLen;
DTextBlob_uniqueID.cpp21 int glyphIndex = 0;
27 memcpy(run.glyphs, &glyphs[glyphIndex], sizeof(glyphs[0]) * runLen);
28 … textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr);
29 glyphIndex += runLen;
/external/skia/modules/skplaintexteditor/src/
Dshape.cpp203 for (size_t glyphIndex = 0; glyphIndex < glyphCount; ++glyphIndex) { in set_character_bounds() local
204 if (glyphIndex + 1 < glyphCount // more glyphs in set_character_bounds()
205 && clusters[glyphIndex] == clusters[glyphIndex + 1]) { in set_character_bounds()
208 unsigned textBegin = clusters[glyphIndex]; in set_character_bounds()
221 SkASSERT(glyphIndex + 1 > clusterStart); in set_character_bounds()
222 unsigned clusterGlyphCount = glyphIndex + 1 - clusterStart; in set_character_bounds()
225 clusterStart = glyphIndex + 1; // for next loop in set_character_bounds()
/external/skia/gm/
Dtexteffects.cpp61 int glyphIndex = 0; in MakeFancyBlob() local
73 advance += widths[glyphIndex++]; in MakeFancyBlob()
83 memcpy(buf.glyphs, glyphs.get() + glyphIndex, in MakeFancyBlob()
87 advance += widths[glyphIndex++]; in MakeFancyBlob()
93 const int fullRunLen = glyphCount - glyphIndex; in MakeFancyBlob()
95 memcpy(buf.glyphs, glyphs.get() + glyphIndex, in MakeFancyBlob()
100 advance += widths[glyphIndex++]; in MakeFancyBlob()
/external/skqp/gm/
Dtexteffects.cpp52 int glyphIndex = 0; in MakeFancyBlob() local
64 advance += widths[glyphIndex++]; in MakeFancyBlob()
74 memcpy(buf.glyphs, glyphs.get() + glyphIndex, in MakeFancyBlob()
78 advance += widths[glyphIndex++]; in MakeFancyBlob()
84 const int fullRunLen = glyphCount - glyphIndex; in MakeFancyBlob()
86 memcpy(buf.glyphs, glyphs.get() + glyphIndex, in MakeFancyBlob()
91 advance += widths[glyphIndex++]; in MakeFancyBlob()
/external/skqp/docs/
DSkTextBlob_Reference.bmh31 int glyphIndex = 0;
36 memcpy(run.glyphs, &glyphs[glyphIndex], sizeof(glyphs[0]) * runLen);
37 textPos.fX += font.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen,
39 glyphIndex += runLen;
70 int glyphIndex = 0;
75 memcpy(run.glyphs, &glyphs[glyphIndex], sizeof(glyphs[0]) * runLen);
76 textPos.fX += font.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen,
78 glyphIndex += runLen;
DSkCanvas_Reference.bmh3959 int glyphIndex = 0;
3964 memcpy(run.glyphs, &glyphs[glyphIndex], sizeof(glyphs[0]) * runLen);
3966 textPos.fX += font.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen,
3968 glyphIndex += runLen;
/external/skqp/src/ports/
DSkFontHost_win.cpp2002 int glyphIndex = 0; in onCharsToGlyphs() local
2008 while (glyphIndex < glyphCount) { in onCharsToGlyphs()
2010 int glyphsLeft = SkTMin(glyphCount - glyphIndex, scratchCount); in onCharsToGlyphs()
2020 bmpCharsToGlyphs(hdc, scratch, runLength, &glyphs[glyphIndex], Ox1FHack); in onCharsToGlyphs()
2021 glyphIndex += runLength; in onCharsToGlyphs()
2025 while (glyphIndex < glyphCount && currentChar > 0xFFFF) { in onCharsToGlyphs()
2027 glyphs[glyphIndex] = nonBmpCharToGlyph(hdc, &sc, scratch); in onCharsToGlyphs()
2028 ++glyphIndex; in onCharsToGlyphs()
2029 if (glyphIndex < glyphCount) { in onCharsToGlyphs()
2037 int glyphIndex = 0; in onCharsToGlyphs() local
[all …]
DSkFontHost_FreeType.cpp639 FT_UInt glyphIndex; in getGlyphToUnicodeMap() local
640 SkUnichar charCode = FT_Get_First_Char(face, &glyphIndex); in getGlyphToUnicodeMap()
641 while (glyphIndex) { in getGlyphToUnicodeMap()
642 SkASSERT(glyphIndex < SkToUInt(numGlyphs)); in getGlyphToUnicodeMap()
644 if (0 == dstArray[glyphIndex]) { in getGlyphToUnicodeMap()
645 dstArray[glyphIndex] = charCode; in getGlyphToUnicodeMap()
647 charCode = FT_Get_Next_Char(face, charCode, &glyphIndex); in getGlyphToUnicodeMap()
/external/skia/modules/skshaper/src/
DSkShaper_primitive.cpp81 int glyphIndex = 0; in linebreak() local
90 accumulatedWidth += advance[glyphIndex++]; in linebreak()
/external/harfbuzz_ng/src/
Dhb-ot-glyf-table.hh268 const HBUINT8 *p = &StructAfter<const HBUINT8> (glyphIndex); in get_anchor_points()
310 const HBINT8 *p = &StructAfter<const HBINT8> (glyphIndex); in get_transformation()
354 HBGlyphID glyphIndex; member
867 if (unlikely (!get_points_var (item.glyphIndex, coords, coord_count, in get_points_var()
1039 add_gid_and_children (item.glyphIndex, gids_to_retain, depth); in add_gid_and_children()
1082 if (plan->new_gid_for_old_gid (_.glyphIndex, &new_gid)) in serialize()
1083 ((OT::glyf::CompositeGlyphChain *) &_)->glyphIndex = new_gid; in serialize()
/external/skia/src/ports/
DSkFontHost_win.cpp1962 int glyphIndex = 0; in onCharsToGlyphs() local
1964 while (glyphIndex < glyphCount) { in onCharsToGlyphs()
1966 int glyphsLeft = std::min(glyphCount - glyphIndex, scratchCount); in onCharsToGlyphs()
1968 while (runLength < glyphsLeft && utf32[glyphIndex + runLength] <= 0xFFFF) { in onCharsToGlyphs()
1969 scratch[runLength] = static_cast<WCHAR>(utf32[glyphIndex + runLength]); in onCharsToGlyphs()
1973 bmpCharsToGlyphs(hdc, scratch, runLength, &glyphs[glyphIndex], Ox1FHack); in onCharsToGlyphs()
1974 glyphIndex += runLength; in onCharsToGlyphs()
1978 while (glyphIndex < glyphCount && utf32[glyphIndex] > 0xFFFF) { in onCharsToGlyphs()
1979 SkUTF::ToUTF16(utf32[glyphIndex], reinterpret_cast<uint16_t*>(scratch)); in onCharsToGlyphs()
1980 glyphs[glyphIndex] = nonBmpCharToGlyph(hdc, &sc, scratch); in onCharsToGlyphs()
[all …]
DSkFontHost_FreeType.cpp679 FT_UInt glyphIndex; in getGlyphToUnicodeMap() local
680 SkUnichar charCode = FT_Get_First_Char(face, &glyphIndex); in getGlyphToUnicodeMap()
681 while (glyphIndex) { in getGlyphToUnicodeMap()
682 SkASSERT(glyphIndex < SkToUInt(numGlyphs)); in getGlyphToUnicodeMap()
684 if (0 == dstArray[glyphIndex]) { in getGlyphToUnicodeMap()
685 dstArray[glyphIndex] = charCode; in getGlyphToUnicodeMap()
687 charCode = FT_Get_Next_Char(face, charCode, &glyphIndex); in getGlyphToUnicodeMap()
/external/fonttools/Lib/fontTools/ttLib/tables/
DE_B_L_C_.py437 indexingOffsets = [glyphIndex * offsetDataSize for glyphIndex in range(numGlyphs+2)]
556 indexingOffsets = [glyphIndex * codeOffsetPairSize for glyphIndex in range(numGlyphs+2)]
/external/skia/src/sfnt/
DSkOTTable_glyf.h154 SK_OT_USHORT glyphIndex; member
/external/skqp/src/sfnt/
DSkOTTable_glyf.h154 SK_OT_USHORT glyphIndex; member
/external/sfntly/doc/
DSfntlyCPlusPlusNotes.md59 glyphIndex = *(&idRangeOffset[i] + idRangeOffset[i] / 2 + (c - startCode[i]))
67 glyphIndex = idDelta[i] + c
/external/skqp/modules/skshaper/src/
DSkShaper_harfbuzz.cpp753 int glyphIndex = glyphIterator.fGlyphIndex; in shape() local
787 ? glyphIndex + 1 in shape()