Lines Matching refs:paint
66 SkPaint paint; in onDraw() local
67 paint.setAntiAlias(true); in onDraw()
68 paint.setSubpixelText(true); in onDraw()
70 sk_tool_utils::set_portable_typeface(&paint, "serif", SkTypeface::kNormal); in onDraw()
82 paint.setTextSize(textSizes[i]); in onDraw()
83 canvas->drawText(text, textLen, 0, 0, paint); in onDraw()
84 y += paint.getFontMetrics(nullptr)*scales[i]; in onDraw()
96 paint.setTextSize(SkIntToScalar(ps)); in onDraw()
97 canvas->drawText(text, textLen, rotX, rotY, paint); in onDraw()
98 rotY += paint.getFontMetrics(nullptr); in onDraw()
103 paint.setLCDRenderText(true); in onDraw()
112 paint.setTextSize(textSizes[i]); in onDraw()
113 canvas->drawText(text, textLen, 0, 0, paint); in onDraw()
114 y += paint.getFontMetrics(nullptr)*scaleFactor; in onDraw()
125 paint.setTextSize(textSizes[0]); in onDraw()
127 paint.getTextWidths(text, textLen, &widths[0]); in onDraw()
136 canvas->drawPosText(text, textLen, &pos[0], paint); in onDraw()
148 paint.setColor(0xFFF7F3F7); in onDraw()
150 canvas->drawRect(r, paint); in onDraw()
154 paint.setTextSize(SkIntToScalar(19)); in onDraw()
156 paint.setColor(fg[i]); in onDraw()
158 canvas->drawText(text, textLen, x, y, paint); in onDraw()
159 y += paint.getFontMetrics(nullptr); in onDraw()
162 paint.setColor(0xFF181C18); in onDraw()
164 canvas->drawRect(r, paint); in onDraw()
168 paint.setTextSize(SkIntToScalar(19)); in onDraw()
170 paint.setColor(fg[i]); in onDraw()
172 canvas->drawText(text, textLen, x, y, paint); in onDraw()
173 y += paint.getFontMetrics(nullptr); in onDraw()
178 paint.setLCDRenderText(false); in onDraw()
181 paint.setTextSize(SkIntToScalar(32)); in onDraw()
182 canvas->drawText(text, textLen, 745, 70, paint); in onDraw()
185 paint.setLCDRenderText(true); in onDraw()
188 paint.setTextSize(SkIntToScalar(32)); in onDraw()
189 canvas->drawText(text, textLen, 580, 125, paint); in onDraw()
194 paint.setTypeface(fEmojiTypeface); in onDraw()
195 paint.setTextSize(SkIntToScalar(19)); in onDraw()
196 canvas->drawText(fEmojiText, strlen(fEmojiText), 670, 90, paint); in onDraw()