Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

Re: [iText-questions] Disabling font embedding does not work

Bruno

2006-08-11

Replies:

Michael J. Mueller wrote:

>Hello,
>
>I'm using iText 1.4.3. I load fonts with the FontFactory in the following way:
>
>FontFactory.getFont(m_strFontFamily, BaseFont.IDENTITY_H,
>BaseFont.NOT_EMBEDDED, m_iFontHeight, iStyle);
>
>The result is always the same whether I use BaseFont.NOT_EMBEDDED or
>BaseFont.EMBEDDED.
>
I think that's documented:
some fonts are NEVER embedded, even if you set embedded = true
(for instance the Standard Type1 fonts aka Base14 fonts).
Other fonts are ALWAYS embedded, even if you set embedded = false
(this is the case if you use IDENTITY_H or IDENTITY_V).
This is a consequence of the way characters are referred to in a PDF file.
best regards,
Bruno

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
iText-questions@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
©2008 junlu.com - Jax Systems, LLC, U.S.A.