Lines Matching defs:glyph

118 void SkScalerContext::getAdvance(SkGlyph* glyph) {
120 glyph->fMaskFormat = MASK_FORMAT_JUST_ADVANCE;
124 generateAdvance(glyph);
127 void SkScalerContext::getMetrics(SkGlyph* glyph) {
128 generateMetrics(glyph);
136 glyph->fLsbDelta = glyph->fRsbDelta = 0;
139 // if either dimension is empty, zap the image bounds of the glyph
140 if (0 == glyph->fWidth || 0 == glyph->fHeight) {
141 glyph->fWidth = 0;
142 glyph->fHeight = 0;
143 glyph->fTop = 0;
144 glyph->fLeft = 0;
145 glyph->fMaskFormat = 0;
153 this->internalGetPath(*glyph, &fillPath, &devPath, &fillToDevMatrix);
161 glyph->fLeft = mask.fBounds.fLeft;
162 glyph->fTop = mask.fBounds.fTop;
163 glyph->fWidth = SkToU16(mask.fBounds.width());
164 glyph->fHeight = SkToU16(mask.fBounds.height());
175 glyph->fLeft = ir.fLeft;
176 glyph->fTop = ir.fTop;
177 glyph->fWidth = SkToU16(ir.width());
178 glyph->fHeight = SkToU16(ir.height());
180 if (glyph->fWidth > 0) {
183 glyph->fWidth += 2;
184 glyph->fLeft -= 1;
193 if (SkMask::kARGB32_Format != glyph->fMaskFormat) {
194 glyph->fMaskFormat = fRec.fMaskFormat;
199 SkMask::kARGB32_Format == glyph->fMaskFormat) {
200 glyph->fMaskFormat = SkMask::kA8_Format;
207 glyph->toMask(&src);
216 glyph->fLeft = dst.fBounds.fLeft;
217 glyph->fTop = dst.fBounds.fTop;
218 glyph->fWidth = SkToU16(dst.fBounds.width());
219 glyph->fHeight = SkToU16(dst.fBounds.height());
220 glyph->fMaskFormat = dst.fFormat;
227 glyph->fLeft = 0;
228 glyph->fTop = 0;
229 glyph->fWidth = 0;
230 glyph->fHeight = 0;
233 glyph->fMaskFormat = fRec.fMaskFormat;
471 const SkGlyph* glyph = &origGlyph;
503 glyph = &tmpGlyph;
511 this->internalGetPath(*glyph, &fillPath, &devPath, &fillToDevMatrix);
512 glyph->toMask(&mask);
516 sk_bzero(glyph->fImage, mask.computeImageSize());
531 generateImage(*glyph);
538 // the src glyph image shouldn't be 3D
539 SkASSERT(SkMask::k3D_Format != glyph->fMaskFormat);
542 glyph->toMask(&srcM);
544 // now we need to extract the alpha-channel from the glyph's image
552 (const SkPMColor*)glyph->fImage, glyph->rowBytes());
571 // clean out our glyph, since it may be larger than dstM
588 void SkScalerContext::getPath(const SkGlyph& glyph, SkPath* path) {
589 this->internalGetPath(glyph, NULL, path, NULL);
596 SkUnichar SkScalerContext::generateGlyphToChar(uint16_t glyph) {
602 void SkScalerContext::internalGetPath(const SkGlyph& glyph, SkPath* fillPath,
605 generatePath(glyph, &path);
608 SkFixed dx = glyph.getSubXFixed();
609 SkFixed dy = glyph.getSubYFixed();
852 void generateAdvance(SkGlyph* glyph) override {
853 glyph->zeroMetrics();
855 void generateMetrics(SkGlyph* glyph) override {
856 glyph->zeroMetrics();
858 void generateImage(const SkGlyph& glyph) override {}
859 void generatePath(const SkGlyph& glyph, SkPath* path) override {}