|
|
Re: Add font to BirtViewerApp [message #806310 is a reply to message #805592] |
Fri, 24 February 2012 20:17 |
|
Is using an environment variable not an option?
https://bugs.eclipse.org/bugs/show_bug.cgi?id=347431
Jason
On 2/23/2012 6:45 PM, Thomas Stemmer wrote:
> After some further research I found out I can use
> com.lowagie.text.FontFactory.register("com/foo/bar/arial.ttf"); to load
> fonts in standard java class.
> Birt registered the fonts listed in the fontconfig.xml via
> FontFactory.registerDirectory
>
> So the question is - is there any chance to call this line from a
> rptdesign-file?
> If i just copy the line in initialize-method of the report I get:
> TypeError: Cannot call property register in object [JavaPackage
> com.lowagie.text.FontFactory]. It is not a function, it is "object".
> (/report/method[@name="initialize"]#1) (Element ID:1)
> I think the FontFactory isn't on the classpath...
>
> Any ideas?
|
|
|
Powered by
FUDForum. Page generated in 0.02931 seconds