summaryrefslogtreecommitdiff
path: root/setup_native/scripts/javaloader.sh
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2007-11-06 13:17:05 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2007-11-06 13:17:05 +0000
commitdd193cb2ba757c9c22e59ff45f409bdbf9fef4ee (patch)
tree49294357dfeb8acf9148f955b09411fa18f6c0bf /setup_native/scripts/javaloader.sh
parente15d3b6b5c64e08507d04e34ccc3554d966eac56 (diff)
INTEGRATION: CWS native112 (1.5.6); FILE MERGED
2007/10/29 12:45:50 is 1.5.6.1: #i81954# patch for japanese fonts
Diffstat (limited to 'setup_native/scripts/javaloader.sh')
-rw-r--r--setup_native/scripts/javaloader.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/setup_native/scripts/javaloader.sh b/setup_native/scripts/javaloader.sh
index 3775fc1baa5c..2cde7b9347de 100644
--- a/setup_native/scripts/javaloader.sh
+++ b/setup_native/scripts/javaloader.sh
@@ -312,6 +312,17 @@ install_linux_rpm()
java_runtime=$tempdir/$javahome/bin/java
+ # Make symbolic links to all TrueType font files installed in the system
+ # to avoid garbles for Japanese
+ language=`printenv LANG | cut -c 1-5`
+ if [ x$language = "xja_JP" ]; then
+ font_fallback_dir=$javahome/lib/fonts/fallback
+ echo "Making symbolic links to TrueType font files into $font_fallback_dir."
+ mkdir -p $font_fallback_dir
+ ttf_files=`locate "*.ttf" | xargs`
+ ln -s $ttf_files $font_fallback_dir
+ fi
+
echo "Done."
cd $olddir
}