// for each font family
if (families != null) {
for (int i = 0; i < families.length; i++) {
Font font = resolveFont(ctx, families[i], size, weight, style, variant);
if (font != null) {
return new AWTFSFont(font);
}
}
}
// if we get here then no font worked, so just return default sans
//Uu.p("pulling out: -" + available_fonts_hash.get("SansSerif") + "-");
String family = "SansSerif";
if (style == IdentValue.ITALIC) {
family = "Serif";
}
Font fnt = createFont(ctx, (Font) available_fonts_hash.get(family), size, weight, style, variant);
instance_hash.put(getFontInstanceHashName(ctx, family, size, weight, style, variant), fnt);
//Uu.p("subbing in base sans : " + fnt);
return new AWTFSFont(fnt);
}