for (int i = 0; i < charSet.length && psFont != null; i++){
/* Get the encoding of the run of text.
*/
CharsetString cs = charSet[i];
CharToByteConverter fontCS = cs.fontDescriptor.fontCharset;
String charset;
/*
* CharToByteSymbol perhaps should return "symbol" for encoding.
* Similarly CharToByteX11Dingbats should return "dingbats"
* Forced to check for win32 & x/unix names for these converters.
*/
if (fontCS instanceof CharToByteSymbol) {
charset = "symbol";
} else if (fontCS.toString().equals("WingDingsFontCharset") ||
fontCS.toString().equals("X11Dingbats")) {
charset = "dingbats";
} else {
charset = makeCharsetName(fontCS.getCharacterEncoding(),
cs.charsetChars);
}
String style = PlatformFont.styleStr(font.getStyle());