Home
last modified time | relevance | path

Searched refs:setTypeface (Results 1 – 25 of 138) sorted by relevance

123456

/external/skqp/gm/
Dfilterbitmap.cpp16 static void setTypeface(SkFont* font, const char name[], SkFontStyle style) { in setTypeface() function
17 font->setTypeface(sk_tool_utils::create_portable_typeface(name, style)); in setTypeface()
127 setTypeface(&font, "serif", SkFontStyle::Normal()); in makeBitmap()
129 setTypeface(&font, "serif", SkFontStyle::Bold()); in makeBitmap()
131 setTypeface(&font, "serif", SkFontStyle::Italic()); in makeBitmap()
133 setTypeface(&font, "serif", SkFontStyle::BoldItalic()); in makeBitmap()
Dfontmgr.cpp38 font.setTypeface(typeface); in drawCharacter()
50 font.setTypeface(fm->legacyMakeTypeface(familyName.c_str(), typeface->fontStyle())); in drawCharacter()
89 font.setTypeface(nullptr); in onDraw()
101 font.setTypeface(sk_sp<SkTypeface>(set->createTypeface(j))); in onDraw()
150 f.setTypeface(sk_sp<SkTypeface>(fset->createTypeface(j))); in iterateFamily()
167 f.setTypeface(std::move(face)); in exploreFamily()
276 labelFont.setTypeface(sk_tool_utils::create_portable_typeface()); in show_bounds()
332 font.setTypeface(sk_sp<SkTypeface>(set->createTypeface(j))); in onDraw()
Ddownsamplebitmap.cpp90 font.setTypeface(sk_tool_utils::create_portable_typeface("serif", SkFontStyle())); in make_text()
92 font.setTypeface(sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Bold())); in make_text()
94 font.setTypeface(sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Italic())); in make_text()
96 font.setTypeface(sk_tool_utils::create_portable_typeface("serif", SkFontStyle::BoldItalic())); in make_text()
Dfontscalerdistortable.cpp60 font.setTypeface(sk_sp<SkTypeface>( in onDraw()
64 font.setTypeface(sk_sp<SkTypeface>(fontMgr->makeFromStream( in onDraw()
Dtextblobrandomfont.cpp49 font.setTypeface(sk_make_sp<SkRandomTypeface>(std::move(typeface), paint, false)); in onOnceBeforeDraw()
76 font.setTypeface(sk_make_sp<SkRandomTypeface>(origEmoji, paint, false)); in onOnceBeforeDraw()
Dvariedtext.cpp83 fFont.setTypeface(fTypefaces[fTypefaceIndices[i]]); in onOnceBeforeDraw()
112 fFont.setTypeface(fTypefaces[fTypefaceIndices[i]]); in onDraw()
Dmixedtextblobs.cpp83 font.setTypeface(fEmojiTypeface); in onOnceBeforeDraw()
93 font.setTypeface(fReallyBigATypeface); in onOnceBeforeDraw()
/external/skia/docs/examples/
DPaint_setTypeface.cpp9 paint.setTypeface(SkTypeface::MakeFromName("monospace", SkFontStyle()));
11 paint.setTypeface(nullptr);
DTypeface_Methods.cpp9 paint.setTypeface(SkTypeface::MakeFromName(nullptr, SkFontStyle()));
13 paint.setTypeface(nullptr);
DPaint_refTypeface.cpp9 paint1.setTypeface(SkTypeface::MakeFromName("monospace",
14 paint2.setTypeface(paint1.refTypeface());
DPaint_getTypeface.cpp10 paint.setTypeface(SkTypeface::MakeFromName("monospace", SkFontStyle()));
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/env/
DBorderedText.java73 public void setTypeface(Typeface typeface) { in setTypeface() method in BorderedText
74 interiorPaint.setTypeface(typeface); in setTypeface()
75 exteriorPaint.setTypeface(typeface); in setTypeface()
/external/skia/gm/
Dfontmgr.cpp53 font.setTypeface(typeface); in drawCharacter()
65 font.setTypeface(fm->legacyMakeTypeface(familyName.c_str(), typeface->fontStyle())); in drawCharacter()
97 font.setTypeface(nullptr); in onDraw()
109 font.setTypeface(sk_sp<SkTypeface>(set->createTypeface(j))); in onDraw()
146 f.setTypeface(sk_sp<SkTypeface>(fset->createTypeface(j))); in iterateFamily()
163 f.setTypeface(std::move(face)); in exploreFamily()
297 labelFont.setTypeface(ToolUtils::create_portable_typeface()); in show_bounds()
349 font.setTypeface(sk_sp<SkTypeface>(set->createTypeface(j))); in onDraw()
Dtextblobrandomfont.cpp63 font.setTypeface(sk_make_sp<SkRandomTypeface>(std::move(typeface), paint, false)); in onOnceBeforeDraw()
90 font.setTypeface(sk_make_sp<SkRandomTypeface>(origEmoji, paint, false)); in onOnceBeforeDraw()
Dvariedtext.cpp94 fFont.setTypeface(fTypefaces[fTypefaceIndices[i]]); in onOnceBeforeDraw()
121 fFont.setTypeface(fTypefaces[fTypefaceIndices[i]]); in onDraw()
Dmixedtextblobs.cpp93 font.setTypeface(fEmojiTypeface); in onOnceBeforeDraw()
101 font.setTypeface(fReallyBigATypeface); in onOnceBeforeDraw()
Dscaledemoji.cpp115 font.setTypeface(fEmojiFont.fTypeface); in onDraw()
175 font.setTypeface(fEmojiFont.fTypeface); in onDraw()
/external/skqp/tests/
DSerialProcsTest.cpp186 font.setTypeface(tf0); canvas->drawString("hello", 0, 0, font, paint); in make_picture()
187 font.setTypeface(tf1); canvas->drawString("hello", 0, 0, font, paint); in make_picture()
188 font.setTypeface(tf0); canvas->drawString("hello", 0, 0, font, paint); in make_picture()
189 font.setTypeface(tf1); canvas->drawString("hello", 0, 0, font, paint); in make_picture()
DTextBlobCacheTest.cpp99 font.setTypeface(orig); in text_blob_cache_inner()
101 font.setTypeface(sk_make_sp<SkRandomTypeface>(orig, SkPaint(), true)); in text_blob_cache_inner()
DSkRemoteGlyphCacheTest.cpp72 font.setTypeface(tf); in buildTextBlob()
443 font.setTypeface(targetTf); in make_blob_causing_fallback()
639 font.setTypeface(clientTf); in DEF_TEST()
767 font.setTypeface(serverTf); in DEF_TEST()
786 font.setTypeface(clientTf); in DEF_TEST()
806 font.setTypeface(serverTf); in DEF_TEST()
825 font.setTypeface(clientTf); in DEF_TEST()
/external/skia/tests/
DSerialProcsTest.cpp185 font.setTypeface(tf0); canvas->drawString("hello", 0, 0, font, paint); in make_picture()
186 font.setTypeface(tf1); canvas->drawString("hello", 0, 0, font, paint); in make_picture()
187 font.setTypeface(tf0); canvas->drawString("hello", 0, 0, font, paint); in make_picture()
188 font.setTypeface(tf1); canvas->drawString("hello", 0, 0, font, paint); in make_picture()
DTextBlobCacheTest.cpp115 font.setTypeface(orig); in text_blob_cache_inner()
117 font.setTypeface(sk_make_sp<SkRandomTypeface>(orig, SkPaint(), true)); in text_blob_cache_inner()
226 font.setTypeface(tf); in make_blob()
250 font.setTypeface(tf);
DSkStrikeCacheTest.cpp22 font.setTypeface(typeface); in DEF_TEST()
/external/skqp/bench/
DSkGlyphCacheBench.cpp61 font.setTypeface(sk_tool_utils::create_portable_typeface("serif", SkFontStyle::Italic())); in onDraw()
101 font.setTypeface(typefaces[threadIndex % 2]); in onDraw()
/external/skia/modules/skshaper/src/
DSkShaper.cpp104 fFont.setTypeface(font.refTypefaceOrDefault()); in FontMgrRunIterator()
105 fFallbackFont.setTypeface(nullptr); in FontMgrRunIterator()
130 fFallbackFont.setTypeface(std::move(candidate)); in consume()

123456