Searched refs:Slant (Results 1 – 12 of 12) sorted by relevance
/frameworks/minikin/include/minikin/ |
D | FontStyle.h | 42 enum class Slant : bool { enum 47 constexpr FontStyle() : FontStyle(Weight::NORMAL, Slant::UPRIGHT) {} in FontStyle() 48 constexpr explicit FontStyle(Weight weight) : FontStyle(weight, Slant::UPRIGHT) {} in FontStyle() 49 constexpr explicit FontStyle(Slant slant) : FontStyle(Weight::NORMAL, slant) {} in FontStyle() 50 constexpr FontStyle(Weight weight, Slant slant) in FontStyle() 52 constexpr FontStyle(uint16_t weight, Slant slant) : mWeight(weight), mSlant(slant) {} in FontStyle() 55 mSlant = static_cast<Slant>(reader->read<uint8_t>()); in FontStyle() 64 constexpr Slant slant() const { return mSlant; } in slant() 72 Slant mSlant; 75 inline std::ostream& operator<<(std::ostream& os, const FontStyle::Slant& slant) { [all …]
|
D | Font.h | 128 Builder& setSlant(FontStyle::Slant slant) { in setSlant() 144 FontStyle::Slant mSlant = FontStyle::Slant::UPRIGHT;
|
/frameworks/base/libs/hwui/tests/unit/ |
D | TypefaceTests.cpp | 94 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, bold->fStyle.slant()); in TEST() 99 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, light->fStyle.slant()); in TEST() 107 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, normal->fStyle.slant()); in TEST() 113 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, bold->fStyle.slant()); in TEST() 119 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, italic->fStyle.slant()); in TEST() 125 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, boldItalic->fStyle.slant()); in TEST() 136 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, normal->fStyle.slant()); in TEST() 143 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, bold->fStyle.slant()); in TEST() 150 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, italic->fStyle.slant()); in TEST() 158 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, boldItalic->fStyle.slant()); in TEST() [all …]
|
/frameworks/minikin/tests/util/ |
D | FontTestUtils.cpp | 77 FontStyle::Slant italic = static_cast<FontStyle::Slant>( in getFontFamilies()
|
/frameworks/minikin/tests/unittest/ |
D | FontFamilyTest.cpp | 771 const char* slantToString(FontStyle::Slant slant) { in slantToString() 772 if (slant == FontStyle::Slant::ITALIC) { in slantToString() 796 constexpr FontStyle::Slant UPRIGHT = FontStyle::Slant::UPRIGHT; in TEST_F() 797 constexpr FontStyle::Slant ITALIC = FontStyle::Slant::ITALIC; in TEST_F()
|
D | FontCollectionItemizeTest.cpp | 128 const FontStyle kItalicStyle = FontStyle(FontStyle::Slant::ITALIC); in TEST() 130 const FontStyle kBoldItalicStyle = FontStyle(FontStyle::Weight::BOLD, FontStyle::Slant::ITALIC); in TEST() 700 FontStyle kItalicStyle(FontStyle::Slant::ITALIC); in TEST() 701 FontStyle kBoldItalicStyle(FontStyle::Weight::BOLD, FontStyle::Slant::ITALIC); in TEST()
|
/frameworks/base/native/android/ |
D | system_fonts.cpp | 258 font->style().slant() == minikin::FontStyle::Slant::ITALIC, in ASystemFontIterator_open() 292 weight, static_cast<minikin::FontStyle::Slant>(italic)); in AFontMatcher_setStyle() 328 result->mItalic = font->style().slant() == minikin::FontStyle::Slant::ITALIC; in AFontMatcher_match()
|
/frameworks/minikin/libs/minikin/ |
D | FontFamily.cpp | 300 bool isFakeItalic = wanted.slant() == FontStyle::Slant::ITALIC && in computeFakery() 301 actual.slant() == FontStyle::Slant::UPRIGHT; in computeFakery() 325 const bool italic = style.slant() == FontStyle::Slant::ITALIC; in getVariationFamilyAdjustment()
|
D | Font.cpp | 250 return FontStyle(static_cast<uint16_t>(weight), static_cast<FontStyle::Slant>(italic)); in analyzeStyle()
|
/frameworks/base/libs/hwui/jni/fonts/ |
D | Font.cpp | 118 .setSlant(static_cast<minikin::FontStyle::Slant>(italic)) in Font_Builder_build() 148 .setSlant(static_cast<minikin::FontStyle::Slant>(italic)) in Font_Builder_clone() 264 uint32_t isItalic = font->font->style().slant() == minikin::FontStyle::Slant::ITALIC ? 1 : 0; in Font_getPackedStyle()
|
/frameworks/base/libs/hwui/jni/ |
D | FontFamily.cpp | 145 fontBuilder.setSlant(static_cast<minikin::FontStyle::Slant>(italic != 0)); in addSkTypeface()
|
/frameworks/base/libs/hwui/hwui/ |
D | Typeface.cpp | 51 static_cast<minikin::FontStyle::Slant>(italic)); in computeMinikinStyle()
|