String style = ((posture != null) && (posture.floatValue() > 0.0))
? "italic" : "normal";
String weight = ((taWeight != null) && (taWeight.floatValue() > 1.0))
? "bold" : "normal";
FontInfo fi = fontState.getFontInfo();
boolean found = false;
if (gvtFonts != null) {
for (Iterator i = gvtFonts.iterator(); i.hasNext(); ) {
GVTFontFamily fam = (GVTFontFamily)i.next();
String name = fam.getFamilyName();
if (fi.hasFont(name, style, weight)) {
try {
int fsize = (int)size.floatValue();
fontState = new FontState(fontState.getFontInfo(),
name, style, weight,
fsize * 1000, 0);