Hi;

In case anyone else hits this - the answer is to or 0xf000 to the char value
- then it takes the low byte and goes straight to that char in the font - no
mapping.

Thanks - dave

 
David Thielen
www.windwardreports.com
303-499-2544
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David
Thielen
Sent: Wednesday, October 26, 2005 11:04 PM
To: itext
Subject: [iText-questions] Not map fonts to unicode

Hi;

This is a java, not an iText question. But it has to do with font mapping
and  there are some very smart font/java people here so I figured it can't
hurt to ask.

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?

thanks - dave

 

 

David Thielen

www.windwardreports.com

303-499-2544

 

 




-------------------------------------------------------
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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions



-------------------------------------------------------
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
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to