Bug 1157 - CJK characters can not be displayed in java on Indiana
: CJK characters can not be displayed in java on Indiana
Status: RESOLVED FIXINSOURCE
Product: opensolaris
packaging
: unspecified
: i86pc/amd64 OpenSolaris
: P1 critical (vote)
: ---
Assigned To: David Comay
:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2008-04-13 20:44 UTC by Fuyuki Hasegawa
Modified: 2008-04-22 21:11 UTC (History)
3 users (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Fuyuki Hasegawa 2008-04-13 20:44:41 UTC
CJK (Chinese, Japanese, Korean) characters can not be displayed in java on
Indiana.

Indiana (May release) includes the following redistributable CJK fonts. 

Japanese (SUNWttf-ipafont) - live CD
   /usr/X11/lib/X11/fonts/TrueType/ipafont/*.ttf
Chinese (SUNWttf-arphic-uming) - live CD
   /usr/X11/lib/X11/fonts/TrueType/arphic/uming.ttf
Chinese (SUNWttf-arphic-ukai) - OS.O repository
   /usr/X11/lib/X11/fonts/TrueType/arphic/ukai.ttf
Korean (SUNWgnome-fonts) - live CD
   /usr/X11/lib/X11/fonts/TrueType/{batang.ttf,dotum.ttf,gulim.ttf,hline.ttf}

/usr/java/jre/lib/fontconfig.properties.src and fontconfig.bfc need to
be updated for Indiana.
FYI, these fonts also have been included since snv_86, but path is not
/usr/X11, but /usr/openwin as of today.
Comment 1 David Comay 2008-04-13 23:42:25 UTC
Fuyuki, are the only change the paths or are there other changes that need to
be made to the configuration file(s) you mentioned?
Comment 2 Fuyuki Hasegawa 2008-04-14 03:52:13 UTC
Both font paths and font names need to be updated.
If we only change the font path like below, japanese chars can be displayed,
but it's not legal.

<
filename.-ricoh-hg_mincho_l-medium-r-normal--*-%d-*-*-m-*-jisx0208.1983-0=/usr
/openwin/lib/locale/ja/X11/fonts/TT/hgmlsun.ttf
---
> filename.-ricoh-hg_mincho_l-medium-r-normal--*-%d-*-*-m-*-jisx0208.1983-0=/usr
/X11/lib/X11/fonts/TrueType/ipafont/ipag.ttf
Comment 3 David Comay 2008-04-22 15:42:56 UTC
Fixing this as part of my other packaging work.
Comment 4 David Comay 2008-04-22 15:51:00 UTC
*** Bug 1438 has been marked as a duplicate of this bug. ***
Comment 5 David Comay 2008-04-22 21:11:23 UTC
Fixed in changeset c28da428c909470e9a278226d7a805150bc840c7.