Dear,
I am construction a font from a .pfm file as it says in the book, i.e.
font_normal_10 = new Font(
BaseFont.createFont("C:\\Windows\\Fonts\\Sun5____.pfm","",BaseFont.EMBEDDED),
10 );
When I add text using this font to the PDF, it works fine for most
(ASCII) characters, but when I have special characters, like the euro
sign (\u20AC) or eastern-european characters (\u00E7) they are missing
from my text.
I have checked with Character Map, and these characters do seem to be
included in the font, so I guess there is something wrong with the
encoding of the font. I have experimented with some encodings but to no
avail.
In the same PDF I use the same characters without any problem with a
Verdana TTF that I included as follows
FontFactory.register("C:\\Windows\\Fonts\\verdana.TTF", "Verdana");
font_verdana_10 = FontFactory.getFont("Verdana", "winansi", true, 10,
Font.NORMAL);
Anyone any suggestions?
Best regards,
Werner
------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
lucky parental unit. See the prize list and enter to win:
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://www.itextpdf.com/book/
Check the site with examples before you ask questions:
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/