Lines Matching refs:glyph
34 virtual void generateMetrics(SkGlyph* glyph);
35 virtual void generateImage(const SkGlyph& glyph);
36 virtual void generatePath(const SkGlyph& glyph, SkPath* path);
122 void SkScalerContext_Ascender::generateMetrics(SkGlyph* glyph)
124 glyph->fRsbDelta = 0;
125 glyph->fLsbDelta = 0;
130 int adv = aca_Get_Adv_Width(fHandle, glyph->getGlyphID());
134 aca_Rasterize(glyph->getGlyphID(), fHandle, &rec, &topLeft);
139 glyph->fWidth = 0;
140 glyph->fHeight = 0;
141 glyph->fTop = 0;
142 glyph->fLeft = 0;
143 glyph->fAdvanceX = 0;
144 glyph->fAdvanceY = 0;
148 glyph->fWidth = rec.width;
149 glyph->fHeight = rec.rows;
150 glyph->fRowBytes = rec.width;
151 glyph->fTop = -topLeft.y;
152 glyph->fLeft = topLeft.x;
153 glyph->fAdvanceX = SkIntToFixed(adv);
154 glyph->fAdvanceY = SkIntToFixed(0);
157 void SkScalerContext_Ascender::generateImage(const SkGlyph& glyph)
162 aca_Rasterize(glyph.getGlyphID(), fHandle, &rec, &topLeft);
165 uint8_t* dst = (uint8_t*)glyph.fImage;
166 int height = glyph.fHeight;
171 memcpy(dst, src, glyph.fWidth);
173 dst += glyph.fRowBytes;
179 void SkScalerContext_Ascender::generatePath(const SkGlyph& glyph, SkPath* path)