Searched defs:font (Results 1 - 10 of 10) sorted by relevance

/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))
113 # Build the rest font files as prebuilt.
117 define build-one-font-module
144 $(eval $(call create-font-symlink,Roboto-Light.ttf,Roboto-Regular.ttf))
145 $(eval $(call create-font
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
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
203 private Typeface_Delegate(Font font) { argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DHarfbuzzSkia.cpp191 HB_Error harfbuzzSkiaGetTable(void* font, const HB_Tag tag, HB_Byte* buffer, HB_UInt* len) argument
193 SkTypeface* typeface = static_cast<SkTypeface*>(font);
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DFontLoader.java137 * @param style a 1-item array containing the requested style. Based on the font being read
140 * @return the font object or null if no match could be found.
150 // get the font objects from the main list based on family.
153 result.add(info.font[style]);
160 result.add(info.font[style]);
171 result.add(info.font[style]);
178 final Font[] font = new Font[4]; // Matches the 4 type-face styles. field in class:FontLoader.FontInfo
236 // if has a normal font file, add to the list
237 if (mFontInfo.font[Typeface.NORMAL] != null) {
240 // create missing font style
[all...]
/frameworks/rs/
H A DrsScriptC_LibGL.cpp332 void rsrBindFont(Context *rsc, Script *sc, Font *font) { argument
333 CHECK_OBJ(font);
334 rsi_ContextBindFont(rsc, font);
H A DrsContext.cpp668 Font *font = static_cast<Font *>(vfont); local
669 rsc->setFont(font);
H A DrsFont.cpp55 ALOGE("Unable to initialize font %s", name);
65 ALOGE("Unable to set font size on %s", name);
256 // Let the font state figure out where to put the bitmap
725 void FontState::precacheLatin(Font *font) { argument
730 font->getCachedUTFChar((int32_t)mLatinPrecache[precacheIdx]);
/frameworks/base/core/java/android/webkit/
H A DWebSettings.java561 * Sets the standard font family name. The default is "sans-serif".
563 * @param font a font family name
565 public synchronized void setStandardFontFamily(String font) { argument
570 * Gets the standard font family name.
572 * @return the standard font family name as a string
580 * Sets the fixed font family name. The default is "monospace".
582 * @param font a font family name
584 public synchronized void setFixedFontFamily(String font) { argument
603 setSansSerifFontFamily(String font) argument
621 setSerifFontFamily(String font) argument
640 setCursiveFontFamily(String font) argument
659 setFantasyFontFamily(String font) argument
[all...]
H A DWebSettingsClassic.java836 public synchronized void setStandardFontFamily(String font) { argument
837 if (font != null && !font.equals(mStandardFontFamily)) {
838 mStandardFontFamily = font;
855 public synchronized void setFixedFontFamily(String font) { argument
856 if (font != null && !font.equals(mFixedFontFamily)) {
857 mFixedFontFamily = font;
874 public synchronized void setSansSerifFontFamily(String font) { argument
875 if (font !
893 setSerifFontFamily(String font) argument
912 setCursiveFontFamily(String font) argument
931 setFantasyFontFamily(String font) argument
[all...]
/frameworks/base/libs/hwui/
H A DFontRenderer.cpp442 Font* font = activeFonts[i]; local
443 if (font->mFontId == fontId && font->mFontSize == fontSize &&
444 font->mFlags == flags && font->mItalicStyle == italicStyle &&
445 font->mScaleX == scaleX && font->mStyle == style &&
446 (style == SkPaint::kFill_Style || font->mStrokeWidth == strokeWidth)) {
447 return font;
1068 ALOGE("No font se
[all...]

Completed in 362 milliseconds