|
iText BaseFont loading from classpath
Message-ID:<9d27868f-6c64-4dff-9aca-4630e3cc5820@17g2000hsk.googlegroups.com>
Subject:iText, BaseFont loading from classpath
Date:Tue, 21 Oct 2008 15:17:38 +0100
I want to create a web app .war file with no outside dependencies and
therefore would like to create a BaseFont from the classpath, rather
than from a file. Is this possible?
I only see BaseFont.createFont("/filename", pointSize, style);
Thanks
Message-ID:<f0771d41-7049-449b-95d7-0b3907563f49@k30g2000hse.googlegroups.com>
Subject:Re: iText, BaseFont loading from classpath
Date:Wed, 22 Oct 2008 16:12:14 +0100
On Oct 21, 3:17=A0pm, Rick <RickPolesh...@gmail.com> wrote:
> I want to create a web app .war file with no outside dependencies and
> therefore would like to create a BaseFont from the classpath, rather
> than from a file. Is this possible?
> I only see BaseFont.createFont("/filename", pointSize, style);
The classpath is also searched. For example "/com/fonts/arial.ttf"
would get the font from the package com.fonts.
Paulo
Message-ID:<9d27868f-6c64-4dff-9aca-4630e3cc5820@17g2000hsk.googlegroups.com>
Subject:iText, BaseFont loading from classpath
Date:Tue, 21 Oct 2008 15:17:38 +0100
I want to create a web app .war file with no outside dependencies and
therefore would like to create a BaseFont from the classpath, rather
than from a file. Is this possible?
I only see BaseFont.createFont("/filename", pointSize, style);
Thanks
Message-ID:<f0771d41-7049-449b-95d7-0b3907563f49@k30g2000hse.googlegroups.com>
Subject:Re: iText, BaseFont loading from classpath
Date:Wed, 22 Oct 2008 16:12:14 +0100
On Oct 21, 3:17=A0pm, Rick <RickPolesh...@gmail.com> wrote:
> I want to create a web app .war file with no outside dependencies and
> therefore would like to create a BaseFont from the classpath, rather
> than from a file. Is this possible?
> I only see BaseFont.createFont("/filename", pointSize, style);
The classpath is also searched. For example "/com/fonts/arial.ttf"
would get the font from the package com.fonts.
Paulo
|