Lines Matching refs:glyph
118 void SkScalerContext::getAdvance(SkGlyph* glyph) { in getAdvance() argument
120 glyph->fMaskFormat = MASK_FORMAT_JUST_ADVANCE; in getAdvance()
124 generateAdvance(glyph); in getAdvance()
127 void SkScalerContext::getMetrics(SkGlyph* glyph) { in getMetrics() argument
128 generateMetrics(glyph); in getMetrics()
136 glyph->fLsbDelta = glyph->fRsbDelta = 0; in getMetrics()
140 if (0 == glyph->fWidth || 0 == glyph->fHeight) { in getMetrics()
141 glyph->fWidth = 0; in getMetrics()
142 glyph->fHeight = 0; in getMetrics()
143 glyph->fTop = 0; in getMetrics()
144 glyph->fLeft = 0; in getMetrics()
145 glyph->fMaskFormat = 0; in getMetrics()
153 this->internalGetPath(*glyph, &fillPath, &devPath, &fillToDevMatrix); in getMetrics()
161 glyph->fLeft = mask.fBounds.fLeft; in getMetrics()
162 glyph->fTop = mask.fBounds.fTop; in getMetrics()
163 glyph->fWidth = SkToU16(mask.fBounds.width()); in getMetrics()
164 glyph->fHeight = SkToU16(mask.fBounds.height()); in getMetrics()
175 glyph->fLeft = ir.fLeft; in getMetrics()
176 glyph->fTop = ir.fTop; in getMetrics()
177 glyph->fWidth = SkToU16(ir.width()); in getMetrics()
178 glyph->fHeight = SkToU16(ir.height()); in getMetrics()
180 if (glyph->fWidth > 0) { in getMetrics()
183 glyph->fWidth += 2; in getMetrics()
184 glyph->fLeft -= 1; in getMetrics()
193 if (SkMask::kARGB32_Format != glyph->fMaskFormat) { in getMetrics()
194 glyph->fMaskFormat = fRec.fMaskFormat; in getMetrics()
199 SkMask::kARGB32_Format == glyph->fMaskFormat) { in getMetrics()
200 glyph->fMaskFormat = SkMask::kA8_Format; in getMetrics()
207 glyph->toMask(&src); in getMetrics()
216 glyph->fLeft = dst.fBounds.fLeft; in getMetrics()
217 glyph->fTop = dst.fBounds.fTop; in getMetrics()
218 glyph->fWidth = SkToU16(dst.fBounds.width()); in getMetrics()
219 glyph->fHeight = SkToU16(dst.fBounds.height()); in getMetrics()
220 glyph->fMaskFormat = dst.fFormat; in getMetrics()
227 glyph->fLeft = 0; in getMetrics()
228 glyph->fTop = 0; in getMetrics()
229 glyph->fWidth = 0; in getMetrics()
230 glyph->fHeight = 0; in getMetrics()
233 glyph->fMaskFormat = fRec.fMaskFormat; in getMetrics()
471 const SkGlyph* glyph = &origGlyph; in getImage() local
503 glyph = &tmpGlyph; in getImage()
511 this->internalGetPath(*glyph, &fillPath, &devPath, &fillToDevMatrix); in getImage()
512 glyph->toMask(&mask); in getImage()
516 sk_bzero(glyph->fImage, mask.computeImageSize()); in getImage()
531 generateImage(*glyph); in getImage()
539 SkASSERT(SkMask::k3D_Format != glyph->fMaskFormat); in getImage()
542 glyph->toMask(&srcM); in getImage()
552 (const SkPMColor*)glyph->fImage, glyph->rowBytes()); in getImage()
588 void SkScalerContext::getPath(const SkGlyph& glyph, SkPath* path) { in getPath() argument
589 this->internalGetPath(glyph, NULL, path, NULL); in getPath()
596 SkUnichar SkScalerContext::generateGlyphToChar(uint16_t glyph) { in generateGlyphToChar() argument
602 void SkScalerContext::internalGetPath(const SkGlyph& glyph, SkPath* fillPath, in internalGetPath() argument
605 generatePath(glyph, &path); in internalGetPath()
608 SkFixed dx = glyph.getSubXFixed(); in internalGetPath()
609 SkFixed dy = glyph.getSubYFixed(); in internalGetPath()
852 void generateAdvance(SkGlyph* glyph) override { in generateAdvance() argument
853 glyph->zeroMetrics(); in generateAdvance()
855 void generateMetrics(SkGlyph* glyph) override { in generateMetrics() argument
856 glyph->zeroMetrics(); in generateMetrics()
858 void generateImage(const SkGlyph& glyph) override {} in generateImage() argument
859 void generatePath(const SkGlyph& glyph, SkPath* path) override {} in generatePath() argument