I'm trying to embed a font into the PDF which works perfectly, except when
special characters are used. 

First of i register a directory       
 FontFactory.registerDirectory("./fonts")

After this the font name is checked and used if it's registered which in my
case it is: 
if FontFactory.isRegistered(font.downcase)
          return new Font(FontFactory.getFont(font, BaseFont.WINANSI,
BaseFont.EMBEDDED).getBaseFont());

This works fine as mentioned above but only with a-zA-Z0-9 but when using
umlauts etc. it's not displayed. While those are supported by the font (Gill
Sans).

When i look in the pdf document i can see the font is embedded but gives me
little information, also, the information is less then the other Adobe
Reader support fonts e.g.:

GillSans(Embedded SubSet)
 Type: True Type
 Encoding: Ansi

While Helvetica is better explained:

Helvetica
 Type: Type 1
 Encoding: Ansi
 Actual Font: Helvetica
 Actual Font Type: True Type 


Any tips/directions or alike are welcome, Thanks in advanced!
-- 
View this message in context: 
http://www.nabble.com/Problem-with-embedded-font-tp21053113p21053113.html
Sent from the iText - General mailing list archive at Nabble.com.


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php

Reply via email to