Home
last modified time | relevance | path

Searched refs:italicFont (Results 1 – 2 of 2) sorted by relevance

/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontFamilyTest.java87 Font italicFont = new Font.Builder(am, FONT_DIR + "ascii_g3em_weight400_upright.ttf") in testBuilder_MultipleFont_overrideItalic() local
89 FontFamily family = new FontFamily.Builder(regularFont).addFont(italicFont).build(); in testBuilder_MultipleFont_overrideItalic()
93 assertTrue(family.getFont(0) == regularFont || family.getFont(0) == italicFont); in testBuilder_MultipleFont_overrideItalic()
94 assertTrue(family.getFont(1) == regularFont || family.getFont(1) == italicFont); in testBuilder_MultipleFont_overrideItalic()
/cts/tests/tests/content/src/android/content/res/cts/
DResourcesTest.java850 Typeface italicFont = Typeface.create(normalFont, Typeface.ITALIC); in testGetFont_xmlFileWithTtc() local
851 assertNotNull(italicFont); in testGetFont_xmlFileWithTtc()
853 assertEquals(getLargerTypeface("a", normalFont, italicFont), normalFont); in testGetFont_xmlFileWithTtc()
854 assertEquals(getLargerTypeface("b", normalFont, italicFont), italicFont); in testGetFont_xmlFileWithTtc()