Home
last modified time | relevance | path

Searched defs:typeface (Results 1 – 24 of 24) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceTest.java84 private static float measureText(String text, Typeface typeface) { in measureText()
128 Typeface typeface = createTypeface(Typeface.BOLD); in testIsBold() local
195 Typeface typeface = Typeface.create(DEFAULT, Typeface.NORMAL); in testCreate() local
210 Typeface typeface = Typeface.defaultFromStyle(Typeface.NORMAL); in testDefaultFromStyle() local
249 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testCreateFromAsset() local
263 Typeface typeface = Typeface.createFromFile(file); in testCreateFromFileByFileReference() local
287 Typeface typeface = Typeface.createFromFile(obtainPath()); in testCreateFromFileByFileName() local
314 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testInvalidCmapFont() local
325 Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), in testInvalidCmapFont2() local
345 final Typeface typeface = Typeface.createFromAsset(mContext.getAssets(), file); in testInvalidCmapFont_tooLargeCodePoints() local
[all …]
DTypefaceCustomFallbackBuilderTest.java115 final Typeface typeface = createFullFamilyTypeface(); in testFamily_defaultStyle() local
123 final Typeface typeface = createFullFamilyTypeface(); in testFamily_selectStyle() local
149 final Typeface typeface = new Typeface.CustomFallbackBuilder(b.build()) in testFamily_selectStyleByBuilder() local
166 final Typeface typeface = new Typeface.CustomFallbackBuilder(b.build()).build(); in testFamily_closestDefault() local
187 final Typeface typeface = new Typeface.CustomFallbackBuilder(baseFamily) in testUserFallback() local
244 final Typeface typeface = new Typeface.CustomFallbackBuilder(baseFamily) in testUserFallbackOverLocaleFallback() local
DPaint_TextBoundsTest.java65 Typeface typeface = Typeface.createFromAsset(am, "fonts/measurement/bbox.ttf"); in getPaint() local
DPaintTest.java2330 Typeface typeface = p.getTypeface(); in testFontVariationTypefaceInstance_Cached() local
2344 Typeface typeface = p.getTypeface(); in testFontVariationTypefaceInstance_Cached_EquivalentFontVariationSettings() local
2358 Typeface typeface = p.getTypeface(); in testFontVariationTypefaceInstance_NotCachedForOtherConfig() local
/cts/tests/tests/text/src/android/text/cts/
DBoringLayoutFallbackLineSpacingTest.java55 Typeface typeface = new Typeface.CustomFallbackBuilder( in testFallbackSpacing_Metrics() local
89 Typeface typeface = new Typeface.CustomFallbackBuilder( in testFallbackSpacing_Layout() local
DStaticLayoutFallbackLineSpacingTest.java52 Typeface typeface = new Typeface.CustomFallbackBuilder( in testFallbackSpacing() local
DFallbackLineSpacingTest.java50 Typeface typeface = new Typeface.CustomFallbackBuilder( in testFallbackSpacing() local
DTextRunAdvancesTest.java41 Typeface typeface = Typeface.createFromAsset(am, "fonts/textrunadvances.ttf"); in getPaint() local
DPrecomputedTextTest.java785 Typeface typeface = new Typeface.CustomFallbackBuilder( in getTestPaint() local
/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontTestUtil.java226 private static float measureChar(Typeface typeface, char c) { in measureChar()
302 private static int getSelectedFontStyle(Typeface typeface) { in getSelectedFontStyle()
319 public static Pair<Integer, Boolean> getSelectedStyle(Typeface typeface) { in getSelectedStyle()
329 public static String getSelectedFontPathInAsset(Typeface typeface) { in getSelectedFontPathInAsset()
339 public static int getSelectedTtcIndex(Typeface typeface) { in getSelectedTtcIndex()
349 public static String getSelectedVariationSettings(Typeface typeface) { in getSelectedVariationSettings()
DSystemFontsTest.java197 Typeface typeface = Typeface.create("sans-serif-condensed", Typeface.NORMAL); in testAdjustmentPreserveWidth() local
DFontTest.java1195 Typeface typeface = new Typeface.CustomFallbackBuilder( in fontIdentifier() local
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DPathTests.java38 Typeface typeface = paint.getTypeface(); in testTextPathWithOffset() local
DTextViewHighContrastTextTests.kt62 private val typeface: Typeface by lazy { in <lambda>() constant in android.uirendering.cts.testclasses.TextViewHighContrastTextTests
63 var typeface = Typeface.create("sans-serif", Typeface.NORMAL) in <lambda>() variable
DFontRenderingTests.java58 final Typeface typeface = Typeface.create(family, style); in fontTestBody() local
/cts/tests/tests/widget/src/android/widget/cts/
DTextViewFontWeightTest.java103 Typeface typeface = tv.getTypeface(); in assertFontSelected() local
DTextViewWithTransformationHandwritingTest.java105 Typeface typeface = Typeface.createFromAsset( in setupEditText() local
DTextViewHandwritingGestureTest.java134 Typeface typeface = Typeface.createFromAsset( in setup() local
DTextViewTest.java3802 Typeface typeface = Typeface.createFromAsset(context.getAssets(), "multiaxis.ttf"); in testSetGetFontVariationSettings_Api35() local
3872 Typeface typeface = Typeface.createFromAsset(context.getAssets(), "multiaxis.ttf"); in testSetGetFontVariationSettings() local
/cts/tests/tests/text/src/android/text/style/cts/
DTypefaceSpanTest.java41 Typeface typeface = Typeface.create(FAMILY, Typeface.BOLD); in testConstructorFromTypeface() local
/cts/tests/tests/graphics/src/android/graphics/text/cts/
DTextRunShaperTest.java199 Typeface typeface = new Typeface.CustomFallbackBuilder( in shapeText_FontCreateFromNative() local
228 Typeface typeface = in shapeText_FontCreateFromNative_Override() local
DMeasuredTextTest.java201 Typeface typeface = Typeface.createFromAsset(am, "fonts/measurement/bbox.ttf"); in testGetBounds_RTL() local
/cts/tests/tests/provider/src/android/provider/cts/
DFontsContractTest.java112 public void onTypefaceRetrieved(Typeface typeface) { in onTypefaceRetrieved()
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java1242 Typeface typeface = mResources.getFont(R.font.sample_downloadable_font); in testSystemFontFamilyReturnsSystemFont() local