Lines Matching defs:font
137 * @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.
236 // if has a normal font file, add to the list
237 if (mFontInfo.font[Typeface.NORMAL] != null) {
240 // create missing font styles, order is important.
241 if (mFontInfo.font[Typeface.BOLD_ITALIC] == null) {
244 if (mFontInfo.font[Typeface.ITALIC] == null) {
247 if (mFontInfo.font[Typeface.BOLD] == null) {
264 Font font = getFont(fileName);
265 if (font != null) {
267 mFontInfo.font[Typeface.NORMAL] = font;
269 mFontInfo.font[Typeface.BOLD] = font;
271 mFontInfo.font[Typeface.ITALIC] = font;
273 mFontInfo.font[Typeface.BOLD_ITALIC] = font;
275 mFontInfo.font[Typeface.NORMAL] = font;
297 if (mFontInfo.font[basedOn] != null) {
298 mFontInfo.font[toCompute] =
299 mFontInfo.font[basedOn].deriveFont(AWT_STYLES[toCompute]);
304 // we really shouldn't stop there. This means we don't have a NORMAL font...