Searched refs:font (Results 1 - 25 of 34) sorted by relevance

12

/frameworks/base/tools/layoutlib/rename_font/
H A Dbuild_font_single.py18 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 Dbuild_font.py99 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/base/data/fonts/
H A DAndroid.mk21 # 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))
99 # Build the rest of font file
[all...]
/frameworks/base/docs/html/reference/renderscript/
H A Ddoxygen.css4 font-family: Lucida Grande, Verdana, Geneva, Arial, sans-serif;
5 font-size: 12px;
11 font-size: 150%;
15 font-size: 150%;
16 font-weight: bold;
21 font-size: 120%;
25 font-size: 100%;
29 font-weight: bold;
58 font-weight: bold;
62 font
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBidiRenderer.java25 import java.awt.font.FontRenderContext;
26 import java.awt.font.GlyphVector;
40 * Render the text by breaking it into various scripts and using the right font for each script.
51 Font font; field in class:BidiRenderer.ScriptRun
64 // This List can contain nulls. A null font implies that the we weren't able to load the font
65 // properly. So, if we encounter a situation where we try to use that font, log a warning.
140 // We break the text into scripts and then select font based on it and then render each of
145 renderScript(run.start, run.limit, run.font, flag, advances, advancesIndex, draw);
152 * Render a script run to the right of the bounds passed. Use the preferred font t
217 render(int start, int limit, Font font, int flag, float[] advances, int advancesIndex, boolean draw) argument
[all...]
H A DFontFamily_Delegate.java128 // Skip font configuration files.
156 for (FontInfo font : mFonts) {
157 int match = computeMatch(font, desiredStyle);
160 bestFont = font;
169 // Derive the font as required and add it to the list of Fonts.
198 // If we aren't able to load an Open Type font, don't log a warning just yet.
199 // We wait for a case where font is being used. Only then we try to log the
204 String.format("Unable to load font %1$s", relativePath),
308 // Set valid to true, even if the font fails to load.
310 Font font
[all...]
H A DTypeface_Delegate.java75 * The list may contain null when the font failed to load. If null is reached when trying to
77 * some font failed to load.
96 Font font = ffd.getFont(weight, isItalic);
97 if (font != null) {
100 fonts.add(font);
103 // We cannot open each font and get locales supported, etc to match the fonts.
113 // Add the font with the matching variant to the list.
115 fonts.add(font);
120 // The FontFamily is valid but doesn't contain any matching font. This means
121 // that the font faile
[all...]
/frameworks/minikin/sample/
H A Dexample.cpp59 MinikinFont *font = new MinikinFontFreeType(face); local
60 family->addFont(font);
68 MinikinFont *font = new MinikinFontFreeType(face); local
69 family->addFont(font);
H A Dexample_skia.cpp63 MinikinFont *font = new MinikinFontSkia(skFace); local
64 family->addFont(font);
72 MinikinFont *font = new MinikinFontSkia(skFace); local
73 family->addFont(font);
121 const char *style = "font-size: 32; font-weight: 700;";
/frameworks/webview/chromium/java/com/android/webview/chromium/
H A DContentSettingsAdapter.java275 public synchronized void setStandardFontFamily(String font) { argument
276 if (TRACE) Log.d(LOGTAG, "setStandardFontFamily=" + font);
277 mAwSettings.setStandardFontFamily(font);
286 public synchronized void setFixedFontFamily(String font) { argument
287 if (TRACE) Log.d(LOGTAG, "setFixedFontFamily=" + font);
288 mAwSettings.setFixedFontFamily(font);
297 public synchronized void setSansSerifFontFamily(String font) { argument
298 if (TRACE) Log.d(LOGTAG, "setSansSerifFontFamily=" + font);
299 mAwSettings.setSansSerifFontFamily(font);
308 public synchronized void setSerifFontFamily(String font) { argument
319 setCursiveFontFamily(String font) argument
330 setFantasyFontFamily(String font) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DHarfBuzzNGFaceSkia.cpp164 hb_font_t* font = hb_font_create(face); local
169 hb_font_set_ppem(font, x_ppem, y_ppem);
170 hb_font_set_scale(font, HBFloatToFixed(sizeX), HBFloatToFixed(sizeY));
173 hb_font_set_funcs(font, harfbuzzSkiaGetFontFuncs(), data, destroyHarfBuzzFontData);
175 return font;
H A DMinikinSkia.cpp45 static void MinikinFontSkia_SetSkiaPaint(const MinikinFont* font, SkPaint* skPaint, const MinikinPaint& paint) { argument
51 // Apply font fakery on top of user-supplied flags.
52 MinikinFontSkia::populateSkPaint(skPaint, font, paint.fakery);
118 void MinikinFontSkia::populateSkPaint(SkPaint* paint, const MinikinFont* font, FontFakery fakery) { argument
119 paint->setTypeface(reinterpret_cast<const MinikinFontSkia*>(font)->GetSkTypeface());
H A DMinikinSkia.h50 static void populateSkPaint(SkPaint* paint, const MinikinFont* font, FontFakery fakery);
H A DTypefaceImpl.cpp75 MinikinFont *font = new MinikinFontSkia(skFace); local
76 family->addFont(font);
77 font->Unref();
79 ALOGE("failed to create font %s", fn);
151 MinikinFont* mf = firstFamily->getClosestMatch(defaultStyle).font;
/frameworks/minikin/include/minikin/
H A DMinikinFont.h35 MinikinPaint() : font(0), size(0), scaleX(0), skewX(0), letterSpacing(0), paintFlags(0),
42 MinikinFont *font; member in struct:android::MinikinPaint
H A DFontFamily.h34 // font rendering.
63 // FontStyle represents all style information needed to select an actual font
117 MinikinFont* font; member in struct:android::FakedFont
130 // Add font to family, extracting style information from the font
/frameworks/base/core/java/android/webkit/
H A DWebSettings.java43 * <li>TEXT_AUTOSIZING boosts font size of paragraphs based on heuristics to make
659 * Sets the standard font family name. The default is "sans-serif".
661 * @param font a font family name
663 public abstract void setStandardFontFamily(String font); argument
666 * Gets the standard font family name.
668 * @return the standard font family name as a string
674 * Sets the fixed font family name. The default is "monospace".
676 * @param font a font famil
678 setFixedFontFamily(String font) argument
693 setSansSerifFontFamily(String font) argument
708 setSerifFontFamily(String font) argument
723 setCursiveFontFamily(String font) argument
738 setFantasyFontFamily(String font) argument
[all...]
/frameworks/minikin/libs/minikin/
H A DFontFamily.cpp159 const Font& font = mFonts[i]; local
160 int match = computeMatch(font.style, style);
162 bestFont = &font;
168 result.font = NULL;
170 result.font = bestFont->typeface;
191 MinikinFont* typeface = getClosestMatch(defaultStyle).font;
199 ALOGD("font coverage length=%d, first ch=%x\n", mCoverage->length(),
H A DLayout.cpp109 uint32_t mId; // for the font collection
287 MinikinFont* font = reinterpret_cast<MinikinFont*>(userData); local
289 bool ok = font->GetTable(tag, NULL, &length);
297 ok = font->GetTable(tag, reinterpret_cast<uint8_t*>(buffer), &length);
311 MinikinFont* font = paint->font; local
319 bool ok = font->GetGlyph(unicode, &glyph_id);
329 MinikinFont* font = paint->font; local
330 float advance = font
367 hb_font_t* font = hb_font_create(face); local
400 hb_font_t* font = create_hb_font(face.font, &ctx->paint); local
[all...]
H A DFontCollection.cpp51 MinikinFont* typeface = family->getClosestMatch(defaultStyle).font;
96 // Implement heuristic for choosing best-match font. Here are the rules:
97 // 1. If first font in the collection has the character, it wins.
98 // 2. If a font matches both language and script, it gets a score of 4.
99 // 3. If a font matches just language, it gets a score of 2.
101 // 5. Highest score wins, with ties resolved to the first font.
116 // First font family in collection always matches
152 // Characters where we want to continue using existing font run instead of
180 // Continue using existing font as long as it has coverage and is whitelisted
186 // Workaround for Emoji keycap until we implement per-cluster font
[all...]
/frameworks/base/libs/hwui/
H A DAndroid.mk12 font/CacheTexture.cpp \
13 font/Font.cpp \
/frameworks/base/graphics/java/android/graphics/
H A DTypeface.java37 * The Typeface class specifies the typeface and intrinsic style of a font.
106 * If null is passed for the name, then the "default" font will be chosen.
110 * @param familyName May be null. The name of the font family.
126 * null, this selects from the default font's family.
177 * Create a new typeface from the specified font data.
179 * @param path The file name of the font data in the assets directory
194 * Create a new typeface from the specified font file.
196 * @param path The path to the font data.
204 * Create a new typeface from the specified font file.
206 * @param path The full path to the font dat
[all...]
/frameworks/base/libs/hwui/font/
H A DFont.cpp63 ALOGW("Could not query the inverse lookup transform for this font");
492 Font* font = state->mActiveFonts.get(description); local
494 if (!font) {
495 font = new Font(state, description);
496 state->mActiveFonts.put(description, font);
498 font->mIdentityTransform = matrix.isIdentity();
500 return font;
/frameworks/rs/
H A DrsScriptC_LibGL.cpp268 void rsrBindFont(Context *rsc, Font *font) { argument
269 CHECK_OBJ(font);
270 rsi_ContextBindFont(rsc, font);
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DBatteryMeterView.java229 Typeface font = Typeface.create("sans-serif-condensed", Typeface.BOLD);
230 mTextPaint.setTypeface(font);
235 font = Typeface.create("sans-serif", Typeface.BOLD);
236 mWarningTextPaint.setTypeface(font);

Completed in 470 milliseconds

12