Lines Matching refs:font

74     // The cache has a drawback that if the font file changed after the font object was created,
156 // Skip font configuration files.
186 FontInfo font = mFonts.get(i);
187 int match = computeMatch(font, desiredStyle);
190 bestFont = font;
199 // Derive the font as required and add it to the list of Fonts.
228 // If we aren't able to load an Open Type font, don't log a warning just yet.
229 // We wait for a case where font is being used. Only then we try to log the
234 String.format("Unable to load font %1$s", relativePath),
293 /*package*/ static boolean nAddFont(long builderPtr, ByteBuffer font, int ttcIndex,
300 /*package*/ static boolean nAddFontWeightStyle(long builderPtr, ByteBuffer font,
352 // renew the font's lease.
365 Font font = Font.createFont(Font.TRUETYPE_FONT, fontStream);
367 fontInfo.mFont = font;
369 fontInfo.mWeight = font.isBold() ? BOLD_FONT_WEIGHT : DEFAULT_FONT_WEIGHT;
373 fontInfo.mIsItalic = isItalic == RESOLVE_BY_FONT_TABLE ? font.isItalic() :
378 Bridge.getLog().error(LayoutLog.TAG_MISSING_ASSET, "Unable to load font " + path, e,
387 "Unable to load font " + path, e, path);
401 // exception and log it, but continue with rest of the rendering, without loading this font.
441 // Set valid to true, even if the font fails to load.
443 Font font = loadFont(path);
444 if (font == null) {
448 fontInfo.mFont = font;
450 fontInfo.mIsItalic = italic == RESOLVE_BY_FONT_TABLE ? font.isItalic() : italic == 1;
462 FontInfo font = mFonts.get(i);
463 if (font.mWeight == weight && font.mIsItalic == isItalic) {
483 * Try to derive a font from {@code srcFont} for the style in {@code outFont}.
485 * {@code outFont} is updated to reflect the style of the derived font.
486 * @param srcFont the source font
487 * @param outFont contains the desired font style. Updated to contain the derived font and
497 // Embolden the font if required.
502 // Italicize the font if required.
506 // The desired font is plain, but the src font is italics. We can't convert it back. So
507 // we update the value to reflect the true style of the font we're deriving.