Searched refs:Slant (Results 1 – 11 of 11) sorted by relevance
/frameworks/base/libs/hwui/tests/unit/ |
D | TypefaceTests.cpp | 87 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, bold->fStyle.slant()); in TEST() 92 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, light->fStyle.slant()); in TEST() 100 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, normal->fStyle.slant()); in TEST() 106 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, bold->fStyle.slant()); in TEST() 112 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, italic->fStyle.slant()); in TEST() 118 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, boldItalic->fStyle.slant()); in TEST() 129 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, normal->fStyle.slant()); in TEST() 136 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, bold->fStyle.slant()); in TEST() 143 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, italic->fStyle.slant()); in TEST() 151 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, boldItalic->fStyle.slant()); in TEST() [all …]
|
/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 | Font.h | 85 Builder& setSlant(FontStyle::Slant slant) { in setSlant() 96 FontStyle::Slant mSlant = FontStyle::Slant::UPRIGHT;
|
/frameworks/minikin/libs/minikin/ |
D | FontFamily.cpp | 94 return FontStyle(static_cast<uint16_t>(weight), static_cast<FontStyle::Slant>(italic)); in analyzeStyle() 141 bool isFakeItalic = wanted.slant() == FontStyle::Slant::ITALIC && in computeFakery() 142 actual.slant() == FontStyle::Slant::UPRIGHT; in computeFakery()
|
/frameworks/minikin/tests/unittest/ |
D | FontFamilyTest.cpp | 646 const char* slantToString(FontStyle::Slant slant) { in slantToString() 647 if (slant == FontStyle::Slant::ITALIC) { in slantToString() 671 constexpr FontStyle::Slant UPRIGHT = FontStyle::Slant::UPRIGHT; in TEST_F() 672 constexpr FontStyle::Slant ITALIC = FontStyle::Slant::ITALIC; in TEST_F()
|
D | FontCollectionItemizeTest.cpp | 119 const FontStyle kItalicStyle = FontStyle(FontStyle::Slant::ITALIC); in TEST() 121 const FontStyle kBoldItalicStyle = FontStyle(FontStyle::Weight::BOLD, FontStyle::Slant::ITALIC); in TEST() 691 FontStyle kItalicStyle(FontStyle::Slant::ITALIC); in TEST() 692 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/native/android/ |
D | system_fonts.cpp | 228 weight, static_cast<minikin::FontStyle::Slant>(italic)); in AFontMatcher_setStyle() 262 result->mItalic = font->style().slant() == minikin::FontStyle::Slant::ITALIC; in AFontMatcher_match()
|
/frameworks/base/core/jni/android/graphics/fonts/ |
D | Font.cpp | 179 .setSlant(static_cast<minikin::FontStyle::Slant>(italic)).build(); in Font_Builder_build()
|
/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 | 141 fontBuilder.setSlant(static_cast<minikin::FontStyle::Slant>(italic != 0)); in addSkTypeface()
|