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
--
Mark Wassermann [EMAIL PROTECTED]
-------------------------------------------------------------------------
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/