Hi Dave > I am trying to create a bitmap from a windows metafile. The problem I am > having is I get a EXTTEXTOUT with a string that is a single byte of 0xE5 > (keep in mind that a metafile treats strings as a sequence of bytes and I > assume DBCS bytes - not unicode). > > The font I am using is symbol and char 0xE5 is the SUM symbol. But when I > set the font to symbol and write that string, I get the undefined char box > char. > > I think it looks for the unicode glyph 0xE5 in symbol and it doesn't have > one. How can I do a Graphics2D.drawString() where it does not look for > unicode values in the font but instead gets the un-mapped value?
I had to do this the other way round. I have a string in Java which is Unicode and want to display the corresponding character in the Symbolfont in a eps-file. I had to use a map to map all the Unicode values for the symbols to the codes used in the Symbolfont. I think you have to do it the opposite way. Map the value you get to the corresponding Unicode value, when the font is set to Symbol. This may help you: org.freehep.graphicsio.font.encoding.CharTableConverter see: http://java.freehep.org/vectorgraphics/index.html Regards, Matthias This message is for information purposes only. It may not be secure or error-free. The Swiss National Bank does not accept legal responsibility for any consequences resulting from e-mail use. ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
