Lines Matching refs:font
128 // 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 = loadFont(path);
311 if (font == null) {
315 fontInfo.mFont = font;
327 for (FontInfo font : mFonts) {
328 if (font.mWeight == weight && font.mIsItalic == isItalic) {
348 * Try to derive a font from {@code srcFont} for the style in {@code outFont}.
350 * {@code outFont} is updated to reflect the style of the derived font.
351 * @param srcFont the source font
352 * @param outFont contains the desired font style. Updated to contain the derived font and
361 // Embolden the font if required.
366 // Italicize the font if required.
370 // The desired font is plain, but the src font is italics. We can't convert it back. So
371 // we update the value to reflect the true style of the font we're deriving.