Home
last modified time | relevance | path

Searched refs:glyphIndex (Results 1 - 19 of 19) sorted by relevance

/third_party/skia/experimental/sktext/src/
H A 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 in skia::text::GlyphPos
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()
H A DText.cpp346 for (size_t glyphIndex = 0; glyphIndex < run.fPositions.size(); ++glyphIndex) {
347 auto textIndex = run.fClusters[glyphIndex];
352 clusterGlyphs = GlyphRange(glyphIndex, glyphIndex);
354 Stretch empty(GlyphPos(runIndex, glyphIndex), textIndex, runMetrics);
370 clusterGlyphs.fEnd = glyphIndex;
474 auto glyphStart = isFirstRun ? lineStretch.glyphStart().glyphIndex() : 0;
475 auto glyphEnd = isLastRun ? lineStretch.glyphEnd().glyphIndex()
[all...]
/third_party/skia/modules/skplaintexteditor/src/
H A Dshape.cpp203 for (size_t glyphIndex = 0; glyphIndex < glyphCount; ++glyphIndex) { in set_character_bounds()
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 in set_character_bounds()
[all...]
/third_party/skia/docs/examples/
H A DCanvas_drawTextBlob.cpp18 int glyphIndex = 0; in REG_FIDDLE() local
23 memcpy(run.glyphs, &glyphs[glyphIndex], sizeof(glyphs[0]) * runLen); in REG_FIDDLE()
25 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr); in REG_FIDDLE()
26 glyphIndex += runLen; in REG_FIDDLE()
H A DTextBlob_uniqueID.cpp21 int glyphIndex = 0; in REG_FIDDLE() local
27 memcpy(run.glyphs, &glyphs[glyphIndex], sizeof(glyphs[0]) * runLen); in REG_FIDDLE()
28 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr); in REG_FIDDLE()
29 glyphIndex += runLen; in REG_FIDDLE()
H A DTextBlob_bounds.cpp18 int glyphIndex = 0; in REG_FIDDLE() local
24 memcpy(run.glyphs, &glyphs[glyphIndex], sizeof(glyphs[0]) * runLen); in REG_FIDDLE()
25 textPos.fX += paint.measureText(&glyphs[glyphIndex], sizeof(glyphs[0]) * runLen, nullptr); in REG_FIDDLE()
26 glyphIndex += runLen; in REG_FIDDLE()
/third_party/skia/gm/
H A 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/third_party/externals/sfntly/java/src/com/google/typography/font/sfntly/table/truetype/
H A DCompositeGlyph.java55 // glyphIndex in initialize()
88 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/
H A DHintStripTest.java139 assertEquals(68, composite.glyphIndex(0)); // a in testCompositeGlyph()
142 assertEquals(67, composite.glyphIndex(1)); // grave in testCompositeGlyph()
H A DRenumberingSubsetTest.java164 assertEquals(2, composite.glyphIndex(0)); // a in testCompositeGlyph()
167 assertEquals(1, composite.glyphIndex(1)); // grave in testCompositeGlyph()
/third_party/skia/src/ports/
H A DSkFontHost_win.cpp1962 int glyphIndex = 0;
1964 while (glyphIndex < glyphCount) {
1966 int glyphsLeft = std::min(glyphCount - glyphIndex, scratchCount);
1968 while (runLength < glyphsLeft && utf32[glyphIndex + runLength] <= 0xFFFF) {
1969 scratch[runLength] = static_cast<WCHAR>(utf32[glyphIndex + runLength]);
1973 bmpCharsToGlyphs(hdc, scratch, runLength, &glyphs[glyphIndex], Ox1FHack);
1974 glyphIndex += runLength;
1978 while (glyphIndex < glyphCount && utf32[glyphIndex] > 0xFFFF) {
1979 SkUTF::ToUTF16(utf32[glyphIndex], reinterpret_cas
[all...]
H A DSkFontHost_FreeType.cpp515 FT_UInt glyphIndex; in getGlyphToUnicodeMap() local
516 SkUnichar charCode = FT_Get_First_Char(face, &glyphIndex); in getGlyphToUnicodeMap()
517 while (glyphIndex) { in getGlyphToUnicodeMap()
518 SkASSERT(glyphIndex < SkToUInt(numGlyphs)); in getGlyphToUnicodeMap()
520 if (0 == dstArray[glyphIndex]) { in getGlyphToUnicodeMap()
521 dstArray[glyphIndex] = charCode; in getGlyphToUnicodeMap()
523 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/
H A DSFLint.java187 glyph.glyphIndex(i) == glyph.glyphIndex(j) && in lintCompositeGlyph()
/third_party/skia/modules/skshaper/src/
H A DSkShaper_primitive.cpp93 int glyphIndex = 0; in linebreak() local
102 accumulatedWidth += advance[glyphIndex++]; in linebreak()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/sfnttool/
H A DGlyphCoverage.java68 touchGlyph(font, coverage, composite.glyphIndex(i)); in touchGlyph()
/third_party/skia/third_party/externals/harfbuzz/src/
H A 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/src/sfnt/
H A DSkOTTable_glyf.h154 SK_OT_USHORT glyphIndex; member
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/conversion/eot/
H A DGlyfEncoder.java137 writeUShort(glyph.glyphIndex(i)); in writeCompositeGlyph()
/third_party/skia/third_party/externals/sfntly/java/src/com/google/typography/font/tools/fontinfo/
H A DFontInfo.java579 int subglyphId = cGlyph.glyphIndex(j); in listSubglyphFrequency()

Completed in 25 milliseconds