> -----Original Message-----
> From: Norman Hendrich [SMTP:[EMAIL PROTECTED]
> Sent: Tuesday, October 14, 2003 14:42
> To: [EMAIL PROTECTED]
> Subject: [iText-questions] Font Embedding (Math symbols)
>
> Hello,
>
> last week, one user of my Java-written jfig graphics editor asked
> me about a pure-Java PDF export option and pointed me to the itext
> project. I just hacked a simple class that interfaces jfig to itext
> via the PDFGraphics2D approach - and basic rendering including all
> line attributes and embedded images works pretty well.
>
> However, there is one important problem. When exporting files that
> contain Unicode characters outside the standard (0x00 .. 0xff) range,
> namely the math symbols included in the JDKs lucida.ttf files, those
> characters are lost. This is a little annoying, as the support of
> math formulae would be the main advantage of the pure-Java approach
> over the existing fig2dev-ghostscript toolchain.
>
> Many of the itext tutorial examples demonstrate how easy it is to embed
> Unicode characters (outside the 00 .. 0xFF range) into the PDF documents,
> but none of them seem to use PDFGraphics2D or the Java way of font
> handling ("SansSerif", "MonoSpaced", ...), which I need to re-use my
> existing object rendering code.
>
> Due to the way jfig currently formats equations - aligning boxes of single
> characters - I would also prefer to keep the Lucida fonts instead of
> getting them replaced with Helvetica and Times automagically. The font
> metrics are too different, resulting in horrible formatting.
>
>
> Therefore, I have the following questions:
>
> * How do I convince itext to not replace the Lucida font(s) with the
> Postscript/PDF equivalents?
>
Register the font in DefaultFontMapper.
> * How do I get the PDFGraphics2D and/or DefaultFontMapper to embed
> all required Unicode characters into the PDF file?
>
Set the encoding to Identity-H also in DefaultFontMapper. See the
example free_chart.java in itextpdf.sf.net.
> * I am aware of the licensing issues around the JDK Lucida fonts.
> Do you know of any other truetype fonts that (1) are free, (2) can
> be used with itext, and (3) include the math and symbol range of
> the Unicode character set?
>
Arial Unicode, Lucida Sans Unicode. You can get them from
http://shlimazl.nm.ru/rus/mixfonts.htm. I don't know how legal it is to use
them outside windows.
Best Regards,
Paulo Soares
>
>
> If you want to know why I would like to embed the Lucida fonts,
> check out the original on-screen rendering (screenshot) and the
> resulting itext-generated PDF. I uploaded the files to a hidden
> directory on my jfig project page:
>
> tams-www.informatik.uni-hamburg.de/applets/jfig/itext/
>
> Please answer via mail, as I am not (yet) subscribed to itext-questions.
>
> Thanks in advance,
> Norman
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> SourceForge.net hosts over 70,000 Open Source Projects.
> See the people who have HELPED US provide better services:
> Click here: http://sourceforge.net/supporters.php
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions