-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P2
-
Affects Version/s: 1.2.0
-
Component/s: client-libs
-
1.2beta4
-
generic
-
generic
-
Not verified
GraphicsEnvironment when it searches outline font to register as 2D fonts in the system will not search locale dependent font directories.
Those dirs has to be specified manually by JAVA_FONTS environment variable.
(or via -Djava.awt.fonts option)
In Solaris2.6 (assuming openwin installed directory is /usr/openwin)
/usr/openwin/lib/locale/ja/X11/fonts/TT
/usr/openwin/lib/locale/zh/X11/fonts/TrueType
/usr/openwin/lib/locale/zh_TW/X11/fonts/TrueType
are directories where they containes Japanese, Simplified CHinese and Traditional Chinese respectively.
So that the system should search at least
/usr/openwin/lib/locale/<LOCALE>/X11/fonts/TrueType|/usr/openwin/lib/locale/<LOCALE>/X11/fonts/TT in addition to current one for locales ja, zh, zh_TW.
(current path is java.awt.fonts=/usr/openwin/lib/X11/fonts/Type1:/usr/openwin/lib/X11/fonts/TrueType)
BTW, above path is hardcoded into ./src/solaris/hpi/src/system_md.c.
Shouldn't it use OPENWINHOME environment variable to set installed directory?
Otherwise OpenWindow installed on the directory other than default won't work.
[gelf 5/26/98]
OPENWINHOME environment variable is deprecated and applications are
not supposed to use it.
Those dirs has to be specified manually by JAVA_FONTS environment variable.
(or via -Djava.awt.fonts option)
In Solaris2.6 (assuming openwin installed directory is /usr/openwin)
/usr/openwin/lib/locale/ja/X11/fonts/TT
/usr/openwin/lib/locale/zh/X11/fonts/TrueType
/usr/openwin/lib/locale/zh_TW/X11/fonts/TrueType
are directories where they containes Japanese, Simplified CHinese and Traditional Chinese respectively.
So that the system should search at least
/usr/openwin/lib/locale/<LOCALE>/X11/fonts/TrueType|/usr/openwin/lib/locale/<LOCALE>/X11/fonts/TT in addition to current one for locales ja, zh, zh_TW.
(current path is java.awt.fonts=/usr/openwin/lib/X11/fonts/Type1:/usr/openwin/lib/X11/fonts/TrueType)
BTW, above path is hardcoded into ./src/solaris/hpi/src/system_md.c.
Shouldn't it use OPENWINHOME environment variable to set installed directory?
Otherwise OpenWindow installed on the directory other than default won't work.
[gelf 5/26/98]
OPENWINHOME environment variable is deprecated and applications are
not supposed to use it.
- relates to
-
JDK-4139753 All Swing components can not display any Chinese character.
-
- Closed
-