/** * Constructs an AWTFontFamily with the specified familyName. * * @param familyName The name of the font family. */ public AWTFontFamily(String familyName) { this(new GVTFontFace(familyName)); }
/** * Constructs an UnresolvedFontFamily with the specified familyName. * * @param familyName The name of the font family. */ public UnresolvedFontFamily(String familyName) { this(new GVTFontFace(familyName)); }
/** * Constructs an AWTFontFamily with the specified familyName. * * @param familyName The name of the font family. */ public AWTFontFamily(String familyName) { this(new GVTFontFace(familyName)); }
/** * Constructs an UnresolvedFontFamily with the specified familyName. * * @param familyName The name of the font family. */ public UnresolvedFontFamily(String familyName) { this(new GVTFontFace(familyName)); }
/** * Constructs an AWTFontFamily with the specified familyName. * * @param familyName The name of the font family. */ public AWTFontFamily(String familyName) { this(new GVTFontFace(familyName)); }
@Override public GVTFontFace getFontFace() { return new GVTFontFace(this.fontFamily); }
/** * Constructs an UnresolvedFontFamily with the specified familyName. * * @param familyName The name of the font family. */ public UnresolvedFontFamily(String familyName) { this(new GVTFontFace(familyName)); }
public FOPGVTFontFamily resolve(String familyName) { return resolve(familyName, new GVTFontFace(familyName)); }
public FOPGVTFontFamily getFamilyThatCanDisplay(char c) { Map<String, Typeface> fonts = fontInfo.getFonts(); for (Typeface font : fonts.values()) { if (font.hasChar(c)) { String fontFamily = font.getFamilyNames().iterator().next(); return new FOPGVTFontFamily(fontInfo, fontFamily, new FontTriplet(fontFamily, Font.STYLE_NORMAL, Font.WEIGHT_NORMAL), new GVTFontFace(fontFamily)); } } return null; }
@Override public FOPGVTFontFamily getFamilyThatCanDisplay(char c) { Map<String, Typeface> fonts = fontInfo.getFonts(); for (Typeface font : fonts.values()) { // TODO why don't DB fonts work with GOCA?!? if (font.hasChar(c) && !(font instanceof DoubleByteFont)) { String fontFamily = font.getFamilyNames().iterator().next(); if (font instanceof DoubleByteFont) { notifyDBFontRejection(font.getFontName()); } else { return new FOPGVTFontFamily(fontInfo, fontFamily, new FontTriplet(fontFamily, Font.STYLE_NORMAL, Font.WEIGHT_NORMAL), new GVTFontFace(fontFamily)); } } } return null; }