What special characters? Your code creates the fonts but thare's no code
on how you actually create the text.
Paulo
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Mark Wassermann
> Sent: Tuesday, December 18, 2007 2:30 PM
> To: [email protected]
> Subject: [iText-questions] itext and junicode
>
> Hi List
>
> I use iText to generate PDF files for historical documents using the
> font junicode. It is a speial unicode font, that was developed by
> medievists to be usesd in historical contexts. It works fine
> for normal
> charchters in iText, but do not work with this special characters used
> in an historical context.
>
> Here is the code sniped In with I define the fonts:
> --- java code ---
> junicode =
> BaseFont.createFont(data.getServletContext().getRealPath("/") +
> "fonts/Junicode-Regular.ttf",
> BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
> junicodeBold =
> BaseFont.createFont(data.getServletContext().getRealPath("/") +
> "fonts/Junicode-Bold.ttf",
> BaseFont.IDENTITY_H, BaseFont.EMBEDDED);
> junicodeItalic =
> BaseFont.createFont(data.getServletContext().getRealPath("/")
> + "fonts/Junicode-Italic.ttf",
> BaseFont.IDENTITY_H,
> BaseFont.EMBEDDED);
> nFont = new Font(junicode, 12);
> bFont = new Font(junicodeBold, 12);
> iFont = new Font(junicodeItalic, 12);
> sFont = new Font(junicode, 10);
> --- java code ---
> I found this on the internet referint to use with unicode
> encoding, but
> it is not workung properly.
>
> thx4help
> Mark
Aviso Legal:
Esta mensagem é destinada exclusivamente ao destinatário. Pode conter
informação confidencial ou legalmente protegida. A incorrecta transmissão desta
mensagem não significa a perca de confidencialidade. Se esta mensagem for
recebida por engano, por favor envie-a de volta para o remetente e apague-a do
seu sistema de imediato. É proibido a qualquer pessoa que não o destinatário de
usar, revelar ou distribuir qualquer parte desta mensagem.
Disclaimer:
This message is destined exclusively to the intended receiver. It may contain
confidential or legally protected information. The incorrect transmission of
this message does not mean the loss of its confidentiality. If this message is
received by mistake, please send it back to the sender and delete it from your
system immediately. It is forbidden to any person who is not the intended
receiver to use, distribute or copy any part of this message.
-------------------------------------------------------------------------
SF.Net email is sponsored by:
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services
for just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
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/