* Returns the font associated with this rule or element.
*/
public GVTFontFamily getFontFamily(BridgeContext ctx) {
String name = FontFamilyResolver.lookup(familyName);
if (name != null) {
GVTFontFace ff = createFontFace(name, this);
return new AWTFontFamily(ff);
}
Iterator iter = srcs.iterator();
while (iter.hasNext()) {
Object o = iter.next();
if (o instanceof String) {
String str = (String)o;
name = FontFamilyResolver.lookup(str);
if (name != null) {
GVTFontFace ff = createFontFace(str, this);
return new AWTFontFamily(ff);
}
} else if (o instanceof ParsedURL) {
try {
GVTFontFamily ff = getFontFamily(ctx, (ParsedURL)o);