Lines Matching refs:glyphs
70 /** Retrieve advance data for glyphs. Used by the PDF backend. */
114 auto glyphs = paths.glyphs(SkMakeSpan(glyphIDs));
118 advances.reserve_back(glyphs.size());
119 for (const SkGlyph* glyph : glyphs) {
129 for (size_t i = 0; i < glyphs.size(); ++i) {
130 int16_t advance = (int16_t)glyphs[i]->advanceX();
142 for (; j < glyphs.size(); ++j) {
143 int16_t next_advance = (int16_t)glyphs[j]->advanceX();
149 result->appendInt(glyphs[i]->getGlyphID());
150 result->appendInt(glyphs[j - 1]->getGlyphID());
158 result->appendInt(glyphs[i]->getGlyphID());
162 for (; j < glyphs.size(); ++j) {
163 advance = (int16_t)glyphs[j]->advanceX();
171 int dontCares = glyphs[j]->getGlyphID() - glyphs[j - 1]->getGlyphID() - 1;
179 if (j + 1 < glyphs.size()) {
180 next_advance = (int16_t)glyphs[j+1]->advanceX();
181 int next_dontCares = glyphs[j+1]->getGlyphID() - glyphs[j]->getGlyphID() - 1;
188 if (j + 2 < glyphs.size() && advance == next_advance) {
189 next_advance = (int16_t)glyphs[j+2]->advanceX();