Home | History | Annotate | Download | only in core

Lines Matching defs:glyph

1451         const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0);
1453 x += autokern.adjust(glyph) + glyph.fAdvanceX;
1454 y += glyph.fAdvanceY;
1499 const SkGlyph& glyph) {
1502 SkASSERT(glyph.fWidth > 0 && glyph.fHeight > 0);
1507 left += glyph.fLeft;
1508 top += glyph.fTop;
1510 int right = left + glyph.fWidth;
1511 int bottom = top + glyph.fHeight;
1527 uint8_t* aa = (uint8_t*)glyph.fImage;
1529 aa = (uint8_t*)state.fCache->findImage(glyph);
1531 return; // can't rasterize glyph
1535 mask.fRowBytes = glyph.rowBytes();
1536 mask.fFormat = static_cast<SkMask::Format>(glyph.fMaskFormat);
1543 const SkGlyph& glyph) {
1546 SkASSERT(glyph.fWidth > 0 && glyph.fHeight > 0);
1552 left += glyph.fLeft;
1553 top += glyph.fTop;
1555 mask.fBounds.set(left, top, left + glyph.fWidth, top + glyph.fHeight);
1560 const uint8_t* aa = (const uint8_t*)glyph.fImage;
1562 aa = (uint8_t*)state.fCache->findImage(glyph);
1568 mask.fRowBytes = glyph.rowBytes();
1569 mask.fFormat = static_cast<SkMask::Format>(glyph.fMaskFormat);
1580 const SkGlyph& glyph) {
1583 SkASSERT(glyph.fWidth > 0 && glyph.fHeight > 0);
1587 left += glyph.fLeft;
1588 top += glyph.fTop;
1590 mask.fBounds.set(left, top, left + glyph.fWidth, top + glyph.fHeight);
1595 const uint8_t* aa = (const uint8_t*)glyph.fImage;
1597 aa = (uint8_t*)state.fCache->findImage(glyph);
1606 left - glyph.fLeft,
1607 top - glyph.fTop, glyph)) {
1608 mask.fRowBytes = glyph.rowBytes();
1609 mask.fFormat = static_cast<SkMask::Format>(glyph.fMaskFormat);
1621 const SkGlyph& glyph) {
1625 bounds.set(left, top, left + glyph.fWidth, top + glyph.fHeight);
1627 if (state.fBounder->doIRectGlyph(bounds, left, top, glyph)) {
1628 D1G_NoBounder_RectClip(state, fx, fy, glyph);
1808 const SkGlyph& glyph = glyphCacheProc(cache, &text, fx & fxMask, fy & fyMask);
1812 fx += SkFixedMul_portable(autokern.adjust(glyph), fixedScale);
1814 fx += autokern.adjust(glyph);
1817 fx += autokern.adjust(glyph);
1820 if (glyph.fWidth) {
1821 proc(d1g, fx, fy, glyph);
1826 fx += SkFixedMul_portable(glyph.fAdvanceX, fixedScale);
1827 fy += SkFixedMul_portable(glyph.fAdvanceY, fixedScale);
1829 fx += glyph.fAdvanceX;
1830 fy += glyph.fAdvanceY;
1833 fx += glyph.fAdvanceX;
1834 fy += glyph.fAdvanceY;
1844 static void leftAlignProc(const SkPoint& loc, const SkGlyph& glyph, SkIPoint* dst) {
1848 static void centerAlignProc(const SkPoint& loc, const SkGlyph& glyph, SkIPoint* dst) {
1849 dst->set(SkScalarToFixed(loc.fX) - (glyph.fAdvanceX >> 1),
1850 SkScalarToFixed(loc.fY) - (glyph.fAdvanceY >> 1));
1853 static void rightAlignProc(const SkPoint& loc, const SkGlyph& glyph, SkIPoint* dst) {
1854 dst->set(SkScalarToFixed(loc.fX) - glyph.fAdvanceX,
1855 SkScalarToFixed(loc.fY) - glyph.fAdvanceY);
1870 static void leftAlignProc_scalar(const SkPoint& loc, const SkGlyph& glyph, SkPoint* dst) {
1874 static void centerAlignProc_scalar(const SkPoint& loc, const SkGlyph& glyph, SkPoint* dst) {
1875 dst->set(loc.fX - SkFixedToScalar(glyph.fAdvanceX >> 1),
1876 loc.fY - SkFixedToScalar(glyph.fAdvanceY >> 1));
1879 static void rightAlignProc_scalar(const SkPoint& loc, const SkGlyph& glyph, SkPoint* dst) {
1880 dst->set(loc.fX - SkFixedToScalar(glyph.fAdvanceX),
1881 loc.fY - SkFixedToScalar(glyph.fAdvanceY));
1975 const SkGlyph& glyph
1976 if (glyph.fWidth) {
1977 const SkPath* path = cache->findPath(glyph);
1981 alignProc(tms.fLoc, glyph, &loc);
2091 const SkGlyph& glyph = glyphCacheProc(cache, &text,
2094 if (glyph.fWidth) {
2095 proc(d1g, fx, fy, glyph);
2116 const SkGlyph& glyph = glyphCacheProc(cache, &currentText,
2119 SkASSERT(prevAdvX == glyph.fAdvanceX);
2120 SkASSERT(prevAdvY == glyph.fAdvanceY);
2121 SkASSERT(glyph.fWidth);
2123 proc(d1g, fx, fy, glyph);
2132 const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0);
2134 if (glyph.fWidth) {
2140 glyph);
2147 const SkGlyph& glyph = glyphCacheProc(cache, &text, 0, 0);
2149 if (glyph.fWidth) {
2153 alignProc(tms.fLoc, glyph, &fixedLoc);
2158 glyph);
2720 const SkGlyph& glyph) {
2727 rec.fRSB.set(rec.fLSB.fX + glyph.fAdvanceX,
2728 rec.fLSB.fY + glyph.fAdvanceY);
2729 rec.fGlyphID = glyph.getGlyphID();