Home
last modified time | relevance | path

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

/frameworks/minikin/include/minikin/
DFontStyle.h40 enum class Slant : bool { enum
45 constexpr FontStyle() : FontStyle(Weight::NORMAL, Slant::UPRIGHT) {} in FontStyle()
46 constexpr explicit FontStyle(Weight weight) : FontStyle(weight, Slant::UPRIGHT) {} in FontStyle()
47 constexpr explicit FontStyle(Slant slant) : FontStyle(Weight::NORMAL, slant) {} in FontStyle()
48 constexpr FontStyle(Weight weight, Slant slant) in FontStyle()
50 constexpr FontStyle(uint16_t weight, Slant slant) : mWeight(weight), mSlant(slant) {} in FontStyle()
53 mSlant = static_cast<Slant>(reader->read<uint8_t>()); in FontStyle()
62 constexpr Slant slant() const { return mSlant; } in slant()
74 Slant mSlant;
DFont.h91 Builder& setSlant(FontStyle::Slant slant) { in setSlant()
107 FontStyle::Slant mSlant = FontStyle::Slant::UPRIGHT;
/frameworks/base/libs/hwui/tests/unit/
DTypefaceTests.cpp89 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, bold->fStyle.slant()); in TEST()
94 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, light->fStyle.slant()); in TEST()
102 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, normal->fStyle.slant()); in TEST()
108 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, bold->fStyle.slant()); in TEST()
114 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, italic->fStyle.slant()); in TEST()
120 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, boldItalic->fStyle.slant()); in TEST()
131 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, normal->fStyle.slant()); in TEST()
138 EXPECT_EQ(minikin::FontStyle::Slant::UPRIGHT, bold->fStyle.slant()); in TEST()
145 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, italic->fStyle.slant()); in TEST()
153 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, boldItalic->fStyle.slant()); in TEST()
[all …]
/frameworks/minikin/tests/util/
DFontTestUtils.cpp77 FontStyle::Slant italic = static_cast<FontStyle::Slant>( in getFontFamilies()
/frameworks/minikin/tests/unittest/
DFontFamilyTest.cpp684 const char* slantToString(FontStyle::Slant slant) { in slantToString()
685 if (slant == FontStyle::Slant::ITALIC) { in slantToString()
709 constexpr FontStyle::Slant UPRIGHT = FontStyle::Slant::UPRIGHT; in TEST_F()
710 constexpr FontStyle::Slant ITALIC = FontStyle::Slant::ITALIC; in TEST_F()
DFontCollectionItemizeTest.cpp128 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/minikin/libs/minikin/
DFontFamily.cpp148 bool isFakeItalic = wanted.slant() == FontStyle::Slant::ITALIC && in computeFakery()
149 actual.slant() == FontStyle::Slant::UPRIGHT; in computeFakery()
DFont.cpp112 return FontStyle(static_cast<uint16_t>(weight), static_cast<FontStyle::Slant>(italic)); in analyzeStyle()
/frameworks/base/native/android/
Dsystem_fonts.cpp268 font->style().slant() == minikin::FontStyle::Slant::ITALIC, in ASystemFontIterator_open()
304 weight, static_cast<minikin::FontStyle::Slant>(italic)); in AFontMatcher_setStyle()
340 result->mItalic = font->style().slant() == minikin::FontStyle::Slant::ITALIC; in AFontMatcher_match()
/frameworks/base/libs/hwui/jni/fonts/
DFont.cpp116 .setSlant(static_cast<minikin::FontStyle::Slant>(italic)) in Font_Builder_build()
146 .setSlant(static_cast<minikin::FontStyle::Slant>(italic)) in Font_Builder_clone()
262 uint32_t isItalic = font->font->style().slant() == minikin::FontStyle::Slant::ITALIC ? 1 : 0; in Font_getPackedStyle()
/frameworks/base/libs/hwui/hwui/
DTypeface.cpp50 static_cast<minikin::FontStyle::Slant>(italic)); in computeMinikinStyle()
/frameworks/base/libs/hwui/jni/
DFontFamily.cpp143 fontBuilder.setSlant(static_cast<minikin::FontStyle::Slant>(italic != 0)); in addSkTypeface()