On 3/29/06, Chris Fong <[EMAIL PROTECTED]> wrote:
> Hi everyone,
>
> I'm a relative newbie so forgive me if this question has been asked before.
> I want my application to generate a pdf that uses a TTF font, and looking at
> the example docs I would do something like this:
>
> BaseFont bfComic =
> BaseFont.createFont("c:\\windows\\fonts\\comicbd.ttf",
> BaseFont.CP1252, BaseFont.NOT_EMBEDDED);
> Font font = new Font(bfComic, 12);
>
> This is all well and good on Windows, but my application is supposed to work
> on other platforms (ie. Linux, OS X). What I've tried so far is to copy the
> font I want to use into my application directory so that I don't need to
> include the absolute path to the font. Is this the best way to do this?
> Can I stick the font in a jar file?
Are you going to be distributing this application? Might there be
font licensing issues if you "embed" the font in this way (or, put
another way, distribute the TTF file with your application)?
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions