Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/tests/unit/
DTypefaceTests.cpp87 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/
DFontStyle.h38 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;
DFont.h85 Builder& setSlant(FontStyle::Slant slant) { in setSlant()
96 FontStyle::Slant mSlant = FontStyle::Slant::UPRIGHT;
/frameworks/minikin/libs/minikin/
DFontFamily.cpp94 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/
DFontFamilyTest.cpp646 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()
DFontCollectionItemizeTest.cpp119 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/
DFontTestUtils.cpp77 FontStyle::Slant italic = static_cast<FontStyle::Slant>( in getFontFamilies()
/frameworks/base/native/android/
Dsystem_fonts.cpp228 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/
DFont.cpp179 .setSlant(static_cast<minikin::FontStyle::Slant>(italic)).build(); in Font_Builder_build()
/frameworks/base/libs/hwui/hwui/
DTypeface.cpp48 static_cast<minikin::FontStyle::Slant>(italic)); in computeMinikinStyle()
/frameworks/base/core/jni/android/graphics/
DFontFamily.cpp141 fontBuilder.setSlant(static_cast<minikin::FontStyle::Slant>(italic != 0)); in addSkTypeface()