This message is for Uncle George:
There seems to be a difference between the way fonts are handled under
JDK1.2 vs. JDK 1.1.7, which I can't seem to resolve. Programs which
run fine under v1.1.7 now complain about missing fonts under v1.2,
which appears to be fatal.
Initially, I received this message:
------------------------
Font specified in font.properties not found [-b&h-lucida sans
typewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
No fonts were found in
'/lib/X11/fonts/Type1:/lib/X11/fonts/TrueType:/opt/jdk12_v3/jre/lib/fonts'.
------------------------
I quickly discovered that the X11 fonts on my machine are stored in
'/usr/X11R6/lib/X11/fonts' (note the preceding /usr/X11R6 path), and
setup a symbolic link so they could be found. However, I must not
have enough fonts, or something, because I then got this message:
------------------------
Font specified in font.properties not found [-b&h-lucida sans
typewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found
[-linotype-helvetica-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found
[-linotype-times-bold-r-normal--*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucida sans
typewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found
[-linotype-helvetica-bold-o-normal-sans-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucida
sans-medium-r-normal-sans-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucida
sans-medium-i-normal-sans-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucida
sans-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucida sans
typewriter-medium-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucida
sans-bold-i-normal-sans-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found
[-linotype-times-medium-i-normal--*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found
[-linotype-helvetica-medium-o-normal-sans-*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found
[-linotype-times-bold-i-normal--*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found [-b&h-lucida sans
typewriter-bold-r-normal-sans-*-%d-*-*-m-*-iso8859-1]
Font specified in font.properties not found
[-linotype-times-medium-r-normal--*-%d-*-*-p-*-iso8859-1]
Font specified in font.properties not found
[-linotype-helvetica-bold-r-normal-sans-*-%d-*-*-p-*-iso8859-1]
java: ../../../../src/share/native/sun/awt/font/t2k/autogrid.c:3557:
ag_ScaleGlyph: Assertion `hData->oy[0] == e->y[0]' failed.
SIGABRT 6* abort (generated by abort(3) routine)
Full thread dump Classic VM (gat:02.06.99-06:23, green threads):
"AWT-Motif" (TID:0x15556ADA860, sys_thread_t:0x1205099F8,
state:CW) prio=5
at sun.awt.motif.MToolkit.run(Native Method)
at java.lang.Thread.run(Thread.java:479)
"SunToolkit.PostEventQueue-0" (TID:0x15556ADA5F0,
sys_thread_t:0x1204CAF68, state:CW) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:424)
at sun.awt.PostEventQueue.run(SunToolkit.java:363)
"AWT-EventQueue-0" (TID:0x15556ADA560, sys_thread_t:0x1204C2028,
state:CW) prio=6
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:424)
at java.awt.EventQueue.getNextEvent(EventQueue.java:179)
at
java.awt.EventDispatchThread.run(EventDispatchThread.java:67)
"Finalizer" (TID:0x15556AC4880, sys_thread_t:0x1201E7618,
state:CW) prio=8
at java.lang.Object.wait(Native Method)
at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:112)
at
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:127)
at
java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:174)
"Reference Handler" (TID:0x15556AC40E0, sys_thread_t:0x1201DF538,
state:CW) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:424)
at
java.lang.ref.Reference$ReferenceHandler.run(Reference.java:114)
"Signal dispatcher" (TID:0x15556AC4120, sys_thread_t:0x1201DBCF8,
state:CW) prio=5
"main" (TID:0x15556AC4240, sys_thread_t:0x120104298, state:R)
prio=5
at sun.awt.font.NativeFontWrapper.getAdvance(Native Method)
at
sun.awt.font.FontDesignMetrics.charWidth(FontDesignMetrics.java:124)
at Setup.create(Setup.java:2937)
at Setup.<init>(Setup.java:181)
at Setup.main(Setup.java:2738)
...
------------------------
Some other details:
- I've got lesstif v0.86-5 installed in a non-default directory
- I'm running RedHat v5.0 (with the 2.0.35 kernel)
- I'm using Hummingbird Exceed under NT 4.0 as my X server
Some questions:
- Where does the font path come from? (I can't find any reference to
it in Sun's JDK documentation.)
- Why am I having problems with fonts under v1.2, but not under
v1.1.7?
Thanks in advance,
Rich Edwards
Senior Software Engineer
Codonics, Inc.
e-mail: [EMAIL PROTECTED]
web: www.codonics.com
-- __o
_ \<,_ "Nothing compares to the simple pleasure
(_)/ (_) of a bike ride." - John F. Kennedy