RE: Displaying characters in PDF
If the standard fonts of FOP (Helvetica, Times, Courier, Symbol and ZapfDingbats) contains the character, then you do not use additional fonts. FOP use unicode. So you must insert the unicode value (code point) of the character in your fo file. If you mean with slanted apostrophe the character with the adobe font name quoteright the code point is 2019. This is a hexadezimal value. Using the iso-8859-1 encoding you have to insert the numeric character reference in your fo file, for example: fo:block font-family=Helvetica#x2018;text#x2019;/fo:block To find the code point of a character of the Helvetica font, you can search the adobe font name of the character in chapter C.1 of the pdf reference manual http://partners.adobe.com/asn/developer/acrosdk/DOCS/pdfspec.pdf and then use the adobe glyph list http://partners.adobe.com/asn/developer/type/glyphlist.txt Rainer Garus
RE: Displaying characters in PDF
Thanks for your help Rainer. I'm fairly dumb when it comes to fonts. My problem is that I don't control the source of the character and I would expect that in most cases the characters that are a problem are in ANSI set from 127-255. From what you're saying I'll have to pre-parse the string and replace it with the matching character in Adobe. Is that right? Is there another way? Cheers Tim -Original Message- From: Rainer Garus [mailto:[EMAIL PROTECTED] Sent: Monday, 4 February 2002 4:30 To: [EMAIL PROTECTED] Subject: RE: Displaying characters in PDF If the standard fonts of FOP (Helvetica, Times, Courier, Symbol and ZapfDingbats) contains the character, then you do not use additional fonts. FOP use unicode. So you must insert the unicode value (code point) of the character in your fo file. If you mean with slanted apostrophe the character with the adobe font name quoteright the code point is 2019. This is a hexadezimal value. Using the iso-8859-1 encoding you have to insert the numeric character reference in your fo file, for example: fo:block font-family=Helvetica#x2018;text#x2019;/fo:block To find the code point of a character of the Helvetica font, you can search the adobe font name of the character in chapter C.1 of the pdf reference manual http://partners.adobe.com/asn/developer/acrosdk/DOCS/pdfspec.pdf and then use the adobe glyph list http://partners.adobe.com/asn/developer/type/glyphlist.txt Rainer Garus The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network.
Displaying characters in PDF
Hopefully someone can help me or at least point me in the right direction. My original problem was that I had a parse error because my xml had the character 0x92 (slanted apostraphe) in it. After using encoding=iso-8859-1 this problem went away. Now the character displays as a # in the PDF output. Ideally I'd like to have it displayed as it is meant to be. As the font I'm using sans-serif, which is probably Helvetica. That leaves me with a few questions: Does this base font support what I want? Should I use a different encoding? Do I have to do stuff with embedding fonts or font metrics to ensure PDF recognises this character? Cheers Tim Keen Analyst Programmer WERD Project Dept of Natural Resources Mines 4th Floor, Mineral House 41 George St Brisbane QLD 4000 (07) 3224 2559 (ph) (07) 3224 7963 (fax) [EMAIL PROTECTED] The information in this e-mail together with any attachments is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any form of review, disclosure, modification, distribution and/or publication of this e-mail message is prohibited. If you have received this message in error, you are asked to inform the sender as quickly as possible and delete this message and any copies of this message from your computer and/or your computer system network.