Lines Matching refs:paint

22                            SkScalar y, const SkPaint& paint) {  in drawString()  argument
23 canvas->drawText(text.c_str(), text.size(), x, y, paint); in drawString()
24 return x + paint.measureText(text.c_str(), text.size()); in drawString()
28 SkScalar y, SkPaint& paint, SkFontMgr* fm, in drawCharacter() argument
36 SkSafeUnref(paint.setTypeface(typeface)); in drawCharacter()
37 x = drawString(canvas, ch, x, y, paint) + 20; in drawCharacter()
49 SkSafeUnref(paint.setTypeface(typefaceCopy)); in drawCharacter()
50 return drawString(canvas, ch, x, y, paint) + 20; in drawCharacter()
81 SkPaint paint; in onDraw() local
82 paint.setAntiAlias(true); in onDraw()
83 paint.setLCDRenderText(true); in onDraw()
84 paint.setSubpixelText(true); in onDraw()
85 paint.setTextSize(17); in onDraw()
93 paint.setTypeface(NULL); in onDraw()
94 (void)drawString(canvas, familyName, 20, y, paint); in onDraw()
105 SkSafeUnref(paint.setTypeface(set->createTypeface(j))); in onDraw()
106 x = drawString(canvas, sname, x, y, paint) + 20; in onDraw()
109 x = drawCharacter(canvas, 0x5203, x, y, paint, fm, familyName.c_str(), &zh, 1, fs); in onDraw()
110 x = drawCharacter(canvas, 0x5203, x, y, paint, fm, familyName.c_str(), &ja, 1, fs); in onDraw()
112 x = drawCharacter(canvas, 0x1f601, x, y, paint, fm, familyName.c_str(), NULL,0, fs); in onDraw()
141 void iterateFamily(SkCanvas* canvas, const SkPaint& paint, in iterateFamily() argument
143 SkPaint p(paint); in iterateFamily()
159 void exploreFamily(SkCanvas* canvas, const SkPaint& paint, in exploreFamily() argument
161 SkPaint p(paint); in exploreFamily()
180 SkPaint paint; in onDraw() local
181 paint.setAntiAlias(true); in onDraw()
182 paint.setLCDRenderText(true); in onDraw()
183 paint.setSubpixelText(true); in onDraw()
184 paint.setTextSize(17); in onDraw()
202 this->exploreFamily(canvas, paint, fset); in onDraw()
204 this->iterateFamily(canvas, paint, fset); in onDraw()
224 static void show_bounds(SkCanvas* canvas, const SkPaint& paint, SkScalar x, SkScalar y, in show_bounds() argument
229 canvas->drawText(&str[i], 1, x, y, paint); in show_bounds()
232 SkRect r = paint.getFontBounds(); in show_bounds()
234 SkPaint p(paint); in show_bounds()
249 SkPaint paint; in onDraw() local
250 paint.setAntiAlias(true); in onDraw()
251 paint.setSubpixelText(true); in onDraw()
252 paint.setTextSize(100); in onDraw()
253 paint.setStyle(SkPaint::kStroke_Style); in onDraw()
254 paint.setTextScaleX(fScaleX); in onDraw()
255 paint.setTextSkewX(fSkewX); in onDraw()
270 SkSafeUnref(paint.setTypeface(set->createTypeface(j))); in onDraw()
271 if (paint.getTypeface()) { in onDraw()
272 show_bounds(canvas, paint, x, y, boundsColors[index & 1]); in onDraw()