Home
last modified time | relevance | path

Searched refs:italic (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/libs/hwui/hwui/
DTypeface.cpp40 static Typeface::Style computeAPIStyle(int weight, bool italic) { in computeAPIStyle() argument
43 return italic ? Typeface::kBoldItalic : Typeface::kBold; in computeAPIStyle()
45 return italic ? Typeface::kItalic : Typeface::kNormal; in computeAPIStyle()
49 static minikin::FontStyle computeMinikinStyle(int weight, bool italic) { in computeMinikinStyle() argument
51 static_cast<minikin::FontStyle::Slant>(italic)); in computeMinikinStyle()
60 bool italic = (relativeStyle & Typeface::kItalic) != 0; in computeRelativeStyle() local
61 return computeMinikinStyle(weight, italic); in computeRelativeStyle()
83 Typeface* Typeface::createAbsolute(Typeface* base, int weight, bool italic) { in createAbsolute() argument
89 result->fAPIStyle = computeAPIStyle(weight, italic); in createAbsolute()
90 result->fStyle = computeMinikinStyle(weight, italic); in createAbsolute()
[all …]
DTypeface.h75 static Typeface* createAbsolute(Typeface* base, int weight, bool italic);
81 std::vector<std::shared_ptr<minikin::FontFamily>>&& families, int weight, int italic,
/frameworks/base/libs/hwui/tests/unit/
DTypefaceTests.cpp117 std::unique_ptr<Typeface> italic(Typeface::createRelative(nullptr, Typeface::kItalic)); in TEST() local
118 EXPECT_EQ(400, italic->fStyle.weight()); in TEST()
119 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, italic->fStyle.slant()); in TEST()
120 EXPECT_EQ(Typeface::kItalic, italic->fAPIStyle); in TEST()
148 std::unique_ptr<Typeface> italic(Typeface::createRelative(base.get(), Typeface::kItalic)); in TEST() local
149 EXPECT_EQ(700, italic->fStyle.weight()); in TEST()
150 EXPECT_EQ(minikin::FontStyle::Slant::ITALIC, italic->fStyle.slant()); in TEST()
151 EXPECT_EQ(Typeface::kItalic, italic->fAPIStyle); in TEST()
181 std::unique_ptr<Typeface> italic(Typeface::createRelative(base.get(), Typeface::kItalic)); in TEST() local
182 EXPECT_EQ(300, italic->fStyle.weight()); in TEST()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
DTextAttribute.java31 public boolean italic; field in TextAttribute
37 FontSize size, boolean bold, boolean italic, boolean underlined, in TextAttribute() argument
44 this.italic = italic; in TextAttribute()
/frameworks/base/core/tests/coretests/src/android/graphics/
DFontFileUtilTest.java109 boolean italic = style.second.booleanValue(); in testRegularFonts()
110 String path = FontTestUtil.getFontPathFromStyle(weight, italic); in testRegularFonts()
115 assertEquals(path, italic, FontFileUtil.unpackItalic(packed)); in testRegularFonts()
126 boolean italic = style.second.booleanValue(); in testTtcFont()
127 int ttcIndex = FontTestUtil.getTtcIndexFromStyle(weight, italic); in testTtcFont()
131 assertEquals(path + "#" + ttcIndex, italic, FontFileUtil.unpackItalic(packed)); in testTtcFont()
142 boolean italic = style.second.booleanValue(); in testVariationFont()
143 String axes = FontTestUtil.getVarSettingsFromStyle(weight, italic); in testVariationFont()
148 assertEquals(path + "#" + axes, italic, FontFileUtil.unpackItalic(packed)); in testVariationFont()
DFontTestUtil.java184 public static int getTtcIndexFromStyle(int weight, boolean italic) { in getTtcIndexFromStyle() argument
185 return sTtcMap.get(new Pair<>(weight, italic)).intValue(); in getTtcIndexFromStyle()
191 public static String getVarSettingsFromStyle(int weight, boolean italic) { in getVarSettingsFromStyle() argument
192 return sVariationSettingsMap.get(new Pair<>(weight, italic)); in getVarSettingsFromStyle()
198 public static String getFontPathFromStyle(int weight, boolean italic) { in getFontPathFromStyle() argument
199 return sFontMap.get(new Pair<>(weight, italic)); in getFontPathFromStyle()
DTypefaceTest.java169 final boolean italic = random.nextBoolean(); in testMultithreadCacheStressTest()
170 final Typeface result = Typeface.create(base, weight, italic); in testMultithreadCacheStressTest()
171 assertEquals(italic, result.isItalic()); in testMultithreadCacheStressTest()
/frameworks/base/graphics/java/android/graphics/fonts/
DFontFileUtil.java60 private static int pack(@IntRange(from = 0, to = 1000) int weight, boolean italic) { in pack() argument
61 return weight | (italic ? 0x10000 : 0); in pack()
78 int italic = -1; in analyzeStyle() local
84 italic = (axis.getStyleValue() == 1.0f) ? 1 : 0; in analyzeStyle()
89 if (weight != -1 && italic != -1) { in analyzeStyle()
93 return pack(weight, italic == 1); in analyzeStyle()
135 italic == -1 ? italicFromOS2 : italic == 1); in analyzeStyle()
DFont.java468 final boolean italic = (mItalic == STYLE_ITALIC); in build()
483 ptr = nBuild(builderPtr, readonlyBuffer, filePath, mLocaleList, mWeight, italic, in build()
487 ptr = nClone(mFont.getNativePtr(), builderPtr, mWeight, italic, mTtcIndex); in build()
501 @NonNull String localeList, int weight, boolean italic, int ttcIndex); in nBuild() argument
505 boolean italic, int ttcIndex); in nClone() argument
/frameworks/base/graphics/java/android/graphics/
DTypeface.java554 public Builder setItalic(boolean italic) { in setItalic() argument
555 mItalic = italic ? FontStyle.FONT_SLANT_ITALIC : FontStyle.FONT_SLANT_UPRIGHT; in setItalic()
631 @Nullable FontVariationAxis[] axes, int weight, int italic, String fallback) { in createAssetUid() argument
645 builder.append(Integer.toString(italic)); in createAssetUid()
672 final boolean italic = in resolveFallbackTypeface()
674 return createWeightStyle(base, weight, italic); in resolveFallbackTypeface()
880 final int italic =
883 ptrArray, fallbackTypeface.native_instance, weight, italic), null);
991 @IntRange(from = 1, to = 1000) int weight, boolean italic) {
996 return createWeightStyle(family, weight, italic);
[all …]
DFontFamily.java144 int italic) { in addFont() argument
157 return nAddFont(mBuilderPtr, fontBuffer, ttcIndex, weight, italic); in addFont()
169 int weight, int italic) { in addFontFromBuffer() argument
178 return nAddFontWeightStyle(mBuilderPtr, font, ttcIndex, weight, italic); in addFontFromBuffer()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/player/platform/
DAndroidPaintContext.java347 public void setTypeFace(int fontType, int weight, boolean italic) { in applyPaint() argument
353 if (weight == 400 && !italic) { // for normal case in applyPaint()
357 weight, italic)); in applyPaint()
362 if (weight == 400 && !italic) { // for normal case in applyPaint()
366 weight, italic)); in applyPaint()
371 if (weight == 400 && !italic) { // for normal case in applyPaint()
376 weight, italic)); in applyPaint()
381 if (weight == 400 && !italic) { // for normal case in applyPaint()
386 weight, italic)); in applyPaint()
/frameworks/minikin/libs/minikin/
DFontUtils.cpp34 bool analyzeStyle(const uint8_t* os2_data, size_t os2_size, int* weight, bool* italic) { in analyzeStyle() argument
44 *italic = (fsSelection & kItalicFlag) != 0; in analyzeStyle()
DFontUtils.h25 bool analyzeStyle(const uint8_t* os2_data, size_t os2_size, int* weight, bool* italic);
DFont.cpp245 bool italic; in analyzeStyle() local
246 if (!::minikin::analyzeStyle(os2Table.get(), os2Table.size(), &weight, &italic)) { in analyzeStyle()
250 return FontStyle(static_cast<uint16_t>(weight), static_cast<FontStyle::Slant>(italic)); in analyzeStyle()
/frameworks/base/core/java/android/content/res/
DFontResourcesParser.java97 public FontFileResourceEntry(@NonNull String fileName, int weight, int italic, in FontFileResourceEntry() argument
101 mItalic = italic; in FontFileResourceEntry()
238 int italic = array.getInt(R.styleable.FontFamilyFont_fontStyle, in readFont() local
251 return new FontFileResourceEntry(filename, weight, italic, variationSettings, ttcIndex); in readFont()
/frameworks/base/core/java/android/text/style/
DStyleSpan.java171 boolean italic = (want & Typeface.ITALIC) != 0; in apply()
172 tf = Typeface.create(tf, newWeight, italic); in apply()
/frameworks/base/libs/hwui/jni/
DFontFamily.cpp115 jint weight, jint italic) { in addSkTypeface() argument
144 if (italic != RESOLVE_BY_FONT_TABLE) { in addSkTypeface()
145 fontBuilder.setSlant(static_cast<minikin::FontStyle::Slant>(italic != 0)); in addSkTypeface()
DTypeface.cpp67 jint weight, jboolean italic) { in Typeface_createFromTypefaceWithExactStyle() argument
68 return toJLong(Typeface::createAbsolute(toTypeface(nativeInstance), weight, italic)); in Typeface_createFromTypefaceWithExactStyle()
110 jlong fallbackPtr, int weight, int italic) { in Typeface_createFromArray() argument
119 return toJLong(Typeface::createFromFamilies(std::move(familyVec), weight, italic, typeface)); in Typeface_createFromArray()
/frameworks/native/include/android/
Dfont_matcher.h163 bool italic) __INTRODUCED_IN(29);
/frameworks/base/core/java/android/provider/
DFontsContract.java210 boolean italic, int resultCode) { in FontInfo() argument
215 mItalic = italic; in FontInfo()
880 boolean italic; in getFontFromProvider()
883 italic = cursor.getInt(italicColumnIndex) == 1; in getFontFromProvider()
886 italic = false; in getFontFromProvider()
890 result.add(new FontInfo(fileUri, ttcIndex, axes, weight, italic, resultCode)); in getFontFromProvider()
/frameworks/minikin/tests/util/
DFontTestUtils.cpp77 FontStyle::Slant italic = static_cast<FontStyle::Slant>( in getFontFamilies() local
93 FontStyle style(weight, italic); in getFontFamilies()
/frameworks/base/core/java/com/android/internal/widget/remotecompose/core/operations/paint/
DPaintChangeAdapter.java26 public void setTypeFace(int fontType, int weight, boolean italic) { in setTypeFace() argument
DPaintChanges.java191 void setTypeFace(int fontType, int weight, boolean italic); in setTypeFace() argument
DPaintBundle.java56 boolean italic = (style >> 10) > 0; in applyPaintChange()
59 p.setTypeFace(font_type, weight, italic); in applyPaintChange()
198 boolean italic = (style >> 10) > 0; in toString()
201 + weight + ", " + italic)); in toString()
665 public void setTextStyle(int fontType, int weight, boolean italic) { in setTextStyle() argument
666 int style = (weight & 0x3FF) | (italic ? 2048 : 0); // pack the weight and italic in setTextStyle()

12