Lines Matching refs:gid
179 static SkGlyphID first_nonzero_glyph_for_single_byte_encoding(SkGlyphID gid) {
180 return gid != 0 ? gid - (gid - 1) % 255 : 1;
183 static bool has_outline_glyph(SkGlyphID gid, SkStrike* cache) {
184 const SkGlyph& glyph = cache->getGlyphIDMetrics(gid);
498 for (unsigned gID = firstGlyphID; gID <= lastGlyphID; gID++) {
499 advance = glyphCache->getGlyphIDAdvance(gID).fAdvanceX;
511 for (int gID = firstGlyphID; gID <= lastGlyphID; gID++) {
512 encDiffs->appendName(glyphNames[gID].isEmpty() ? unknown : glyphNames[gID]);
564 static ImageAndOffset to_image(SkGlyphID gid, SkStrike* cache) {
565 (void)cache->findImage(cache->getGlyphIDMetrics(gid));
567 cache->getGlyphIDMetrics(gid).toMask(&mask);
677 for (SkGlyphID gID : SingleByteGlyphIdIterator(firstGlyphID, lastGlyphID)) {
678 bool skipGlyph = gID != 0 && !subset.has(gID);
685 characterName.printf("g%X", gID);
686 const SkGlyph& glyph = cache->getGlyphIDMetrics(gID);
698 auto pimg = to_image(gID, cache.get());
703 imageGlyphs.emplace_back(gID, SkPDFSerializeImage(pimg.fImage.get(), doc));