Searched refs:slant (Results 1 – 6 of 6) sorted by relevance
/frameworks/minikin/include/minikin/ |
D | FontStyle.h | 45 constexpr explicit FontStyle(Slant slant) : FontStyle(Weight::NORMAL, slant) {} in FontStyle() argument 46 constexpr FontStyle(Weight weight, Slant slant) in FontStyle() argument 47 : FontStyle(static_cast<uint16_t>(weight), slant) {} in FontStyle() 48 constexpr FontStyle(uint16_t weight, Slant slant) : mWeight(weight), mSlant(slant) {} in FontStyle() argument 51 constexpr Slant slant() const { return mSlant; } in slant() function 54 return weight() == other.weight() && slant() == other.slant(); 58 return (static_cast<uint32_t>(weight()) << 16) | static_cast<uint32_t>(slant()); in identifier()
|
D | FontFamily.h | 67 mSlant = style.slant(); in setStyle() 80 Builder& setSlant(FontStyle::Slant slant) { in setSlant() argument 81 mSlant = slant; in setSlant()
|
/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 | 52 mSlant = styleFromFont.slant(); in build() 127 if (style1.slant() != style2.slant()) { in computeMatch() 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() argument 635 if (slant == FontStyle::Slant::ITALIC) { in slantToString() 645 slantToString(style.slant())); in fontStyleToString()
|
/frameworks/base/libs/hwui/hwui/ |
D | Typeface.cpp | 141 italicFromFont = style.slant() != SkFontStyle::kUpright_Slant; in createFromFamilies()
|