Home
last modified time | relevance | path

Searched refs:setTypeface (Results 1 – 25 of 139) 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/gm/
Dfilterbitmap.cpp26 static void setTypeface(SkFont* font, const char name[], SkFontStyle style) { in setTypeface() function
27 font->setTypeface(ToolUtils::create_portable_typeface(name, style)); in setTypeface()
120 setTypeface(&font, "serif", SkFontStyle::Normal()); in makeBitmap()
122 setTypeface(&font, "serif", SkFontStyle::Bold()); in makeBitmap()
124 setTypeface(&font, "serif", SkFontStyle::Italic()); in makeBitmap()
126 setTypeface(&font, "serif", SkFontStyle::BoldItalic()); in makeBitmap()
Dfontmgr.cpp52 font.setTypeface(typeface); in drawCharacter()
64 font.setTypeface(fm->legacyMakeTypeface(familyName.c_str(), typeface->fontStyle())); in drawCharacter()
96 font.setTypeface(nullptr); in onDraw()
108 font.setTypeface(sk_sp<SkTypeface>(set->createTypeface(j))); in onDraw()
145 f.setTypeface(sk_sp<SkTypeface>(fset->createTypeface(j))); in iterateFamily()
162 f.setTypeface(std::move(face)); in exploreFamily()
281 labelFont.setTypeface(ToolUtils::create_portable_typeface()); in show_bounds()
329 font.setTypeface(sk_sp<SkTypeface>(set->createTypeface(j))); in onDraw()
Ddownsamplebitmap.cpp105 font.setTypeface(ToolUtils::create_portable_typeface("serif", SkFontStyle())); in make_text()
107 font.setTypeface(ToolUtils::create_portable_typeface("serif", SkFontStyle::Bold())); in make_text()
109 font.setTypeface(ToolUtils::create_portable_typeface("serif", SkFontStyle::Italic())); in make_text()
111 font.setTypeface(ToolUtils::create_portable_typeface("serif", SkFontStyle::BoldItalic())); in make_text()
Dtextblobrandomfont.cpp62 font.setTypeface(sk_make_sp<SkRandomTypeface>(std::move(typeface), paint, false)); in onOnceBeforeDraw()
89 font.setTypeface(sk_make_sp<SkRandomTypeface>(origEmoji, paint, false)); in onOnceBeforeDraw()
Dvariedtext.cpp94 fFont.setTypeface(fTypefaces[fTypefaceIndices[i]]); in onOnceBeforeDraw()
123 fFont.setTypeface(fTypefaces[fTypefaceIndices[i]]); in onDraw()
Dmixedtextblobs.cpp93 font.setTypeface(fEmojiTypeface); in onOnceBeforeDraw()
101 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/examples/android/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/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.cpp102 font.setTypeface(orig); in text_blob_cache_inner()
104 font.setTypeface(sk_make_sp<SkRandomTypeface>(orig, SkPaint(), true)); in text_blob_cache_inner()
213 font.setTypeface(tf); in make_blob()
/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()
/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.cpp83 fFont.setTypeface(font.refTypefaceOrDefault()); in FontMgrRunIterator()
84 fFallbackFont.setTypeface(nullptr); in FontMgrRunIterator()
109 fFallbackFont.setTypeface(std::move(candidate)); in consume()
/external/skia/bench/
DSkGlyphCacheBench.cpp62 font.setTypeface(ToolUtils::create_portable_typeface("serif", SkFontStyle::Italic())); in onDraw()
102 font.setTypeface(typefaces[threadIndex % 2]); in onDraw()

123456