On 13/11/05, Antoine <[EMAIL PROTECTED]> wrote:
> Hi,
> I need to use arial fonts in the pdfs I'm creating but don't want them
> embedded. I know very little about how fonts work - is this possible?
> I have put the BaseFont.NOT_EMBEDDED flag in my font creation methods
> but the fonts get embedded anyway...
This is how I am doing it:
FontFactory.registerDirectories();
linkFont = FontFactory.getFont(
"arial", BaseFont.IDENTITY_H,
BaseFont.NOT_EMBEDDED, 12, Font.UNDERLINE, new Color(0x00, 0x00, 0xFF));
bodyFont = FontFactory.getFont("arial",
BaseFont.IDENTITY_H, BaseFont.NOT_EMBEDDED, 12);
In the example UsingFontFactory.java just by changing the
BaseFont.EMBEDDED to BaseFont.NOT_EMBEDDED stops the embedding. What
am I doing wrong?
Cheers
Antoine
--
This is where I should put some witty comment.
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions