Searched refs:fonts (Results 1 - 25 of 45) sorted by relevance

12

/frameworks/layoutlib/rename_font/
H A Dtest.py36 fonts = build_font.get_font_info(name_tag)
39 self.assertEqual(fonts[0].family, "Roboto1200310")
40 self.assertEqual(fonts[0].fullname, "Roboto1200310 Regular")
H A Dbuild_font_single.py20 OpenType fonts (*.otf) and TrueType Collections (*.ttc) are not currently supported. They are copied to the destination
102 # In case of invalid fonts, we exit.
108 # Some fonts are too big to be handled by the ttx library.
121 fonts = []
131 fonts.append(font)
146 fonts.append(font)
147 return fonts
150 def update_tag(tag, fonts):
152 fonts_iterator = fonts.__iter__()
189 'Regular' for plain fonts
[all...]
H A Dbuild_font.py18 Rename the PS name of all fonts in the input directories and copy them to the
118 # In case of invalid fonts, we exit.
124 # Some fonts are too big to be handled by the ttx library.
137 fonts = []
147 fonts.append(font)
162 fonts.append(font)
163 return fonts
166 def update_tag(tag, fonts):
168 fonts_iterator = fonts.__iter__()
205 'Regular' for plain fonts
[all...]
/frameworks/support/compat/src/androidTest/java/androidx/core/provider/
H A DFontsContractCompatTest.java71 private static final String AUTHORITY = "androidx.core.provider.fonts.font";
143 FontInfo[] fonts = FontsContractCompat.getFontFromProvider(
145 assertNotNull(fonts);
146 assertEquals(1, fonts.length);
147 FontInfo font = fonts[0];
159 FontInfo[] fonts = FontsContractCompat.getFontFromProvider(
161 assertNotNull(fonts);
162 assertEquals(1, fonts.length);
163 FontInfo font = fonts[0];
172 FontInfo[] fonts
[all...]
/frameworks/base/core/tests/coretests/src/android/provider/
H A DFontsContractTest.java35 import android.graphics.fonts.FontVariationAxis;
76 FontInfo[] fonts = FontsContract.getFontFromProvider(
78 assertNotNull(fonts);
79 assertEquals(1, fonts.length);
80 FontInfo font = fonts[0];
95 FontInfo[] fonts = FontsContract.getFontFromProvider(
97 assertNotNull(fonts);
98 assertEquals(1, fonts.length);
99 FontInfo font = fonts[0];
111 FontInfo[] fonts
[all...]
/frameworks/base/apct-tests/perftests/core/
H A DAndroid.mk23 # Use google-fonts/dancing-script for the performance metrics
24 LOCAL_ASSET_DIR := $(TOP)/external/google-fonts/dancing-script
/frameworks/minikin/tests/stresstest/
H A DFontFamilyTest.cpp39 std::vector<Font> fonts; local
40 fonts.push_back(Font::Builder(font).build());
41 std::shared_ptr<FontFamily> family = std::make_shared<FontFamily>(std::move(fonts));
71 ::testing::Values(TestParam("/system/fonts/NotoSansCJK-Regular.ttc", 0),
72 TestParam("/system/fonts/NotoColorEmoji.ttf", 0)));
/frameworks/minikin/tests/util/
H A DFontTestUtils.cpp70 std::vector<Font> fonts; local
97 fonts.push_back(Font::Builder(minikinFont).setStyle(style).build());
102 fonts.push_back(Font::Builder(minikinFont).setStyle(style).build());
109 family = std::make_shared<FontFamily>(variant, std::move(fonts));
112 family = std::make_shared<FontFamily>(langId, variant, std::move(fonts));
126 std::vector<Font> fonts; local
127 fonts.push_back(Font::Builder(font).build());
128 return std::make_shared<FontFamily>(std::move(fonts));
133 std::vector<Font> fonts; local
134 fonts
[all...]
/frameworks/base/data/fonts/
H A DAndroid.mk25 $(PRODUCT_OUT)/system/fonts/$(1) : $(PRODUCT_OUT)/system/fonts/$(2)
32 $(ALL_MODULES.$(1).INSTALLED) $(PRODUCT_OUT)/system/fonts/$(1)
36 # The following fonts are just symlinks, for backward compatibility.
56 LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts
72 $(eval LOCAL_MODULE_PATH := $(TARGET_OUT)/fonts)\
85 # Copies the font configuration file into system/etc for the product as fonts.xml.
90 LOCAL_MODULE := fonts.xml
93 AOSP_FONTS_FILE := frameworks/base/data/fonts/fonts
[all...]
H A Dfonts.mk20 fonts.xml
/frameworks/support/compat/src/main/java/androidx/core/graphics/
H A DTypefaceCompatBaseImpl.java51 private static <T> T findBestFont(T[] fonts, int style, StyleExtractor<T> extractor) { argument
58 for (final T font : fonts) {
70 protected FontInfo findBestInfo(FontInfo[] fonts, int style) { argument
71 return findBestFont(fonts, style, new StyleExtractor<FontInfo>() {
106 @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts, int style) {
108 if (fonts.length < 1) {
111 FontInfo font = findBestInfo(fonts, style);
105 createFromFontInfo(Context context, @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts, int style) argument
H A DTypefaceCompatApi21Impl.java65 @NonNull FontInfo[] fonts, int style) {
66 if (fonts.length < 1) {
69 final FontInfo bestFont = findBestInfo(fonts, style);
64 createFromFontInfo(Context context, CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts, int style) argument
H A DTypefaceCompatApi26Impl.java26 import android.graphics.fonts.FontVariationAxis;
227 @NonNull FontsContractCompat.FontInfo[] fonts, int style) {
228 if (fonts.length < 1) {
234 final FontsContractCompat.FontInfo bestFont = findBestInfo(fonts, style);
250 context, fonts, cancellationSignal);
253 for (FontsContractCompat.FontInfo font : fonts) {
225 createFromFontInfo(Context context, @Nullable CancellationSignal cancellationSignal, @NonNull FontsContractCompat.FontInfo[] fonts, int style) argument
/frameworks/minikin/libs/minikin/
H A DFontFamily.cpp107 FontFamily::FontFamily(std::vector<Font>&& fonts) argument
108 : FontFamily(Variant::DEFAULT, std::move(fonts)) {}
110 FontFamily::FontFamily(Variant variant, std::vector<Font>&& fonts) argument
111 : FontFamily(LocaleListCache::kEmptyListId, variant, std::move(fonts)) {}
113 FontFamily::FontFamily(uint32_t localeListId, Variant variant, std::vector<Font>&& fonts) argument
116 mFonts(std::move(fonts)),
216 std::vector<Font> fonts; local
235 fonts.push_back(Font::Builder(minikinFont).setStyle(font.style()).build());
238 return std::shared_ptr<FontFamily>(new FontFamily(mLocaleListId, mVariant, std::move(fonts)));
/frameworks/base/core/java/android/text/
H A DFontConfig.java24 import android.graphics.fonts.FontVariationAxis;
31 * Font configuration descriptions for System fonts.
44 * Returns the ordered list of families included in the system fonts.
51 * Returns the list of aliases defined for the font families in the system fonts.
216 public Family(@NonNull String name, @NonNull Font[] fonts, @NonNull String[] languages, argument
219 mFonts = fonts;
232 * Returns the list of fonts included in this family.
/frameworks/base/core/tests/coretests/src/android/text/
H A DVariationParserTest.java22 import android.graphics.fonts.FontVariationAxis;
/frameworks/base/core/java/android/provider/
H A DFontsContract.java34 import android.graphics.fonts.FontVariationAxis;
136 * Constant used to represent a result was retrieved successfully. The given fonts will be
261 * is set and {@link #getFonts} returns an empty array, it means there were no fonts
298 public FontFamilyResult(@FontResultStatus int statusCode, @Nullable FontInfo[] fonts) { argument
300 mFonts = fonts;
345 sThread = new HandlerThread("fonts", Process.THREAD_PRIORITY_BACKGROUND);
543 final FontInfo[] fonts = result.getFonts();
544 if (fonts == null || fonts.length == 0) {
549 for (final FontInfo font : fonts) {
628 buildTypeface(@onNull Context context, @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts) argument
652 prepareFontData(Context context, FontInfo[] fonts, CancellationSignal cancellationSignal) argument
[all...]
/frameworks/support/compat/src/main/java/androidx/core/provider/
H A DFontsContractCompat.java130 * Constant used to represent a result was retrieved successfully. The given fonts will be
178 new SelfDestructiveThread("fonts", Process.THREAD_PRIORITY_BACKGROUND,
399 * is set and {@link #getFonts} returns an empty array, it means there were no fonts
428 public FontFamilyResult(@FontResultStatus int statusCode, @Nullable FontInfo[] fonts) { argument
430 mFonts = fonts;
584 final FontInfo[] fonts = result.getFonts();
585 if (fonts == null || fonts.length == 0) {
595 for (final FontInfo font : fonts) {
623 fonts);
660 buildTypeface(@onNull Context context, @Nullable CancellationSignal cancellationSignal, @NonNull FontInfo[] fonts) argument
679 prepareFontData(Context context, FontInfo[] fonts, CancellationSignal cancellationSignal) argument
[all...]
/frameworks/layoutlib/bridge/src/android/graphics/
H A DTypeface_Delegate.java37 import android.graphics.fonts.FontVariationAxis;
73 public static final String SYSTEM_FONTS = "/system/fonts/";
107 // initialize Typeface because the SDK fonts location hasn't been set.
230 Typeface.buildSystemFallback_Original(getFontLocation() + "/fonts.xml", fontDir, fontMap,
235 /*package*/ static FontFamily createFontFamily(String familyName, List<FontConfig.Font> fonts, argument
238 for (FontConfig.Font font : fonts) {
340 List<Font> fonts = new ArrayList<Font>(fontFamilies.length);
348 fonts.add(font);
351 // We cannot open each font and get locales supported, etc to match the fonts.
363 fonts
[all...]
H A DBidiRenderer.java74 * @param paint The Paint to use to get the fonts. Should not be null.
172 // fonts to check which one can draw it.
206 "Some fonts could not be loaded. The rendering may not be perfect.", null, null);
297 private static List<ScriptRun> getScriptRuns(char[] text, int start, int limit, List<FontInfo> fonts) { argument
307 getScriptFont(text, scriptStart, scriptLimit, fonts));
315 private static Font getScriptFont(char[] text, int start, int limit, List<FontInfo> fonts) { argument
316 for (FontInfo fontInfo : fonts) {
322 if (fonts.isEmpty()) {
328 return fonts.get(0).mFont;
/frameworks/base/core/java/android/content/res/
H A DFontResourcesParser.java192 List<FontFileResourceEntry> fonts = new ArrayList<>();
199 fonts.add(entry);
205 if (fonts.isEmpty()) {
208 return new FontFamilyFilesResourceEntry(fonts.toArray(
209 new FontFileResourceEntry[fonts.size()]));
/frameworks/base/graphics/java/android/graphics/
H A DFontListParser.java19 import android.graphics.fonts.FontVariationAxis;
78 final List<FontConfig.Font> fonts = new ArrayList<FontConfig.Font>();
83 fonts.add(readFont(parser));
96 return new FontConfig.Family(name, fonts.toArray(new FontConfig.Font[fonts.size()]), langs,
/frameworks/minikin/include/minikin/
H A DFontFamily.h135 explicit FontFamily(std::vector<Font>&& fonts);
136 FontFamily(Variant variant, std::vector<Font>&& fonts);
137 FontFamily(uint32_t localeListId, Variant variant, std::vector<Font>&& fonts);
144 // API's for enumerating the fonts in a family. These don't guarantee any particular order
/frameworks/support/emoji/core/src/androidTest/java/androidx/emoji/text/
H A DFontRequestEmojiCompatConfigTest.java136 verifyLoaderOnFailedCalled(STATUS_WRONG_CERTIFICATES, null /* fonts */,
174 verifyLoaderOnFailedCalled(STATUS_OK, null /* fonts */,
191 final FontInfo[] fonts = new FontInfo[] {
195 doReturn(new FontFamilyResult(STATUS_OK, fonts)).when(mFontProviderHelper).fetchFonts(
210 final FontInfo[] fonts = new FontInfo[] {
214 doReturn(new FontFamilyResult(STATUS_OK, fonts)).when(mFontProviderHelper).fetchFonts(
232 final FontInfo[] fonts = new FontInfo[] {
236 doReturn(new FontFamilyResult(STATUS_OK, fonts)).when(mFontProviderHelper).fetchFonts(
260 final FontInfo[] fonts = new FontInfo[] {
264 doReturn(new FontFamilyResult(STATUS_OK, fonts))
480 verifyLoaderOnFailedCalled(final int statusCode, final FontInfo[] fonts, String exceptionMessage) argument
[all...]
/frameworks/support/emoji/core/src/main/java/androidx/emoji/text/
H A DFontRequestEmojiCompatConfig.java135 * Since font fetch take longer time, the metadata loader will fetch the fonts on the background
235 final FontsContractCompat.FontInfo[] fonts = result.getFonts();
236 if (fonts == null || fonts.length == 0) {
239 return fonts[0]; // Assuming the GMS Core provides only one font file.

Completed in 1532 milliseconds

12