Home
last modified time | relevance | path

Searched refs:SkTypeface (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DTypefaceTests.cpp55 sk_sp<SkTypeface> typeface(fm->createFromStream(fontData.release())); in buildFamily()
86 EXPECT_EQ(SkTypeface::kNormal, bold->fSkiaStyle); in TEST()
91 EXPECT_EQ(SkTypeface::kNormal, light->fSkiaStyle); in TEST()
96 std::unique_ptr<Typeface> normal(Typeface::createRelative(nullptr, SkTypeface::kNormal)); in TEST()
99 EXPECT_EQ(SkTypeface::kNormal, normal->fSkiaStyle); in TEST()
102 std::unique_ptr<Typeface> bold(Typeface::createRelative(nullptr, SkTypeface::kBold)); in TEST()
105 EXPECT_EQ(SkTypeface::kBold, bold->fSkiaStyle); in TEST()
108 std::unique_ptr<Typeface> italic(Typeface::createRelative(nullptr, SkTypeface::kItalic)); in TEST()
111 EXPECT_EQ(SkTypeface::kItalic, italic->fSkiaStyle); in TEST()
115 Typeface::createRelative(nullptr, SkTypeface::kBoldItalic)); in TEST()
[all …]
/frameworks/base/libs/hwui/hwui/
DTypeface.cpp43 static SkTypeface::Style computeSkiaStyle(int weight, bool italic) { in computeSkiaStyle()
46 return italic ? SkTypeface::kBoldItalic : SkTypeface::kBold; in computeSkiaStyle()
48 return italic ? SkTypeface::kItalic : SkTypeface::kNormal; in computeSkiaStyle()
59 static minikin::FontStyle computeRelativeStyle(int baseWeight, SkTypeface::Style relativeStyle) { in computeRelativeStyle()
61 if ((relativeStyle & SkTypeface::kBold) != 0) { in computeRelativeStyle()
64 bool italic = (relativeStyle & SkTypeface::kItalic) != 0; in computeRelativeStyle()
75 Typeface* Typeface::createRelative(Typeface* src, SkTypeface::Style style) { in createRelative()
146 SkTypeface* skTypeface = reinterpret_cast<const MinikinFontSkia*>(mf)->GetSkTypeface(); in createFromFamilies()
188 sk_sp<SkTypeface> typeface = SkTypeface::MakeFromStream(fontData.release()); in setRobotoTypefaceForTest()
200 hwTypeface->fSkiaStyle = SkTypeface::kNormal; in setRobotoTypefaceForTest()
DMinikinSkia.h25 class SkTypeface; variable
31 explicit MinikinFontSkia(sk_sp<SkTypeface> typeface, const void* fontData, size_t fontSize,
40 SkTypeface* GetSkTypeface() const;
41 sk_sp<SkTypeface> RefSkTypeface() const;
58 sk_sp<SkTypeface> mTypeface;
DMinikinSkia.cpp27 MinikinFontSkia::MinikinFontSkia(sk_sp<SkTypeface> typeface, const void* fontData, size_t fontSize, in MinikinFontSkia()
70 SkTypeface *MinikinFontSkia::GetSkTypeface() const { in GetSkTypeface()
74 sk_sp<SkTypeface> MinikinFontSkia::RefSkTypeface() const { in RefSkTypeface()
111 sk_sp<SkTypeface> face(fm->createFromStream(stream, params)); in createFontWithVariation()
DTypeface.h42 SkTypeface::Style fSkiaStyle;
71 static Typeface* createRelative(Typeface* src, SkTypeface::Style desiredStyle);
/frameworks/base/core/jni/android/graphics/
DTypeface.cpp33 Typeface* face = Typeface::createRelative(family, (SkTypeface::Style)style); in Typeface_createFromTypeface()
37 face = Typeface::createRelative(family, (SkTypeface::Style)(style ^ SkTypeface::kItalic)); in Typeface_createFromTypeface()
40 face = Typeface::createRelative(family, (SkTypeface::Style)i); in Typeface_createFromTypeface()
DHarfBuzzNGFaceSkia.cpp143 SkTypeface* typeface = reinterpret_cast<SkTypeface*>(userData); in harfbuzzSkiaReferenceTable()
DFontFamily.cpp114 sk_sp<SkTypeface> face(fm->createFromStream(fontData.release(), params)); in addSkTypeface()
/frameworks/minikin/tests/util/
DMinikinFontForTest.h22 class SkTypeface; variable
/frameworks/base/libs/hwui/
DTextDropShadowCache.h83 SkTypeface* typeface;
/frameworks/base/libs/hwui/font/
DFont.cpp46 mFontId = SkTypeface::UniqueID(paint->getTypeface()); in FontDescription()