/frameworks/base/tools/layoutlib/rename_font/ |
H A D | build_font_single.py | 18 Rename the PS name of the input font. 53 # A constant to copy the font without modifying. This is useful when running 71 sys.exit('Usage: build_font_single.py /path/to/input/font.ttf /path/to/out/font.ttf') 84 print 'Converting font: ' + filename 98 # generate the udpated font now. 103 print filename + ' is not a valid font' 106 print 'Error converting font: ' + filename 120 found in the name table of the font. """ 122 font [all...] |
H A D | build_font.py | 99 print 'Converting font: ' + filename 114 # generate the udpated font now. 119 print filename + ' is not a valid font' 122 print 'Error converting font: ' + filename 136 found in the name table of the font. """ 138 font = None 143 # A new font should be created for each platform, encoding and language 146 if name_id <= last_name_id and font is not None: 147 fonts.append(font) 148 font [all...] |
/frameworks/minikin/tests/ |
H A D | HbFontCacheTest.cpp | 54 // Must return same object if same font object is passed. 68 hb_font_t* font = getHbFontLocked(&minikinFont); local 69 ASSERT_NE(nullptr, font); 71 // Set user data to identify the font object. 74 hb_font_set_user_data(font, &key, data, NULL, false); 75 ASSERT_EQ(data, hb_font_get_user_data(font, &key)); 82 font = getHbFontLocked(&minikinFont); 83 EXPECT_EQ(nullptr, hb_font_get_user_data(font, &key));
|
/frameworks/minikin/libs/minikin/ |
H A D | HbFontCache.cpp | 32 MinikinFont* font = reinterpret_cast<MinikinFont*>(userData); local 35 const void* buffer = font->GetTable(tag, &size, &destroy); 62 void put(int32_t fontId, hb_font_t* font) { argument 63 mCache.put(fontId, font); 115 hb_font_t* font = fontCache->get(fontId); local 116 if (font != nullptr) { 117 return hb_font_reference(font); 137 font = hb_font_create_sub_font(parent_font); 140 fontCache->put(fontId, font); 141 return hb_font_reference(font); [all...] |
H A D | FontFamily.cpp | 133 const Font& font = mFonts[i]; local 134 int match = computeMatch(font.style, style); 136 bestFont = &font; 142 result.font = NULL; 144 result.font = bestFont->typeface; 175 MinikinFont* typeface = getClosestMatch(defaultStyle).font; 187 ALOGD("font coverage length=%d, first ch=%x\n", mCoverage.length(), 198 // Early exit if the variation selector is specified but the font doesn't have a cmap format 204 MinikinFont* minikinFont = getClosestMatch(defaultStyle).font; 205 hb_font_t* font local [all...] |
H A D | MinikinInternal.cpp | 84 hb_font_t* font = getHbFontLocked(minikinFont); local 85 hb_face_t* face = hb_font_get_face(font); 87 hb_font_destroy(font);
|
/frameworks/base/data/fonts/ |
H A D | Android.mk | 21 # create symlink for given font 22 # $(1): new font $(2): link target 24 define create-font-symlink 38 $(eval $(call create-font-symlink,DroidSans.ttf,Roboto-Regular.ttf)) 39 $(eval $(call create-font-symlink,DroidSans-Bold.ttf,Roboto-Bold.ttf)) 40 $(eval $(call create-font-symlink,DroidSerif-Regular.ttf,NotoSerif-Regular.ttf)) 41 $(eval $(call create-font-symlink,DroidSerif-Bold.ttf,NotoSerif-Bold.ttf)) 42 $(eval $(call create-font-symlink,DroidSerif-Italic.ttf,NotoSerif-Italic.ttf)) 43 $(eval $(call create-font-symlink,DroidSerif-BoldItalic.ttf,NotoSerif-BoldItalic.ttf)) 77 # Build the rest of font file [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BidiRenderer.java | 31 import java.awt.font.FontRenderContext; 32 import java.awt.font.GlyphVector; 39 * Render the text by breaking it into various scripts and using the right font for each script. 50 Font font; field in class:BidiRenderer.ScriptRun 63 // This List can contain nulls. A null font implies that the we weren't able to load the font 64 // properly. So, if we encounter a situation where we try to use that font, log a warning. 139 // We break the text into scripts and then select font based on it and then render each of 144 renderScript(run.start, run.limit, run.font, flag, advances, advancesIndex, draw); 151 * Render a script run to the right of the bounds passed. Use the preferred font t 216 render(int start, int limit, Font font, int flag, float[] advances, int advancesIndex, boolean draw) argument [all...] |
H A D | FontFamily_Delegate.java | 71 // The cache has a drawback that if the font file changed after the font object was created, 153 // Skip font configuration files. 183 FontInfo font = mFonts.get(i); 184 int match = computeMatch(font, desiredStyle); 187 bestFont = font; 196 // Derive the font as required and add it to the list of Fonts. 225 // If we aren't able to load an Open Type font, don't log a warning just yet. 226 // We wait for a case where font is being used. Only then we try to log the 231 String.format("Unable to load font 280 nAddFont(long nativeFamily, ByteBuffer font, int ttcIndex) argument 286 nAddFontWeightStyle(long nativeFamily, ByteBuffer font, int ttcIndex, List<FontListParser.Axis> listOfAxis, int weight, boolean isItalic) argument [all...] |
H A D | Typeface_Delegate.java | 77 * The list may contain null when the font failed to load. If null is reached when trying to 79 * some font failed to load. 98 Font font = ffd.getFont(weight, isItalic); 99 if (font != null) { 102 fonts.add(font); 105 // We cannot open each font and get locales supported, etc to match the fonts. 115 // Add the font with the matching variant to the list. 117 fonts.add(font); 122 // The FontFamily is valid but doesn't contain any matching font. This means 123 // that the font faile [all...] |
/frameworks/base/libs/hwui/hwui/ |
H A D | MinikinUtils.cpp | 56 FontCollection *font; local 58 FontStyle minikinStyle = prepareMinikinPaint(&minikinPaint, &font, paint, typeface); 59 layout->setFontCollection(font); 65 FontCollection *font; local 67 FontStyle minikinStyle = prepareMinikinPaint(&minikinPaint, &font, paint, typeface); 69 font, advances);
|
H A D | MinikinSkia.cpp | 35 static void MinikinFontSkia_SetSkiaPaint(const MinikinFont* font, SkPaint* skPaint, const MinikinPaint& paint) { argument 41 // Apply font fakery on top of user-supplied flags. 42 MinikinFontSkia::populateSkPaint(skPaint, font, paint.fakery); 72 // we don't have a buffer to the font data, copy to own buffer 120 void MinikinFontSkia::populateSkPaint(SkPaint* paint, const MinikinFont* font, FontFakery fakery) { argument 121 paint->setTypeface(reinterpret_cast<const MinikinFontSkia*>(font)->GetSkTypeface());
|
H A D | MinikinSkia.h | 46 // Access to underlying raw font bytes 55 static void populateSkPaint(SkPaint* paint, const MinikinFont* font, FontFakery fakery); 59 // A raw pointer to the font data - it should be owned by some other object with
|
H A D | Typeface.cpp | 69 // TODO: might be a nice optimization to get access to the underlying font 72 MinikinFont *font = new MinikinFontSkia(skFace, NULL, 0, 0); local 73 family->addFont(font); 74 font->Unref(); 76 ALOGE("failed to create font %s", fn); 143 MinikinFont* mf = firstFamily->getClosestMatch(defaultStyle).font;
|
/frameworks/base/tools/fonts/ |
H A D | fontchain_lint.py | 73 def open_font(font): 74 font_file, index = font 82 def get_best_cmap(font): 83 ttfont = open_font(font) 89 assert bmp_cmap is None, 'More than one BMP cmap in %s' % (font, ) 93 'More than one UCS-4 cmap in %s' % (font, )) 99 def get_variation_sequences_cmap(font): 100 ttfont = open_font(font) 105 assert vs_cmap is None, 'More than one VS cmap in %s' % (font, ) 110 def get_emoji_map(font) [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | FontFamily.java | 78 Log.e(TAG, "Error mapping font file " + path); 83 public boolean addFontWeightStyle(ByteBuffer font, int ttcIndex, List<FontListParser.Axis> axes, argument 85 return nAddFontWeightStyle(mNativePtr, font, ttcIndex, axes, weight, style); 94 private static native boolean nAddFont(long nativeFamily, ByteBuffer font, int ttcIndex); argument 95 private static native boolean nAddFontWeightStyle(long nativeFamily, ByteBuffer font, argument
|
H A D | Typeface.java | 39 * The Typeface class specifies the typeface and intrinsic style of a font. 113 * If null is passed for the name, then the "default" font will be chosen. 117 * @param familyName May be null. The name of the font family. 133 * null, this selects from the default font's family. 184 * Create a new typeface from the specified font data. 187 * @param path The file name of the font data in the assets directory 229 * Create a new typeface from the specified font file. 231 * @param path The path to the font data. 239 * Create a new typeface from the specified font file. 241 * @param path The full path to the font dat [all...] |
/frameworks/minikin/sample/ |
H A D | example.cpp | 59 MinikinFont *font = new MinikinFontFreeType(face); local 60 family->addFont(font); 68 MinikinFont *font = new MinikinFontFreeType(face); local 69 family->addFont(font);
|
H A D | example_skia.cpp | 61 MinikinFont *font = new MinikinFontSkia(skFace); local 62 family->addFont(font); 70 MinikinFont *font = new MinikinFontSkia(skFace); local 71 family->addFont(font);
|
/frameworks/base/core/jni/android/graphics/ |
H A D | HarfBuzzNGFaceSkia.cpp | 165 hb_font_t* font = hb_font_create(face); local 170 hb_font_set_ppem(font, x_ppem, y_ppem); 171 hb_font_set_scale(font, HBFloatToFixed(sizeX), HBFloatToFixed(sizeY)); 174 hb_font_set_funcs(font, harfbuzzSkiaGetFontFuncs(), data, destroyHarfBuzzFontData); 176 return font;
|
H A D | FontFamily.cpp | 92 ALOGE("addFont failed to create font, buffer invalid"); 97 ALOGE("addFont failed to create font, buffer size invalid"); 111 ALOGE("addFont failed to create font"); 129 jobject font, jint ttcIndex, jobject listOfAxis, jint weight, jboolean isItalic) { 130 NPE_CHECK_RETURN_ZERO(env, font); 155 const void* fontPtr = env->GetDirectBufferAddress(font); 157 ALOGE("addFont failed to create font, buffer invalid"); 160 jlong fontSize = env->GetDirectBufferCapacity(font); 162 ALOGE("addFont failed to create font, buffer size invalid"); 165 jobject fontRef = MakeGlobalRefOrDie(env, font); 128 FontFamily_addFontWeightStyle(JNIEnv* env, jobject clazz, jlong familyPtr, jobject font, jint ttcIndex, jobject listOfAxis, jint weight, jboolean isItalic) argument [all...] |
/frameworks/base/docs/html/ndk/reference/ |
H A D | doxygen.css | 4 font: 400 14px/22px Roboto,sans-serif; 10 font-size: 150%; 14 font: 400 14px/28px Roboto,sans-serif; 15 font-size: 150%; 16 font-weight: bold; 23 font-size: 150%; 24 font-weight: normal; 32 font-size: 100%; 49 font-weight: bold; 82 font [all...] |
/frameworks/base/core/java/android/webkit/ |
H A D | WebSettings.java | 49 * <li>TEXT_AUTOSIZING boosts font size of paragraphs based on heuristics to make 670 * Sets the standard font family name. The default is "sans-serif". 672 * @param font a font family name 674 public abstract void setStandardFontFamily(String font); argument 677 * Gets the standard font family name. 679 * @return the standard font family name as a string 685 * Sets the fixed font family name. The default is "monospace". 687 * @param font a font famil 689 setFixedFontFamily(String font) argument 704 setSansSerifFontFamily(String font) argument 719 setSerifFontFamily(String font) argument 734 setCursiveFontFamily(String font) argument 749 setFantasyFontFamily(String font) argument [all...] |
/frameworks/minikin/include/minikin/ |
H A D | MinikinFont.h | 48 MinikinPaint() : font(0), size(0), scaleX(0), skewX(0), letterSpacing(0), paintFlags(0), 55 MinikinFont *font; member in struct:android::MinikinPaint 114 // Override if font can provide access to raw data 119 // Override if font can provide access to raw data 124 // Override if font can provide access to raw data.
|
/frameworks/base/core/jni/ |
H A D | android_text_StaticLayout.cpp | 160 FontCollection *font; local 162 FontStyle style = MinikinUtils::prepareMinikinPaint(&minikinPaint, &font, paint, typeface); 163 return b->addStyleRun(&minikinPaint, font, style, start, end, isRtl);
|