Home
last modified time | relevance | path

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

/third_party/skia/experimental/sktext/src/
DLine.h65 GlyphPos(size_t runIndex, size_t glyphIndex) : fRunIndex(runIndex), fGlyphIndex(glyphIndex) { } in GlyphPos() argument
72 size_t glyphIndex() const { return fGlyphIndex; } in glyphIndex() function
140 this->fGlyphEnd.glyphIndex() == tail.fGlyphStart.glyphIndex()); in moveTo()
148 void finish(size_t glyphIndex, size_t textIndex, SkScalar width) { in finish() argument
150 this->fGlyphEnd.setGlyphIndex(glyphIndex); in finish()
161 size_t glyphStartIndex() const { return fGlyphStart.glyphIndex(); } in glyphStartIndex()
DText.cpp346 for (size_t glyphIndex = 0; glyphIndex < run.fPositions.size(); ++glyphIndex) { in wrap() local
347 auto textIndex = run.fClusters[glyphIndex]; in wrap()
352 clusterGlyphs = GlyphRange(glyphIndex, glyphIndex); in wrap()
354 Stretch empty(GlyphPos(runIndex, glyphIndex), textIndex, runMetrics); in wrap()
370 clusterGlyphs.fEnd = glyphIndex; in wrap()
474 auto glyphStart = isFirstRun ? lineStretch.glyphStart().glyphIndex() : 0; in addLine()
475 auto glyphEnd = isLastRun ? lineStretch.glyphEnd().glyphIndex() : logicalRun.size(); in addLine()
477 auto glyphSpaces = isSpaceRun ? spacesStart.glyphIndex() : glyphEnd; in addLine()
/third_party/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()
/third_party/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;
/third_party/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()
/third_party/skia/modules/skshaper/src/
DSkShaper_primitive.cpp81 int glyphIndex = 0; in linebreak() local
90 accumulatedWidth += advance[glyphIndex++]; in linebreak()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/truetype/
DCompositeGlyph.java88 public int glyphIndex(int contour) { in glyphIndex() method in CompositeGlyph
163 sb.append("\t" + contour + " = [gid = " + this.glyphIndex(contour) + ", arg1 = " in toString()
/third_party/skia/third_party/externals/sfntly/java/test/com/google/typography/font/tools/subsetter/
DHintStripTest.java139 assertEquals(68, composite.glyphIndex(0)); // a in testCompositeGlyph()
142 assertEquals(67, composite.glyphIndex(1)); // grave in testCompositeGlyph()
DRenumberingSubsetTest.java164 assertEquals(2, composite.glyphIndex(0)); // a in testCompositeGlyph()
167 assertEquals(1, composite.glyphIndex(1)); // grave in testCompositeGlyph()
/third_party/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.cpp510 FT_UInt glyphIndex; in getGlyphToUnicodeMap() local
511 SkUnichar charCode = FT_Get_First_Char(face, &glyphIndex); in getGlyphToUnicodeMap()
512 while (glyphIndex) { in getGlyphToUnicodeMap()
513 SkASSERT(glyphIndex < SkToUInt(numGlyphs)); in getGlyphToUnicodeMap()
515 if (0 == dstArray[glyphIndex]) { in getGlyphToUnicodeMap()
516 dstArray[glyphIndex] = charCode; in getGlyphToUnicodeMap()
518 charCode = FT_Get_Next_Char(face, charCode, &glyphIndex); in getGlyphToUnicodeMap()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/sample/sflint/
DSFLint.java187 glyph.glyphIndex(i) == glyph.glyphIndex(j) && in lintCompositeGlyph()
/third_party/skia/third_party/externals/harfbuzz/src/
Dhb-ot-glyf-table.hh289 void set_glyph_index (hb_codepoint_t new_gid) { glyphIndex = new_gid; } in set_glyph_index()
290 hb_codepoint_t get_glyph_index () const { return glyphIndex; } in get_glyph_index()
305 const HBUINT8 *p = &StructAfter<const HBUINT8> (glyphIndex); in get_anchor_points()
347 const HBINT8 *p = &StructAfter<const HBINT8> (glyphIndex); in get_transformation()
391 HBGlyphID16 glyphIndex; member
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/sfnttool/
DGlyphCoverage.java68 touchGlyph(font, coverage, composite.glyphIndex(i)); in touchGlyph()
/third_party/skia/src/sfnt/
DSkOTTable_glyf.h154 SK_OT_USHORT glyphIndex; member
/third_party/skia/third_party/externals/sfntly/doc/
DSfntlyCPlusPlusNotes.md59 glyphIndex = *(&idRangeOffset[i] + idRangeOffset[i] / 2 + (c - startCode[i]))
67 glyphIndex = idDelta[i] + c
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/
DGlyfEncoder.java137 writeUShort(glyph.glyphIndex(i)); in writeCompositeGlyph()
/third_party/skia/site/docs/dev/design/
Dtext_shaper.md134 readonly attribute unsigned long glyphIndex;
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/
DFontInfo.java579 int subglyphId = cGlyph.glyphIndex(j); in listSubglyphFrequency()
/third_party/skia/third_party/externals/harfbuzz/perf/texts/
Den-words.txt4506 glyphIndex