Home pageFind It!Contact PJAPJA documentation

PJA

 PJA Toolkit forum

This forum is dedicated to PJA Toolkit.
You may read freely the messages it contents. If you want to write a message or answer to a subject, subscribe to it first.

Subjects Recent messages Login Subscribe

Messages of subject Problems with fonts

ssauser

Member since : Dec 29, 2005
Messages : 2
 Dec 29, 2005 at 9:57 PM
I Altered ToolKitDemo.java a little to run as a class in a web application

The application is running on Websphere on Z/OS

All of the graphics are rendered correctly except Fonts - here I get nothing

I have set the following System properties:

awt.toolkit = com.eteks.awt.PJAToolkit
java.awt.graphicsenv = com.eteks.java2d.PJAGraphicsEnvironment
java2d.font.usePlatformFont = false
java.awt.fonts = /java/J1.3/IBM/J1.3/lib/fonts
user.home = /was/appsdev/resources/miar/pja_2.5

The following is the Classpath

Class path :

/WebSphere5/danode51/AppServer/properties
/WebSphere5/danode51/AppServer/lib/bootstrap.jar
/WebSphere5/danode51/AppServer/lib/urlprotocols.jar
/WebSphere5/danode51/AppServer/lib/j2ee.jar
/WebSphere5/danode51/AppServer/lib/lmproxy.jar
/was/appsdev/resources/miar/pja_2.5/lib/pja.jar

And filnally the Boot class path:

/was/appsdev/resources/miar/pja_2.5/lib/pja.jar
/javainstallDA/IBM/J1.3/lib/rt.jar
/javainstallDA/IBM/J1.3/lib/i18n.jar
/javainstallDA/IBM/J1.3/classes

A debug statement added to the code yields the following:

Font metrics = sun.awt.font.FontDesignMetrics[font=java.awt.Font[family=sansserif,name=,style=bold,size=12]ascent=0, descent=0, height=0]

Please note the last three parameters

Does anybody have a suggestion? I've tried just about every combination of user.home and java.awt.fonts that there is.

---
ssauser


Home pageFind It!ContactTop

© Copyrights 1997-2023 eTeks - All rights reserved

PJAPJA documentation