Home | History | Annotate | Download | only in graphics

Lines Matching defs:ITALIC

131     @IntDef(value = {NORMAL, BOLD, ITALIC, BOLD_ITALIC})
138 public static final int ITALIC = 2;
152 // Value for weight and italic. Indicates the value is resolved by font metadata.
185 /** Returns true if getStyle() has the ITALIC bit set. */
187 return (mStyle & ITALIC) != 0;
199 RESOLVE_BY_FONT_TABLE /* weight */, RESOLVE_BY_FONT_TABLE /* italic */,
208 RESOLVE_BY_FONT_TABLE /* italic */, null /* axes */)) {
276 RESOLVE_BY_FONT_TABLE /* italic */, DEFAULT_FAMILY);
289 RESOLVE_BY_FONT_TABLE /* weight */, RESOLVE_BY_FONT_TABLE /* italic */,
327 * builder.setItalic(true); // Tell the system that this is an italic style font.
401 * weight and italic information, so {@link #setWeight} and {@link #setItalic} are used
427 * Sets italic information of the font.
431 * @param italic {@code true} if the font is italic. Otherwise {@code false}.
433 public Builder setItalic(boolean italic) {
434 mItalic = italic ? STYLE_ITALIC : STYLE_NORMAL;
495 * family will be resolved with the provided weight and italic information specified by
500 * italic information. For example, calling {@code builder.setFallback("sans-serif-light")}
502 * terms of fallback. The default weight and italic information are overridden by calling
527 @Nullable FontVariationAxis[] axes, int weight, int italic, String fallback) {
541 builder.append(Integer.toString(italic));
572 final boolean italic =
573 (mItalic == RESOLVE_BY_FONT_TABLE) ? (base.mStyle & ITALIC) != 0 : mItalic == 1;
574 return createWeightStyle(base, weight, italic);
678 * @param style The style (normal, bold, italic) of the typeface.
679 * e.g. NORMAL, BOLD, ITALIC, BOLD_ITALIC
699 * @param style The style (normal, bold, italic) of the typeface.
700 * e.g. NORMAL, BOLD, ITALIC, BOLD_ITALIC
740 * weight and italic style
766 * @param italic {@code true} if italic style is desired to be drawn. Otherwise, {@code false}
767 * @return A {@link Typeface} object for drawing specified weight and italic style. Never
774 @IntRange(from = 1, to = 1000) int weight, boolean italic) {
779 return createWeightStyle(family, weight, italic);
783 @IntRange(from = 1, to = 1000) int weight, boolean italic) {
784 final int key = (weight << 1) | (italic ? 1 : 0);
801 base.native_instance, weight, italic));
908 int italic) {
909 return createFromFamiliesWithDefault(families, DEFAULT_FAMILY, weight, italic);
920 * @param italic the italic information for this family. In that case, the table information in
926 String fallbackName, int weight, int italic) {
938 return new Typeface(nativeCreateFromArray(ptrArray, weight, italic));
1151 create((String) null, Typeface.ITALIC),
1196 long native_instance, int weight, boolean italic);
1201 private static native long nativeCreateFromArray(long[] familyArray, int weight, int italic);