Hi sorry its getting late and i had a lazy head Greek wasn't supported by the font.
mrtin wrote: > > Hi, > i'm trying to write Unicode text with an OpenType font. > But it doesn't work. When i use my OpenType font the unicode letters > doesn't show in the pdf. > > Doesn't itext support Unicode with OpenType fonts? > > (The OpenType font works fine if i use the BaseFont.CP1252 for texts with > characters that is supported with that encoding) > > > I tested with Unicode example in the tutorial > http://itextdocs.lowagie.com/examples/com/lowagie/examples/fonts/UnicodeExample.java > > and changed line 52 from: > > BaseFont bfComic = BaseFont.createFont("c:\\windows\\fonts\\comic.ttf", > BaseFont.IDENTITY_H, BaseFont.EMBEDDED); > > to: > > BaseFont bfComic = BaseFont.createFont("C:\\Documents and > Settings\\MAR\\JavaApplication1\\GillSansMTPro-Book.otf", > BaseFont.IDENTITY_H, BaseFont.EMBEDDED); > > > Here are the resulting files: > http://martin.arnsten.googlepages.com/unicode_comic.pdf > > http://martin.arnsten.googlepages.com/unicode_otf.pdf > > /martin > -- View this message in context: http://www.nabble.com/Unicode-with-OpenType-font-tf2699665.html#a7528476 Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/
