Searched refs:italic (Results 1 - 23 of 23) sorted by relevance

/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DTextAttribute.java31 public boolean italic; field in class:TextAttribute
37 FontSize size, boolean bold, boolean italic, boolean underlined,
44 this.italic = italic;
36 TextAttribute(int start, int length, TextAlignment align, FontSize size, boolean bold, boolean italic, boolean underlined, boolean strikeThrough, TextColor color) argument
H A DValueParser.java246 boolean italic = (format & 0x20) != 0;
253 align, size, bold, italic, underlined,
/frameworks/base/libs/hwui/hwui/
H A DTypeface.cpp43 static SkTypeface::Style computeSkiaStyle(int weight, bool italic) { argument
46 return italic ? SkTypeface::kBoldItalic : SkTypeface::kBold;
48 return italic ? SkTypeface::kItalic : SkTypeface::kNormal;
52 static minikin::FontStyle computeMinikinStyle(int weight, bool italic) { argument
55 return minikin::FontStyle(minikinWeight, italic);
64 bool italic = (relativeStyle & SkTypeface::kItalic) != 0; local
65 return computeMinikinStyle(weight, italic);
87 Typeface* Typeface::createAbsolute(Typeface* base, int weight, bool italic) { argument
93 result->fSkiaStyle = computeSkiaStyle(weight, italic);
94 result->fStyle = computeMinikinStyle(weight, italic);
132 createFromFamilies( std::vector<std::shared_ptr<minikin::FontFamily>>&& families, int weight, int italic) argument
[all...]
H A DTypeface.h30 // This indicates that the weight or italic information should be resolved by OS/2 table.
72 static Typeface* createAbsolute(Typeface* base, int weight, bool italic);
79 int weight, int italic);
/frameworks/minikin/libs/minikin/
H A DFontUtils.h24 bool analyzeStyle(const uint8_t* os2_data, size_t os2_size, int* weight, bool* italic);
H A DFontFamily.cpp43 FontStyle::FontStyle(int variant, int weight, bool italic) argument
44 : FontStyle(FontLanguageListCache::kEmptyListId, variant, weight, italic) {
47 FontStyle::FontStyle(uint32_t languageListId, int variant, int weight, bool italic) argument
48 : bits(pack(variant, weight, italic)), mLanguageListId(languageListId) {
64 uint32_t FontStyle::pack(int variant, int weight, bool italic) { argument
65 return (weight & kWeightMask) | (italic ? kItalicMask : 0) | (variant << kVariantShift);
113 bool* italic) {
118 return ::minikin::analyzeStyle(os2Table.get(), os2Table.size(), weight, italic);
112 analyzeStyle(const std::shared_ptr<MinikinFont>& typeface, int* weight, bool* italic) argument
H A DFontUtils.cpp33 bool analyzeStyle(const uint8_t* os2_data, size_t os2_size, int* weight, bool* italic) { argument
43 *italic = (fsSelection & kItalicFlag) != 0;
/frameworks/base/libs/hwui/tests/unit/
H A DTypefaceTests.cpp108 std::unique_ptr<Typeface> italic(Typeface::createRelative(nullptr, SkTypeface::kItalic));
109 EXPECT_EQ(4, italic->fStyle.getWeight());
110 EXPECT_TRUE(italic->fStyle.getItalic());
111 EXPECT_EQ(SkTypeface::kItalic, italic->fSkiaStyle);
137 std::unique_ptr<Typeface> italic(Typeface::createRelative(base.get(), SkTypeface::kItalic));
138 EXPECT_EQ(7, italic->fStyle.getWeight());
139 EXPECT_TRUE(italic->fStyle.getItalic());
140 EXPECT_EQ(SkTypeface::kItalic, italic->fSkiaStyle);
166 std::unique_ptr<Typeface> italic(Typeface::createRelative(base.get(), SkTypeface::kItalic));
167 EXPECT_EQ(3, italic
[all...]
/frameworks/minikin/include/minikin/
H A DFontFamily.h40 FontStyle() : FontStyle(0 /* variant */, 4 /* weight */, false /* italic */) {}
41 FontStyle(int weight, bool italic) : FontStyle(0 /* variant */, weight, italic) {} argument
43 : FontStyle(langListId, 0 /* variant */, 4 /* weight */, false /* italic */) {}
45 FontStyle(int variant, int weight, bool italic);
46 FontStyle(uint32_t langListId, int variant, int weight, bool italic);
68 static uint32_t pack(int variant, int weight, bool italic);
84 // attributes representing transforms (fake bold, fake italic) to match styles
131 bool* italic);
/frameworks/layoutlib/bridge/src/android/graphics/
H A DTypeface_Delegate.java170 int weight, boolean italic) {
179 int style = weight >= 600 ? (italic ? Typeface.BOLD_ITALIC : Typeface.BOLD) :
180 (italic ? Typeface.ITALIC : Typeface.NORMAL);
218 int italic) {
226 if (italic == Typeface.RESOLVE_BY_FONT_TABLE) {
227 italic = 0;
229 int style = weight >= 600 ? (italic == 1 ? Typeface.BOLD_ITALIC : Typeface.BOLD) :
230 (italic == 1 ? Typeface.ITALIC : Typeface.NORMAL);
169 nativeCreateFromTypefaceWithExactStyle(long native_instance, int weight, boolean italic) argument
217 nativeCreateFromArray(long[] familyArray, int weight, int italic) argument
H A DFontFamily_Delegate.java254 FontVariationAxis[] axes, int weight, int italic) {
260 return delegate != null && delegate.addFont(path, ttcIndex, weight, italic);
314 int italic = isItalic ? 1 : 0;
317 delegate.mPostInitRunnables.add(() -> delegate.addFont(path, weight, italic));
320 return delegate.addFont(path, weight, italic);
431 private boolean addFont(final String path, int ttcIndex, int weight, int italic) { argument
434 mPostInitRunnables.add(() -> addFont(path, weight, italic));
437 return addFont(path, weight, italic);
444 private boolean addFont(@NonNull String path, int weight, int italic) { argument
458 fontInfo.mIsItalic = italic
253 addFont(FontFamily thisFontFamily, String path, int ttcIndex, FontVariationAxis[] axes, int weight, int italic) argument
[all...]
/frameworks/minikin/tests/util/
H A DFontTestUtils.cpp58 bool italic = xmlStrcmp( local
59 xmlGetProp(fontNode, (const xmlChar*)"style"), (const xmlChar*)"italic") == 0;
74 fonts.push_back(Font(minikinFont, FontStyle(weight, italic)));
78 fonts.push_back(Font(minikinFont, FontStyle(weight, italic)));
/frameworks/base/graphics/java/android/graphics/
H A DFontFamily.java93 int italic) {
106 return nAddFont(mBuilderPtr, fontBuffer, ttcIndex, weight, italic);
114 int weight, int italic) {
123 return nAddFontWeightStyle(mBuilderPtr, font, ttcIndex, weight, italic);
132 * @param weight The weight of the font. If 0 is given, the weight and italic will be resolved
134 * @param isItalic Whether this font is italic. If the weight is set to 0, this will be resolved
191 // By passing -1 to italic argument, the italic value is resolved by OS/2 table in the font.
92 addFont(String path, int ttcIndex, FontVariationAxis[] axes, int weight, int italic) argument
113 addFontFromBuffer(ByteBuffer font, int ttcIndex, FontVariationAxis[] axes, int weight, int italic) argument
H A DTypeface.java128 // Value for weight and italic. Indicates the value is resolved by font metadata.
170 RESOLVE_BY_FONT_TABLE /* weight */, RESOLVE_BY_FONT_TABLE /* italic */);
178 RESOLVE_BY_FONT_TABLE /* italic */, null /* axes */)) {
249 RESOLVE_BY_FONT_TABLE /* italic */);
264 RESOLVE_BY_FONT_TABLE /* weight */, RESOLVE_BY_FONT_TABLE /* italic */);
301 * builder.setItalic(true); // Tell the system that this is an italic style font.
375 * weight and italic information, so {@link #setWeight} and {@link #setItalic} are used
401 * Sets italic information of the font.
405 * @param italic {@code true} if the font is italic
407 setItalic(boolean italic) argument
500 createAssetUid(final AssetManager mgr, String path, int ttcIndex, @Nullable FontVariationAxis[] axes, int weight, int italic) argument
865 createFromFamiliesWithDefault(FontFamily[] families, int weight, int italic) argument
1063 nativeCreateFromTypefaceWithExactStyle( long native_instance, int weight, boolean italic) argument
1072 nativeCreateFromArray(long[] familyArray, int weight, int italic) argument
[all...]
/frameworks/base/core/java/android/content/res/
H A DFontResourcesParser.java83 public FontFileResourceEntry(@NonNull String fileName, int weight, int italic) { argument
86 mItalic = italic;
204 int italic = array.getInt(R.styleable.FontFamilyFont_fontStyle,
214 return new FontFileResourceEntry(filename, weight, italic);
/frameworks/base/core/jni/android/graphics/
H A DTypeface.cpp46 jint weight, jboolean italic) {
48 return reinterpret_cast<jlong>(Typeface::createAbsolute(baseTypeface, weight, italic));
90 int weight, int italic) {
99 Typeface::createFromFamilies(std::move(familyVec), weight, italic));
45 Typeface_createFromTypefaceWithExactStyle(JNIEnv* env, jobject, jlong nativeInstance, jint weight, jboolean italic) argument
89 Typeface_createFromArray(JNIEnv *env, jobject, jlongArray familyArray, int weight, int italic) argument
H A DFontFamily.cpp125 bool italic = givenItalic == 1; local
138 italic = os2Italic;
142 builder->fonts.push_back(minikin::Font(minikinFont, minikin::FontStyle(weight, italic)));
/frameworks/base/core/java/android/provider/
H A DFontsContract.java120 * should have this column populated with the int italic for the resulting font. This should
121 * be 0 for regular style and 1 for italic.
195 * @param italic A boolean that indicates the font is italic style or not.
201 boolean italic, int resultCode) {
206 mItalic = italic;
239 * Returns whether this font is italic.
798 boolean italic;
801 italic = cursor.getInt(italicColumnIndex) == 1;
804 italic
199 FontInfo(@onNull Uri uri, @IntRange(from = 0) int ttcIndex, @Nullable FontVariationAxis[] axes, @IntRange(from = 1, to = 1000) int weight, boolean italic, int resultCode) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/provider/
H A DMockFontProvider.java101 public Font(int id, int fileId, int ttcIndex, String varSettings, int weight, int italic, argument
108 mItalic = italic;
/frameworks/support/compat/java/android/support/v4/provider/
H A DFontsContractCompat.java116 * should have this column populated with the int italic for the resulting font. This should
117 * be 0 for regular style and 1 for italic.
293 * @param italic A boolean that indicates the font is italic style or not.
300 boolean italic, int resultCode) {
304 mItalic = italic;
330 * Returns whether this font is italic.
806 boolean italic = italicColumnIndex != -1 && cursor.getInt(italicColumnIndex)
808 result.add(new FontInfo(fileUri, ttcIndex, weight, italic, resultCode));
298 FontInfo(@onNull Uri uri, @IntRange(from = 0) int ttcIndex, @IntRange(from = 1, to = 1000) int weight, boolean italic, int resultCode) argument
/frameworks/support/compat/java/android/support/v4/content/res/
H A DFontResourcesParserCompat.java107 public FontFileResourceEntry(@NonNull String fileName, int weight, boolean italic, argument
111 mItalic = italic;
/frameworks/support/compat/tests/java/android/support/v4/provider/
H A DMockFontProvider.java64 Font(int id, int fileId, int ttcIndex, String varSettings, int weight, int italic, argument
71 mItalic = italic;
171 new Font(id++, LARGE_B_FILE_ID, 0, null, 400, 1 /* italic */,
175 new Font(id++, LARGE_D_FILE_ID, 0, null, 700, 1 /* italic */,
/frameworks/base/media/java/android/media/
H A DCea708CaptionRenderer.java478 boolean italic = (data[pos + 1] & 0x80) != 0;
485 underline, italic)));
489 + "fontTag: %d, edgeType: %d, underline: %s, italic: %s",
490 penSize, penOffset, textTag, fontTag, edgeType, underline, italic));
896 public final boolean italic; field in class:Cea708CCParser.CaptionPenAttr
899 boolean underline, boolean italic) {
906 this.italic = italic;
1372 // C1 Table: All the styles of windows and pens except underline, italic, pen size, and pen
1759 if (penAttr.italic) {
898 CaptionPenAttr(int penSize, int penOffset, int textTag, int fontTag, int edgeType, boolean underline, boolean italic) argument
[all...]

Completed in 516 milliseconds