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

/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DFontLoader.java139 * @param style a 1-item array containing the requested style. Based on the font being read
142 * @return the font object or null if no match could be found.
152 // get the font objects from the main list based on family.
155 result.add(info.font[style]);
162 result.add(info.font[style]);
173 result.add(info.font[style]);
180 final Font[] font = new Font[4]; // Matches the 4 type-face styles. field in class:FontLoader.FontInfo
254 // if has a normal font file, add to the list
255 if (mFontInfo.font[Typeface.NORMAL] != null) {
258 // create missing font style
[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/data/fonts/
H A DAndroid.mk21 # create symlink for given font
22 # $(1): new font $(2): link target
24 define create-font-symlink
36 # We may only afford small font footprint.
38 $(eval $(call create-font-symlink,DroidSans.ttf,Roboto-Regular.ttf))
39 $(eval $(call create-font-symlink,DroidSans-Bold.ttf,Roboto-Bold.ttf))
86 # Build the rest font files as prebuilt.
90 define build-one-font-module
117 $(eval $(call create-font-symlink,Roboto-Light.ttf,Roboto-Regular.ttf))
118 $(eval $(call create-font
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBidiRenderer.java21 import java.awt.font.FontRenderContext;
22 import java.awt.font.GlyphVector;
32 * Render the text by breaking it into various scripts and using the right font for each script.
43 FontInfo font; field in class:BidiRenderer.ScriptRun
90 // We break the text into scripts and then select font based on it and then render each of
95 x = renderScript(run.start, run.limit, run.font, flag, advances, advancesIndex, draw,
103 * Render a script run. Use the preferred font to render as much as possible. This also
105 * preferred font.
130 for (FontInfo font : fonts) {
131 canDisplayUpTo = font
158 render(int start, int limit, FontInfo font, int flag, float advances[], int advancesIndex, boolean draw, float x, float y) argument
[all...]
H A DTypeface_Delegate.java111 // font loader has not been initialized yet, add the delegate to a list of delegates
112 // to init when the font loader is initialized.
131 // font loader has not been initialized yet, add the delegate to a list of delegates
132 // to init when the font loader is initialized.
154 Font font = Font.createFont(Font.TRUETYPE_FONT, f);
155 if (font != null) {
156 Typeface_Delegate newDelegate = new Typeface_Delegate(font);
161 String.format("Unable to load font %1$s", relativePath),
172 // return a copy of the base font
198 private Typeface_Delegate(Font font) { argument
[all...]
H A DPaint_Delegate.java33 import java.awt.font.FontRenderContext;
104 * Returns the list of {@link Font} objects. The first item is the main font, the rest
105 * are fall backs for characters not present in the main font.
1136 // create new font objects as well as FontMetrics, based on the current text size
1139 for (Font font : fonts) {
1141 info.mFont = font.deriveFont(mTextSize);
/frameworks/webview/chromium/java/com/android/webview/chromium/
H A DContentSettingsAdapter.java253 public synchronized void setStandardFontFamily(String font) { argument
254 mAwSettings.setStandardFontFamily(font);
263 public synchronized void setFixedFontFamily(String font) { argument
264 mAwSettings.setFixedFontFamily(font);
273 public synchronized void setSansSerifFontFamily(String font) { argument
274 mAwSettings.setSansSerifFontFamily(font);
283 public synchronized void setSerifFontFamily(String font) { argument
284 mAwSettings.setSerifFontFamily(font);
293 public synchronized void setCursiveFontFamily(String font) { argument
294 mAwSettings.setCursiveFontFamily(font);
303 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 DTextLayoutCache.cpp860 hb_font_t* font = createFont(face, &mShapingPaint, sizeX, sizeY); local
869 hb_shape(font, mBuffer, NULL, 0);
870 hb_font_destroy(font);
/frameworks/base/core/java/android/webkit/
H A DWebSettings.java42 * <li>TEXT_AUTOSIZING boosts font size of paragraphs based on heuristics to make
689 * Sets the standard font family name. The default is "sans-serif".
691 * @param font a font family name
693 public synchronized void setStandardFontFamily(String font) { argument
698 * Gets the standard font family name.
700 * @return the standard font family name as a string
708 * Sets the fixed font family name. The default is "monospace".
710 * @param font a font famil
712 setFixedFontFamily(String font) argument
731 setSansSerifFontFamily(String font) argument
750 setSerifFontFamily(String font) argument
769 setCursiveFontFamily(String font) argument
788 setFantasyFontFamily(String font) argument
[all...]
/frameworks/base/libs/hwui/
H A DAndroid.mk11 font/CacheTexture.cpp \
12 font/Font.cpp \
H A DFontRenderer.cpp82 // texture binding will be performed by the font renderer as
679 Font* font = Font::create(this, paint, matrix); local
680 font->precache(paint, text, numGlyphs);
691 ALOGE("No font set");
709 ALOGE("No font set");
720 void FontRenderer::removeFont(const Font* font) { argument
721 mActiveFonts.remove(font->getDescription());
723 if (mCurrentFont == font) {
H A DFontRenderer.h29 #include "font/FontUtil.h"
30 #include "font/CacheTexture.h"
31 #include "font/CachedGlyphInfo.h"
32 #include "font/Font.h"
177 void removeFont(const Font* font);
/frameworks/base/libs/hwui/font/
H A DFont.cpp63 ALOGW("Could not query the inverse lookup transform for this font");
477 Font* font = state->mActiveFonts.get(description); local
479 if (!font) {
480 font = new Font(state, description);
481 state->mActiveFonts.put(description, font);
483 font->mIdentityTransform = matrix.isIdentity();
485 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);
H A DrsFont.h184 void precacheLatin(Font *font);
208 // Render state for the font
H A DrsContext.cpp830 Font *font = static_cast<Font *>(vfont); local
831 rsc->setFont(font);
H A DrsFont.cpp57 ALOGE("Unable to initialize font %s", name);
67 ALOGE("Unable to set font size on %s", name);
258 // Let the font state figure out where to put the bitmap
736 void FontState::precacheLatin(Font *font) { argument
742 font->getCachedUTFChar((int32_t)mLatinPrecache[precacheIdx]);
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DBatteryMeterView.java209 Typeface font = Typeface.create("sans-serif-condensed", Typeface.NORMAL);
210 mTextPaint.setTypeface(font);
215 font = Typeface.create("sans-serif", Typeface.BOLD);
216 mWarningTextPaint.setTypeface(font);
/frameworks/base/media/java/android/media/
H A DTimedText.java183 * ID of the font. This ID will be used to choose the font
184 * to be used from the font list.
204 * The size of the font
218 * @param fontId the ID of the font.
222 * @param fontSize the size of the font.
240 * Helper class to hold the font ID and name.
246 * The font ID
251 * The font name
257 * @param id the font I
[all...]
/frameworks/rs/scriptc/
H A Drs_graphics.rsh374 * Binds the font object to be used for all subsequent font rendering calls
375 * @param font object to bind
378 rsgBindFont(rs_font font);
380 * Sets the font color for all subsequent rendering calls

Completed in 359 milliseconds