Lines Matching refs:paint
60 SkPaint paint;
61 paint.setAntiAlias(true);
62 paint.setSubpixelText(true);
64 sk_tool_utils::set_portable_typeface(&paint, "serif");
76 paint.setTextSize(textSizes[i]);
77 canvas->drawText(text, textLen, 0, 0, paint);
78 y += paint.getFontMetrics(nullptr)*scales[i];
90 paint.setTextSize(SkIntToScalar(ps));
91 canvas->drawText(text, textLen, rotX, rotY, paint);
92 rotY += paint.getFontMetrics(nullptr);
97 paint.setLCDRenderText(true);
106 paint.setTextSize(textSizes[i]);
107 canvas->drawText(text, textLen, 0, 0, paint);
108 y += paint.getFontMetrics(nullptr)*scaleFactor;
119 paint.setTextSize(textSizes[0]);
121 paint.getTextWidths(text, textLen, &widths[0]);
130 canvas->drawPosText(text, textLen, &pos[0], paint);
142 paint.setColor(0xFFF7F3F7);
144 canvas->drawRect(r, paint);
148 paint.setTextSize(SkIntToScalar(19));
150 paint.setColor(fg[i]);
152 canvas->drawText(text, textLen, x, y, paint);
153 y += paint.getFontMetrics(nullptr);
156 paint.setColor(0xFF181C18);
158 canvas->drawRect(r, paint);
162 paint.setTextSize(SkIntToScalar(19));
164 paint.setColor(fg[i]);
166 canvas->drawText(text, textLen, x, y, paint);
167 y += paint.getFontMetrics(nullptr);
172 paint.setLCDRenderText(false);
175 paint.setTextSize(SkIntToScalar(32));
176 canvas->drawText(text, textLen, 745, 70, paint);
179 paint.setLCDRenderText(true);
182 paint.setTextSize(SkIntToScalar(32));
183 canvas->drawText(text, textLen, 580, 125, paint);
188 paint.setTypeface(fEmojiTypeface);
189 paint.setTextSize(SkIntToScalar(19));
190 canvas->drawText(fEmojiText, strlen(fEmojiText), 670, 90, paint);