Home
last modified time | relevance | path

Searched refs:slant (Results 1 – 10 of 10) sorted by relevance

/frameworks/minikin/include/minikin/
DFontStyle.h45 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()
DFont.h72 mSlant = style.slant(); in setStyle()
85 Builder& setSlant(FontStyle::Slant slant) { in setSlant() argument
86 mSlant = slant; in setSlant()
/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/base/graphics/java/android/graphics/fonts/
DFontStyle.java207 public FontStyle(int weight, @FontSlant int slant) { in FontStyle() argument
210 Preconditions.checkArgument(slant == FONT_SLANT_UPRIGHT || slant == FONT_SLANT_ITALIC, in FontStyle()
213 mSlant = slant; in FontStyle()
DFont.java314 public @NonNull Builder setSlant(@FontStyle.FontSlant int slant) { in setSlant() argument
315 mItalic = slant == FontStyle.FONT_SLANT_UPRIGHT ? STYLE_NORMAL : STYLE_ITALIC; in setSlant()
380 final int slant = (mItalic == STYLE_ITALIC) in build() local
393 new FontStyle(mWeight, slant), mTtcIndex, mAxes, mLocaleList); in build()
/frameworks/minikin/libs/minikin/
DFontFamily.cpp52 mSlant = styleFromFont.slant(); in build()
130 if (style1.slant() != style2.slant()) { in computeMatch()
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() argument
647 if (slant == FontStyle::Slant::ITALIC) { in slantToString()
657 slantToString(style.slant())); in fontStyleToString()
/frameworks/base/libs/hwui/hwui/
DTypeface.cpp143 italicFromFont = style.slant() != SkFontStyle::kUpright_Slant; in createFromFamilies()
/frameworks/base/graphics/java/android/graphics/
DTypeface.java613 final int slant = mItalic == RESOLVE_BY_FONT_TABLE in build() local
616 .setStyle(new FontStyle(weight, slant)); in build()
/frameworks/base/native/android/
Dsystem_fonts.cpp262 result->mItalic = font->style().slant() == minikin::FontStyle::Slant::ITALIC; in AFontMatcher_match()