Searched refs:Slant (Results 1 – 9 of 9) sorted by relevance
/frameworks/minikin/include/minikin/ |
D | FontStyle.h | 38 enum class Slant : bool { enum 43 constexpr FontStyle() : FontStyle(Weight::NORMAL, Slant::UPRIGHT) {} in FontStyle() 44 constexpr explicit FontStyle(Weight weight) : FontStyle(weight, Slant::UPRIGHT) {} in FontStyle() 45 constexpr explicit FontStyle(Slant slant) : FontStyle(Weight::NORMAL, slant) {} in FontStyle() 46 constexpr FontStyle(Weight weight, Slant slant) in FontStyle() 48 constexpr FontStyle(uint16_t weight, Slant slant) : mWeight(weight), mSlant(slant) {} in FontStyle() 51 constexpr Slant slant() const { return mSlant; } in slant() 63 Slant mSlant;
|
D | FontFamily.h | 80 Builder& setSlant(FontStyle::Slant slant) { in setSlant() 91 FontStyle::Slant mSlant = FontStyle::Slant::UPRIGHT;
|
/frameworks/base/libs/hwui/tests/unit/ |
D | TypefaceTests.cpp | 86 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, bold->fStyle.slant()); in TEST() 91 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, light->fStyle.slant()); in TEST() 99 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, normal->fStyle.slant()); in TEST() 105 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, bold->fStyle.slant()); in TEST() 111 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, italic->fStyle.slant()); in TEST() 117 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, boldItalic->fStyle.slant()); in TEST() 128 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, normal->fStyle.slant()); in TEST() 135 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, bold->fStyle.slant()); in TEST() 142 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, italic->fStyle.slant()); in TEST() 150 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, boldItalic->fStyle.slant()); in TEST() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | FontFamily.cpp | 94 return FontStyle(static_cast<uint16_t>(weight), static_cast<FontStyle::Slant>(italic)); in analyzeStyle() 138 bool isFakeItalic = wanted.slant() == FontStyle::Slant::ITALIC && in computeFakery() 139 actual.slant() == FontStyle::Slant::UPRIGHT; in computeFakery()
|
/frameworks/minikin/tests/unittest/ |
D | FontFamilyTest.cpp | 634 const char* slantToString(FontStyle::Slant slant) { in slantToString() 635 if (slant == FontStyle::Slant::ITALIC) { in slantToString() 659 constexpr FontStyle::Slant UPRIGHT = FontStyle::Slant::UPRIGHT; in TEST_F() 660 constexpr FontStyle::Slant ITALIC = FontStyle::Slant::ITALIC; in TEST_F()
|
D | FontCollectionItemizeTest.cpp | 107 const FontStyle kItalicStyle = FontStyle(FontStyle::Slant::ITALIC); in TEST() 109 const FontStyle kBoldItalicStyle = FontStyle(FontStyle::Weight::BOLD, FontStyle::Slant::ITALIC); in TEST() 687 FontStyle kItalicStyle(FontStyle::Slant::ITALIC); in TEST() 688 FontStyle kBoldItalicStyle(FontStyle::Weight::BOLD, FontStyle::Slant::ITALIC); in TEST()
|
/frameworks/minikin/tests/util/ |
D | FontTestUtils.cpp | 77 FontStyle::Slant italic = static_cast<FontStyle::Slant>( in getFontFamilies()
|
/frameworks/base/libs/hwui/hwui/ |
D | Typeface.cpp | 48 static_cast<minikin::FontStyle::Slant>(italic)); in computeMinikinStyle()
|
/frameworks/base/core/jni/android/graphics/ |
D | FontFamily.cpp | 140 fontBuilder.setSlant(static_cast<minikin::FontStyle::Slant>(italic != 0)); in addSkTypeface()
|