Hi, Robbie, everyone,
On Wed, 27 Oct 1999, Robbie Baldock wrote:
> I'm having a weird problem with a GIF-generating Java 2 app I'm
> running on Linux. I'm calling the Java app from a Perl script (don't
> ask!) with a line like:
>
> system "java XYZ myarguments";
>
> When I run this from the command line it works perfectly
> (generating a graph with text labels in GIF format) but when I run
> exactly the same script as a CGI script from a web-page it
> generates the same image but the text is all in a Greek font!
>
> Obviously, this is something to do with the environment the
> Perl/Java code is running in. Has anyone come across anything
> like this before?
Evidently, your program is accessing fonts through the X server when you
run it normally. Since the perl/CGI environment doesn't have such access,
the JVM reverts to whatever fonts it can get to.
That's my best guess at what's happening. You might want to double check
your font setup there.
One possible solution is to use xvfb, which is a fake X server that can be
accessed by server-side Java programs.
. . . Sean.
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]