Harjo
July 3, 2009, 11:49am
1
In Servoy 3.5.9 we added a classpath to our fonts-folder, because we use embedded fonts in our jasper reports,
we did that in our servoy_developer.bat like this:
@echo off
java -XX:MaxPermSize=128m -Xmx512m -Xms64m -classpath server\webapps\ROOT\reports\fonts;servoy_developer.jar Servoy
and if we run as a service, we added this in the wrapper.conf: (last line)
.....
wrapper.java.classpath.37=lib\xerces.jar
wrapper.java.classpath.38=lib\rmitnl.jar
wrapper.java.classpath.39=lib\networktnl.jar
wrapper.java.classpath.40=server\webapps\root\reports\fonts
but how do we do this in Servoy 4 Eclipse? Servoy is now an executable…
Hi Harjo!
have you tried to add -classpath …/application_server/server/webapps/ROOT/reports/fonts in the developer/servoy.ini file?
Haven’t tested it but that could be the place to put it…
Harjo
August 4, 2009, 8:02pm
3
a bit of late reply, but adding the classpath for my pdf font folder does not work,
this is my servoy.ini
--launcher.XXMaxPermSize 256M
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms64m
-Xmx512m
-XX:MaxPermSize=256M
-classpath ../application_server/server/webapps/ROOT/reports/fonts
Does anyone know how to add my pdf fonts folder, to the servoy classpath?
this should be done by plugins.
How is this going to work in a client? Doesn’t a client need those fonts?
But eclipse is all plugins maybe you can add something to the bootstrap. Never tried that
At what time do you need those fonts? Is it not possible to add those through a servoy bean or plugin?
else i guess some eclipse plugin?
Harjo
August 4, 2009, 9:25pm
5
No the clients do not need those fonts, because jasper is rendering the report (pdf in this case, because of the embedded fonts) ON the server.
so on a live server it is not a problem, there I can add the folder with the fonts, to the wrapper.conf
but I would like to test those reports also, in the developer (or the developer-client ofcourse) which can’t be done, right now, if I believe you?
yes i think you just have to add a jar with the fonts to the jasper plugin
Maybe the jasper plugin can have a standard jar include that has fonts (default maybe empty?)
and then users of the jasper plugin can drop there font jar into the jasper plugin