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

/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/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/base/core/jni/android/graphics/
H A DTextLayoutCache.cpp332 void TextLayoutCacheValue::initShaperItem(HB_ShaperItem& shaperItem, HB_FontRec* font, argument
337 font->klass = &harfbuzzSkiaClass;
338 font->userData = 0;
343 font->x_ppem = 1;
344 font->y_ppem = 1;
345 font->x_scale = 1;
346 font->y_scale = 1;
351 // Define font data
359 shaperItem.font = font;
422 HB_FontRec font; local
[all...]
/frameworks/base/libs/rs/
H A DrsScriptC_LibGL.cpp321 void rsrBindFont(Context *rsc, Script *sc, Font *font) { argument
322 CHECK_OBJ(font);
323 rsi_ContextBindFont(rsc, font);
H A DrsContext.cpp635 Font *font = static_cast<Font *>(vfont); local
636 rsc->setFont(font);
H A DrsFont.cpp54 LOGE("Unable to initialize font %s", name);
64 LOGE("Unable to set font size on %s", name);
255 // Let the font state figure out where to put the bitmap
713 void FontState::precacheLatin(Font *font) { argument
718 font->getCachedUTFChar((int32_t)mLatinPrecache[precacheIdx]);
/frameworks/base/libs/hwui/
H A DFontRenderer.cpp292 Font* font = activeFonts[i]; local
293 if (font->mFontId == fontId && font->mFontSize == fontSize &&
294 font->mFlags == flags && font->mItalicStyle == italicStyle &&
295 font->mScaleX == scaleX && font->mStyle == style &&
296 (style == SkPaint::kFill_Style || font->mStrokeWidth == strokeWidth)) {
297 return font;
510 // Make several new lines with increasing font size
[all...]
/frameworks/base/core/java/android/webkit/
H A DWebSettings.java962 * Set the standard font family name.
963 * @param font A font family name.
965 public synchronized void setStandardFontFamily(String font) { argument
966 if (font != null && !font.equals(mStandardFontFamily)) {
967 mStandardFontFamily = font;
973 * Get the standard font family name. The default is "sans-serif".
974 * @return The standard font family name as a string.
981 * Set the fixed font famil
984 setFixedFontFamily(String font) argument
1003 setSansSerifFontFamily(String font) argument
1022 setSerifFontFamily(String font) argument
1041 setCursiveFontFamily(String font) argument
1060 setFantasyFontFamily(String font) argument
[all...]

Completed in 126 milliseconds