Home
last modified time | relevance | path

Searched refs:Typeface (Results 1 – 25 of 58) sorted by relevance

123

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowTypefaceTest.java7 import android.graphics.Typeface;
30 Typeface typeface = Typeface.create("roboto", Typeface.BOLD); in create_withFamilyName_shouldCreateTypeface()
31 assertThat(typeface.getStyle()).isEqualTo(Typeface.BOLD); in create_withFamilyName_shouldCreateTypeface()
33 assertThat(shadowOf(typeface).getFontDescription().getStyle()).isEqualTo(Typeface.BOLD); in create_withFamilyName_shouldCreateTypeface()
38 Typeface typeface = Typeface.create(Typeface.create("roboto", Typeface.BOLD), Typeface.ITALIC); in create_withFamily_shouldCreateTypeface()
40 assertThat(typeface.getStyle()).isEqualTo(Typeface.ITALIC); in create_withFamily_shouldCreateTypeface()
42 assertThat(shadowOf(typeface).getFontDescription().getStyle()).isEqualTo(Typeface.ITALIC); in create_withFamily_shouldCreateTypeface()
47 Typeface typeface = Typeface.create((Typeface) null, Typeface.ITALIC); in create_withoutFamily_shouldCreateTypeface()
48 assertThat(typeface.getStyle()).isEqualTo(Typeface.ITALIC); in create_withoutFamily_shouldCreateTypeface()
50 assertThat(shadowOf(typeface).getFontDescription().getStyle()).isEqualTo(Typeface.ITALIC); in create_withoutFamily_shouldCreateTypeface()
[all …]
/external/lottie/lottie/src/main/java/com/airbnb/lottie/manager/
DFontAssetManager.java4 import android.graphics.Typeface;
22 private final Map<MutablePair<String>, Typeface> fontMap = new HashMap<>();
24 private final Map<String, Typeface> fontFamilies = new HashMap<>();
55 public Typeface getTypeface(String fontFamily, String style) { in getTypeface()
57 Typeface typeface = fontMap.get(tempPair); in getTypeface()
61 Typeface typefaceWithDefaultStyle = getFontFamily(fontFamily); in getTypeface()
67 private Typeface getFontFamily(String fontFamily) { in getFontFamily()
68 Typeface defaultTypeface = fontFamilies.get(fontFamily); in getFontFamily()
73 Typeface typeface = null; in getFontFamily()
81 typeface = Typeface.createFromAsset(assetManager, path); in getFontFamily()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowTypeface.java14 import android.graphics.Typeface;
30 @Implements(value = Typeface.class, looseSignatures = true)
36 @RealObject private Typeface realTypeface;
51 protected static Typeface create(String familyName, int style) { in create()
56 protected static Typeface create(Typeface family, int style) { in create()
66 protected static Typeface createFromAsset(AssetManager mgr, String path) { in createFromAsset()
73 return createUnderlyingTypeface(path, Typeface.NORMAL); in createFromAsset()
81 protected static Typeface createFromResources(AssetManager mgr, String path, int cookie) { in createFromResources()
82 return createUnderlyingTypeface(path, Typeface.NORMAL); in createFromResources()
86 protected static Typeface createFromFile(File path) { in createFromFile()
[all …]
DShadowPaint.java9 import android.graphics.Typeface;
38 private Typeface typeface;
160 protected Typeface getTypeface() { in getTypeface()
165 protected Typeface setTypeface(Typeface typeface) { in setTypeface()
DShadowTextView.java6 import android.graphics.Typeface;
51 private Typeface typeface;
/external/exoplayer/tree/library/ui/src/test/java/com/google/android/exoplayer2/ui/
DSpannedToHtmlConverterTest.java22 import android.graphics.Typeface;
75 new StyleSpan(Typeface.BOLD), in convert_supportsStyleSpan()
80 new StyleSpan(Typeface.ITALIC), in convert_supportsStyleSpan()
85 new StyleSpan(Typeface.BOLD_ITALIC), in convert_supportsStyleSpan()
168 new StyleSpan(Typeface.ITALIC), in convert_escapesUnrecognisedTagInSpannedString()
219 spanned.setSpan(new StyleSpan(Typeface.BOLD), start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in convert_sortsTagsConsistently()
220 spanned.setSpan(new StyleSpan(Typeface.ITALIC), start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in convert_sortsTagsConsistently()
233 spanned.setSpan(new StyleSpan(Typeface.ITALIC), start, end, Spanned.SPAN_EXCLUSIVE_EXCLUSIVE); in convert_supportsNestedTags()
235 new StyleSpan(Typeface.BOLD), in convert_supportsNestedTags()
249 new StyleSpan(Typeface.ITALIC), in convert_overlappingSpans_producesInvalidHtml()
[all …]
/external/exoplayer/tree/testutils/src/test/java/com/google/android/exoplayer2/testutil/truth/
DSpannedSubjectTest.java25 import android.graphics.Typeface;
90 createSpannable(new StyleSpan(Typeface.ITALIC), Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in italicSpan_success()
100 new StyleSpan(Typeface.ITALIC), SpannedSubject::hasItalicSpanBetween); in italicSpan_mismatchedIndex()
106 new StyleSpan(Typeface.ITALIC), SpannedSubject::hasItalicSpanBetween); in italicSpan_mismatchedFlags()
120 createSpannable(new StyleSpan(Typeface.BOLD), Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in boldSpan_success()
130 new StyleSpan(Typeface.BOLD), SpannedSubject::hasBoldSpanBetween); in boldSpan_mismatchedIndex()
136 new StyleSpan(Typeface.BOLD), SpannedSubject::hasBoldSpanBetween); in boldSpan_mismatchedFlags()
142 createSpannable(new StyleSpan(Typeface.BOLD_ITALIC), Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in boldItalicSpan_withOneSpan()
151 SpannableString spannable = createSpannable(new StyleSpan(Typeface.BOLD)); in boldItalicSpan_withTwoSpans()
153 new StyleSpan(Typeface.ITALIC), SPAN_START, SPAN_END, Spanned.SPAN_INCLUSIVE_EXCLUSIVE); in boldItalicSpan_withTwoSpans()
[all …]
/external/exoplayer/tree/library/ui/src/main/java/com/google/android/exoplayer2/ui/
DSpannedToHtmlConverter.java20 import android.graphics.Typeface;
132 case Typeface.BOLD: in getOpeningTag()
134 case Typeface.ITALIC: in getOpeningTag()
136 case Typeface.BOLD_ITALIC: in getOpeningTag()
168 case Typeface.BOLD: in getClosingTag()
170 case Typeface.ITALIC: in getClosingTag()
172 case Typeface.BOLD_ITALIC: in getClosingTag()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/webvtt/
DWebvttCssStyle.java18 import android.graphics.Typeface;
53 public static final int STYLE_NORMAL = Typeface.NORMAL;
54 public static final int STYLE_BOLD = Typeface.BOLD;
55 public static final int STYLE_ITALIC = Typeface.ITALIC;
56 public static final int STYLE_BOLD_ITALIC = Typeface.BOLD_ITALIC;
/external/lottie/lottie/src/main/java/com/airbnb/lottie/
DFontAssetDelegate.java3 import android.graphics.Typeface;
16 public Typeface fetchFont(String fontFamily) { in fetchFont()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/
DCaptionStyleCompat.java19 import android.graphics.Typeface;
119 @Nullable public final Typeface typeface;
153 @Nullable Typeface typeface) { in CaptionStyleCompat()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/ttml/
DTtmlStyle.java18 import android.graphics.Typeface;
43 public static final int STYLE_NORMAL = Typeface.NORMAL;
44 public static final int STYLE_BOLD = Typeface.BOLD;
45 public static final int STYLE_ITALIC = Typeface.ITALIC;
46 public static final int STYLE_BOLD_ITALIC = Typeface.BOLD_ITALIC;
/external/setupdesign/main/src/com/google/android/setupdesign/util/
DTextViewPartnerStyler.java20 import android.graphics.Typeface;
82 Typeface font = Typeface.create(fontFamilyName, Typeface.NORMAL); in applyPartnerCustomizationStyle()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/text/tx3g/
DTx3gDecoder.java19 import android.graphics.Typeface;
201 cueText.setSpan(new StyleSpan(Typeface.BOLD_ITALIC), start, end, flags); in attachFontFace()
203 cueText.setSpan(new StyleSpan(Typeface.BOLD), start, end, flags); in attachFontFace()
206 cueText.setSpan(new StyleSpan(Typeface.ITALIC), start, end, flags); in attachFontFace()
213 cueText.setSpan(new StyleSpan(Typeface.NORMAL), start, end, flags); in attachFontFace()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/text/tx3g/
DTx3gDecoderTest.java22 import android.graphics.Typeface;
86 assertThat(styleSpan.getStyle()).isEqualTo(Typeface.BOLD_ITALIC); in decodeWithStyl()
141 assertThat(styleSpan.getStyle()).isEqualTo(Typeface.ITALIC); in decodeWithMultipleStyl()
161 assertThat(styleSpan.getStyle()).isEqualTo(Typeface.BOLD); in decodeWithOtherExtension()
179 assertThat(styleSpan.getStyle()).isEqualTo(Typeface.BOLD_ITALIC); in initializationDecodeWithStyl()
202 assertThat(styleSpan.getStyle()).isEqualTo(Typeface.BOLD_ITALIC); in initializationDecodeWithTbox()
225 assertThat(styleSpan.getStyle()).isEqualTo(Typeface.BOLD_ITALIC); in initializationAllDefaultsDecodeWithStyl()
/external/grpc-grpc/examples/csharp/HelloworldXamarin/Droid/Assets/
DAboutAssets.txt19 Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf");
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/truth/
DSpannedSubject.java23 import android.graphics.Typeface;
100 return hasStyleSpan(start, end, Typeface.ITALIC); in hasItalicSpanBetween()
111 return hasStyleSpan(start, end, Typeface.BOLD); in hasBoldSpanBetween()
171 if (styles.contains(Typeface.BOLD_ITALIC) in hasBoldItalicSpanBetween()
172 || (styles.contains(Typeface.BOLD) && styles.contains(Typeface.ITALIC))) { in hasBoldItalicSpanBetween()
179 fact("expected to contain either", Collections.singletonList(Typeface.BOLD_ITALIC)), in hasBoldItalicSpanBetween()
180 fact("or both", Arrays.asList(Typeface.BOLD, Typeface.ITALIC)), in hasBoldItalicSpanBetween()
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/env/
DBorderedText.java24 import android.graphics.Typeface;
73 public void setTypeface(Typeface typeface) { in setTypeface()
/external/setupcompat/main/java/com/google/android/setupcompat/template/
DFooterButtonStyleUtils.java25 import android.graphics.Typeface;
305 int textStyleValue = Typeface.NORMAL; in updateButtonTypeFaceWithPartnerConfig()
309 .getInteger(context, buttonTextStyleConfig, Typeface.NORMAL); in updateButtonTypeFaceWithPartnerConfig()
311 Typeface font = Typeface.create(fontFamilyName, textStyleValue); in updateButtonTypeFaceWithPartnerConfig()
/external/pdfium/xfa/fxfa/parser/
Dcxfa_font.cpp24 {XFA_Attribute::Typeface, XFA_AttributeType::CData, (void*)L"Courier"},
112 return JSObject()->GetCData(XFA_Attribute::Typeface); in GetTypeface()
Dcxfa_typeface.cpp25 XFA_Element::Typeface, in CXFA_Typeface()
/external/google-fonts/fraunces/
DAUTHORS.txt8 Typeface Design:
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/
DClassifierActivity.java24 import android.graphics.Typeface;
109 borderedText.setTypeface(Typeface.MONOSPACE); in onPreviewSizeChosen()
/external/skia/modules/canvaskit/npm_build/types/
Dindex.d.ts669 typeface: Typeface; // currently set to null (temporary)
697 typeface: Typeface;
1685 getTypeface(): Typeface | null;
1749 setTypeface(face: Typeface | null): void;
1771 makeTypefaceFromData(fontData: ArrayBuffer): Typeface;
2641 export type Typeface = EmbindObject<Typeface>; alias
3121 new (face: Typeface | null, size?: number): Font;
3132 new (face: Typeface | null, size: number, scaleX: number, skewX: number): Font;
/external/lottie/LottieSample/src/main/kotlin/com/airbnb/lottie/samples/
DSnapshotTestActivity.kt8 import android.graphics.Typeface

123