Home
last modified time | relevance | path

Searched refs:Font (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/tests/graphics/src/android/graphics/fonts/
DFontFamilyTest.java44 Font font = new Font.Builder(am, FONT_DIR + "ascii_g3em_weight400_upright.ttf").build(); in testBuilder_SingleFont()
54 Font regularFont = new Font.Builder( in testBuilder_MultipleFont()
56 Font boldFont = new Font.Builder( in testBuilder_MultipleFont()
69 Font regularFont = new Font.Builder( in testBuilder_MultipleFont_overrideWeight()
71 Font boldFont = new Font.Builder(am, FONT_DIR + "ascii_g3em_weight400_upright.ttf") in testBuilder_MultipleFont_overrideWeight()
84 Font regularFont = new Font.Builder( in testBuilder_MultipleFont_overrideItalic()
86 Font italicFont = new Font.Builder(am, FONT_DIR + "ascii_g3em_weight400_upright.ttf") in testBuilder_MultipleFont_overrideItalic()
99 Font regularFont = new Font.Builder( in testBuilder_MultipleFont_SameStyle()
101 Font regularFont2 = new Font.Builder( in testBuilder_MultipleFont_SameStyle()
109 Font regularFont = new Font.Builder( in testBuilder_MultipleFont_SameStyle_overrideWeight()
[all …]
DFontFamilyUpdateRequestTest.java51 FontFamilyUpdateRequest.Font font = new FontFamilyUpdateRequest.Font.Builder( in font()
60 new FontFamilyUpdateRequest.Font.Builder(null, style).setAxes(axes)); in font()
62 new FontFamilyUpdateRequest.Font.Builder("", style).setAxes(axes)); in font()
64 new FontFamilyUpdateRequest.Font.Builder(postScriptName, null) in font()
67 new FontFamilyUpdateRequest.Font.Builder(postScriptName, style) in font()
70 new FontFamilyUpdateRequest.Font.Builder(postScriptName, style) in font()
73 new FontFamilyUpdateRequest.Font.Builder(postScriptName, style).setIndex(-1)); in font()
80 FontFamilyUpdateRequest.Font font1 = new FontFamilyUpdateRequest.Font.Builder("Test", in fontFamily()
82 FontFamilyUpdateRequest.Font font2 = new FontFamilyUpdateRequest.Font.Builder("Test", in fontFamily()
91 List<FontFamilyUpdateRequest.Font> fonts = Arrays.asList(font1, font2); in fontFamily()
[all …]
DFontTest.java162 Font font = new Font.Builder(buffer).build(); in testBuilder_buffer()
184 Font font = new Font.Builder(buffer).setTtcIndex(ttcIndex).build(); in testBuilder_buffer_ttc()
207 Font font = new Font.Builder(buffer).setFontVariationSettings(axes).build(); in testBuilder_buffer_vf()
229 Font font = new Font.Builder(buffer).setWeight(customWeight).build(); in testBuilder_buffer_override()
245 Font font = new Font.Builder(buffer).setSlant(FontStyle.FONT_SLANT_ITALIC).build(); in testBuilder_buffer_override()
258 new Font.Builder(buf); in testBuilder_buffer_invalid_null()
264 new Font.Builder(buf); in testBuilder_buffer_invalid_not_direct()
280 Font font = new Font.Builder(file).build(); in testBuilder_file()
307 Font font = new Font.Builder(file).setTtcIndex(ttcIndex).build(); in testBuilder_file_ttc()
335 Font font = new Font.Builder(file).setFontVariationSettings(axes).build(); in testBuilder_file_vf()
[all …]
DFontManagerTest.java114 List<FontConfig.Font> fonts = family.getFontList(); in fontManager_getFontConfig_checkFamilies()
115 for (FontConfig.Font font : fonts) { in fontManager_getFontConfig_checkFamilies()
252 Arrays.asList(new FontFamilyUpdateRequest.Font.Builder( in fontManager_updateFontFamily_negativeBaseVersion()
272 Arrays.asList(new FontFamilyUpdateRequest.Font.Builder( in fontManager_updateFontFamily_permissionEnforce()
287 for (FontConfig.Font font : family.getFontList()) { in fontManager_PostScriptName()
DSystemFontsTest.java66 public Set<Font> availableFonts;
82 for (Font font : availableFonts) { in testAvailableFonts_ReadOnlyFile()
106 for (Font font : availableFonts) { in testAvailableFonts_ReadOnlyBuffer()
120 for (Font font : availableFonts) { in testAvailableFonts_FontAttributeGetters()
DNativeSystemFontTest.java41 public Set<NativeSystemFontHelper.FontDescriptor> convertToDescriptors(Set<Font> fonts) { in convertToDescriptors()
43 for (Font f : fonts) { in convertToDescriptors()
DSystemFontsUniqueNameTest.java41 for (Font font : SystemFonts.getAvailableFonts()) { in uniquePostScript()
DSystemEmojiTest.java40 for (Font font : SystemFonts.getAvailableFonts()) { in uniquePostScript()
/cts/tests/tests/provider/src/android/provider/cts/
DMockFontProvider.java62 static class Font { class in MockFontProvider
63 public Font(int id, int fileId, int ttcIndex, String varSettings, int weight, int italic, in Font() method in MockFontProvider.Font
117 private static Map<String, Font[]> QUERY_MAP;
119 HashMap<String, Font[]> map = new HashMap<>();
122 map.put(SINGLE_FONT_FAMILY_QUERY, new Font[] { in map.put()
123 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 400, 0, Columns.RESULT_CODE_OK, true), in map.put()
126 map.put(MULTIPLE_FAMILY_QUERY, new Font[] { in map.put()
127 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 400, 0, Columns.RESULT_CODE_OK, true), in map.put()
128 new Font(id++, SAMPLE_FONT_FILE_1_ID, 0, null, 400, 1, Columns.RESULT_CODE_OK, true), in map.put()
129 new Font(id++, SAMPLE_FONT_FILE_0_ID, 0, null, 700, 0, Columns.RESULT_CODE_OK, true), in map.put()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DTypefaceCustomFallbackBuilderTest.java25 import android.graphics.fonts.Font;
57 b = new FontFamily.Builder(new Font.Builder(am, in createFullFamilyTypeface()
60 b.addFont(new Font.Builder(am, in createFullFamilyTypeface()
78 new Font.Builder(am, path).build()).build()).build())); in testSingleFont_path()
93 new Font.Builder(am, FontTestUtil.getTtcFontFileInAsset()) in testSingleFont_ttc()
108 new Font.Builder(am, FontTestUtil.getVFFontInAsset()) in testSingleFont_vf()
142 b = new FontFamily.Builder(new Font.Builder(am, in testFamily_selectStyleByBuilder()
145 b.addFont(new Font.Builder(am, in testFamily_selectStyleByBuilder()
162 new Font.Builder(am, FontTestUtil.getFontPathFromStyle(300, false)).build()) in testFamily_closestDefault()
163 .addFont(new Font.Builder(am, in testFamily_closestDefault()
[all …]
DTypefaceTestUtil.java23 import android.graphics.fonts.Font;
38 Font font = glyphs.getFont(0); in getFirstFont()
45 for (Font font : SystemFonts.getAvailableFonts()) { in getRobotoTypeface()
DCanvasDrawGlyphsTest.java26 import android.graphics.fonts.Font;
49 private Font mFont;
55 mFont = new Font.Builder(context.getAssets(), FONT_PATH).build(); in setup()
60 int positionStart, int glyphCount, Font font, Paint paint) { in drawGlyphsToBitmap()
/cts/tests/tests/text/src/android/text/cts/
DVariableFamilyTest.kt21 import android.graphics.fonts.Font
41 private lateinit var wghtUprightFont: Font
42 private lateinit var wghtItalicFont: Font
43 private lateinit var wghtItalFont: Font
44 private lateinit var nonVarFont: Font
163 .addFont(Font.Builder(nonVarFont).setWeight(550).build()) in testVariableFamily_not_variableFamily_three_or_more_fonts()
174 private fun makeFont(path: String): Font { in makeFont()
176 return Font.Builder(context.assets, path).build() in makeFont()
DNotoCJKFontRequirement.java24 import android.graphics.fonts.Font;
87 private static List<Font> getNotoCJKFonts() { in getNotoCJKFonts()
88 final ArrayList<Font> cjkFonts = new ArrayList<>(); in getNotoCJKFonts()
90 for (Font font : SystemFonts.getAvailableFonts()) { in getNotoCJKFonts()
DBoringLayoutFallbackLineSpacingTest.java23 import android.graphics.fonts.Font;
57 new Font.Builder(am, "fonts/LowGlyphFont.ttf").build() in testFallbackSpacing_Metrics()
61 new Font.Builder(am, "fonts/TallGlyphFont.ttf").build() in testFallbackSpacing_Metrics()
91 new Font.Builder(am, "fonts/LowGlyphFont.ttf").build() in testFallbackSpacing_Layout()
95 new Font.Builder(am, "fonts/TallGlyphFont.ttf").build() in testFallbackSpacing_Layout()
DStaticLayoutFallbackLineSpacingTest.java23 import android.graphics.fonts.Font;
54 new Font.Builder(am, "fonts/LowGlyphFont.ttf").build() in testFallbackSpacing()
58 new Font.Builder(am, "fonts/TallGlyphFont.ttf").build() in testFallbackSpacing()
DFallbackLineSpacingTest.java24 import android.graphics.fonts.Font;
52 new Font.Builder(am, "fonts/LowGlyphFont.ttf").build() in testFallbackSpacing()
56 new Font.Builder(am, "fonts/TallGlyphFont.ttf").build() in testFallbackSpacing()
DMyanmarTest.java26 import android.graphics.fonts.Font;
186 final Set<Font> availableFonts = SystemFonts.getAvailableFonts(); in testIfZawgyiLocaleIsSupported_fontWithQaagShouldExists()
187 for (Font font : availableFonts) { in testIfZawgyiLocaleIsSupported_fontWithQaagShouldExists()
/cts/hostsidetests/theme/app/src/android/theme/app/
DTypefaceTestUtil.java21 import android.graphics.fonts.Font;
36 Font font = glyphs.getFont(0); in getFirstFont()
43 for (Font font : SystemFonts.getAvailableFonts()) { in getRobotoTypeface()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DTypefaceTestUtil.java23 import android.graphics.fonts.Font;
38 Font font = glyphs.getFont(0); in getFirstFont()
45 for (Font font : SystemFonts.getAvailableFonts()) { in getRobotoTypeface()
DColorSpaceTests.java36 import android.graphics.fonts.Font;
241 Font font = null; in testMultiAtlasGlyphsWithColorSpace()
242 for (Font sysFont : SystemFonts.getAvailableFonts()) { in testMultiAtlasGlyphsWithColorSpace()
/cts/tests/tests/content/res/font/
Dinvalid_font.ttf1 Invalid Font File.
/cts/tests/tests/provider/
DOWNERS27 # Bug component: 25699 = per-file *Font*
28 per-file *Font* = file:platform/frameworks/base:/core/java/android/text/OWNERS
/cts/tests/tests/graphics/src/android/graphics/
DOWNERS13 # For fonts, text, e.g. Typeface, Font, Minikin, etc
/cts/tests/tests/graphics/src/android/graphics/text/cts/
DTextRunShaperTest.java27 import android.graphics.fonts.Font;
174 HashSet<Font> set = new HashSet<>(); in shapeText_multiLanguage()
186 Font originalFont = new Font.Builder( in shapeText_FontCreateFromNative()
201 Font font = res.getFont(0); in shapeText_FontCreateFromNative()

12