Hi Philipp,

Thank you for your help.

Here is what our system integrator team did for the system with
170 SunRay terminals and 3 Sun Fire T2000 servers.

To reduce the number of unnecessary font name entries as much as
possible, we did the following steps:


1. Added some lines in the file /opt/starsuite8/program/soffice

# Workaround for http://www.openoffice.org/issues/show_bug.cgi?id=69625
SAL_ENABLE_NATIVE_XFONTS=0
export SAL_ENABLE_NATIVE_XFONTS

# Remove unnecessary font paths of foreign font files
for x in `/usr/openwin/bin/xset q | \
        /usr/bin/grep /usr | \
        /usr/bin/perl -pe 's/,/\n/g' | \
        /usr/bin/grep /usr/openwin/lib/locale/ | \
        /usr/bin/grep -v /ja`
do
        /usr/openwin/bin/xset fp- $x
done


2. Disabled the functionality of libfontconfig

perl -i.bak -pe 's/libfontconfig/_ibfontconfig/g' 
/opt/starsuite8/program/libpsp680ss.so


3. Flushed user's font cache files

rm /export/home/*/.starsuite8/user/psprint/psfontcache




====
For the step 1, here is a short explanation of the script.

/usr/dt/bin/dtlogin seems to set the following font paths
for the language ja_JP.UTF-8:

/usr/openwin/bin/xset q | perl -pe 's/,/\n/g' | grep /usr
  /usr/X11/lib/X11/fonts/TrueType/
/usr/X11/lib/X11/fonts/Type1/
/usr/X11/lib/X11/fonts/Type1/sun/
/usr/X11/lib/X11/fonts/F3bitmaps/
/usr/X11/lib/X11/fonts/misc/
/usr/X11/lib/X11/fonts/100dpi/
/usr/X11/lib/X11/fonts/75dpi/
/usr/openwin/lib/locale/ja/X11/fonts/75dpi
/usr/openwin/lib/locale/ja/X11/fonts/TTbitmaps
/usr/openwin/lib/locale/ja/X11/fonts/TT
/usr/openwin/lib/locale/iso_8859_2/X11/fonts/75dpi
/usr/openwin/lib/locale/iso_8859_2/X11/fonts/Type1
/usr/openwin/lib/locale/iso_8859_2/X11/fonts/TrueType
/usr/openwin/lib/locale/iso_8859_4/X11/fonts/75dpi
/usr/openwin/lib/locale/iso_8859_4/X11/fonts/Type1
/usr/openwin/lib/locale/iso_8859_5/X11/fonts/75dpi
/usr/openwin/lib/locale/iso_8859_5/X11/fonts/Type1
/usr/openwin/lib/locale/iso_8859_5/X11/fonts/TrueType
/usr/openwin/lib/locale/ar/X11/fonts/TrueType
/usr/openwin/lib/locale/iso_8859_7/X11/fonts/TrueType
/usr/openwin/lib/locale/iso_8859_7/X11/fonts/75dpi
/usr/openwin/lib/locale/iso_8859_7/X11/fonts/Type1
/usr/openwin/lib/locale/iso_8859_8/X11/fonts/75dpi
/usr/openwin/lib/locale/iso_8859_8/X11/fonts/Type1
/usr/openwin/lib/locale/iso_8859_8/X11/fonts/TrueType
/usr/openwin/lib/locale/iso_8859_9/X11/fonts/75dpi
/usr/openwin/lib/locale/iso_8859_9/X11/fonts/Type1
/usr/openwin/lib/locale/iso_8859_9/X11/fonts/TrueType
/usr/openwin/lib/locale/iso_8859_13/X11/fonts/75dpi
/usr/openwin/lib/locale/iso_8859_13/X11/fonts/TrueType
/usr/openwin/lib/locale/iso_8859_15/X11/fonts/TrueType
/usr/openwin/lib/locale/ko.UTF-8/X11/fonts/75dpi
/usr/openwin/lib/locale/zh/X11/fonts/75dpi
/usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/75dpi
/usr/openwin/lib/locale/th_TH/X11/fonts/75dpi
/usr/openwin/lib/locale/hi_IN.UTF-8/X11/fonts/TrueType
/usr/openwin/lib/locale/en_US.UTF-8/X11/fonts/misc
/usr/openwin/lib/locale/ja/X11/fonts/UTF8
/usr/openwin/lib/locale/ko.UTF-8/X11/fonts/TrueType/
/usr/openwin/lib/X11/fonts/TrueType/
/usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT/
/usr/openwin/lib/locale/zh/X11/fonts/TrueType/

The fragment of the script sited above in the step 1 will
remove unnecessary font paths and eventually get:

/usr/X11/lib/X11/fonts/TrueType/
/usr/X11/lib/X11/fonts/Type1/
/usr/X11/lib/X11/fonts/Type1/sun/
/usr/X11/lib/X11/fonts/F3bitmaps/
/usr/X11/lib/X11/fonts/misc/
/usr/X11/lib/X11/fonts/100dpi/
/usr/X11/lib/X11/fonts/75dpi/
/usr/openwin/lib/locale/ja/X11/fonts/75dpi
/usr/openwin/lib/locale/ja/X11/fonts/TTbitmaps
/usr/openwin/lib/locale/ja/X11/fonts/TT
/usr/openwin/lib/locale/ja/X11/fonts/UTF8
/usr/openwin/lib/X11/fonts/TrueType/


Kind regards,
Tora

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to