Home
last modified time | relevance | path

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

/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 …]
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 …]
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 …]
DSystemFontsTest.java47 public Set<Font> availableFonts;
63 for (Font font : availableFonts) { in testAvailableFonts_ReadOnlyFile()
87 for (Font font : availableFonts) { in testAvailableFonts_ReadOnlyBuffer()
101 for (Font font : availableFonts) { in testAvailableFonts_FontAttributeGetters()
DFontManagerTest.java105 List<FontConfig.Font> fonts = family.getFontList(); in fontManager_getFontConfig_checkFamilies()
106 for (FontConfig.Font font : fonts) { in fontManager_getFontConfig_checkFamilies()
230 Arrays.asList(new FontFamilyUpdateRequest.Font.Builder( in fontManager_updateFontFamily_negativeBaseVersion()
250 Arrays.asList(new FontFamilyUpdateRequest.Font.Builder( in fontManager_updateFontFamily_permissionEnforce()
265 for (FontConfig.Font font : family.getFontList()) { in fontManager_PostScriptName()
DNativeSystemFontTest.java41 public Set<NativeSystemFontHelper.FontDescriptor> convertToDescriptors(Set<Font> fonts) { in convertToDescriptors()
43 for (Font f : fonts) { in convertToDescriptors()
DSystemEmojiTest.java37 for (Font font : SystemFonts.getAvailableFonts()) { in uniquePostScript()
DSystemFontsUniqueNameTest.java42 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 …]
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/content/res/font/
Dinvalid_font.ttf1 Invalid Font File.
/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()
/cts/tests/tests/text/src/android/text/cts/
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()