|
|
|
the replacement has moved to FontUtilities, so the following line does it all:
String windowsFontName = FontUtilities.getWindowsFontName(fontName); In FontUtilies you'll find: windowsFonts.setProperty("Symbol", "Arial Unicode MS"); windowsFonts.setProperty("ZapfDingbats", "Arial Unicode MS"); and a happy new year :) Steffen ok, I am confused now. Is this bug actually producing the wrong result?
Your patch shows you remove the replacement of the fonts because you say it is done in FontUtilities. But there there was no change. I am almost sure I added the font replacement because something was not working with the current FontUtilities for EMF. Happy new year too. Regards Mark FontUtilies are allready fixed since rev. 9329 (
Regards Steffen |
||||||||||||||||||||||||||||||||||||||||||||||
fontName = replaceFonts.getProperty(fontName, fontName);
which would replace Symbol and ZapfDingbats with Arial Unicode, since
the former two fonts are basically ranges in Unicode.
What did you put in return? If I do not replace the fonts,
Symbol will print normal characters.
// for special fonts (Symbol, ZapfDingbats) we choose a standard
// font and
// encode using unicode.
String fontName = font.getName();
string = FontEncoder.getEncodedString(string, fontName);
fontName = replaceFonts.getProperty(fontName, fontName);
let me know.
Mark