Lines Matching refs:glyph
78 void SkGScalerContext::generateAdvance(SkGlyph* glyph) { in generateAdvance() argument
79 fProxy->getAdvance(glyph); in generateAdvance()
82 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateAdvance()
83 SkFixedToScalar(glyph->fAdvanceY), &advance); in generateAdvance()
84 glyph->fAdvanceX = SkScalarToFixed(advance.fX); in generateAdvance()
85 glyph->fAdvanceY = SkScalarToFixed(advance.fY); in generateAdvance()
88 void SkGScalerContext::generateMetrics(SkGlyph* glyph) { in generateMetrics() argument
89 fProxy->getMetrics(glyph); in generateMetrics()
92 fMatrix.mapXY(SkFixedToScalar(glyph->fAdvanceX), in generateMetrics()
93 SkFixedToScalar(glyph->fAdvanceY), &advance); in generateMetrics()
94 glyph->fAdvanceX = SkScalarToFixed(advance.fX); in generateMetrics()
95 glyph->fAdvanceY = SkScalarToFixed(advance.fY); in generateMetrics()
98 fProxy->getPath(*glyph, &path); in generateMetrics()
108 glyph->fLeft = ibounds.fLeft; in generateMetrics()
109 glyph->fTop = ibounds.fTop; in generateMetrics()
110 glyph->fWidth = ibounds.width(); in generateMetrics()
111 glyph->fHeight = ibounds.height(); in generateMetrics()
112 glyph->fMaskFormat = SkMask::kARGB32_Format; in generateMetrics()
115 void SkGScalerContext::generateImage(const SkGlyph& glyph) { in generateImage() argument
116 if (SkMask::kARGB32_Format == glyph.fMaskFormat) { in generateImage()
118 fProxy->getPath(glyph, &path); in generateImage()
121 bm.installPixels(SkImageInfo::MakeN32Premul(glyph.fWidth, glyph.fHeight), in generateImage()
122 glyph.fImage, glyph.rowBytes()); in generateImage()
126 canvas.translate(-SkIntToScalar(glyph.fLeft), in generateImage()
127 -SkIntToScalar(glyph.fTop)); in generateImage()
131 fProxy->getImage(glyph); in generateImage()
135 void SkGScalerContext::generatePath(const SkGlyph& glyph, SkPath* path) { in generatePath() argument
136 fProxy->getPath(glyph, path); in generatePath()