aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Saratxaga <pablo@mandriva.com>2005-02-07 16:14:26 +0000
committerPablo Saratxaga <pablo@mandriva.com>2005-02-07 16:14:26 +0000
commit6cbea0bad29bc61c95ed67f72012678a2b0ab439 (patch)
tree9da0461251d6c1c88fc8bbbdb8d3b9af8d43bbb7
parenta8ee094a5894c8d3c841457c45b85be31f48be88 (diff)
downloadbootsplash-6cbea0bad29bc61c95ed67f72012678a2b0ab439.tar
bootsplash-6cbea0bad29bc61c95ed67f72012678a2b0ab439.tar.gz
bootsplash-6cbea0bad29bc61c95ed67f72012678a2b0ab439.tar.bz2
bootsplash-6cbea0bad29bc61c95ed67f72012678a2b0ab439.tar.xz
bootsplash-6cbea0bad29bc61c95ed67f72012678a2b0ab439.zip
fixed Japanese font bug (with sizes smaller than 20 sazanami-ghotic displays
garbage (probably problem with handling of embedded bitmap glyphs)); use New Sung font for Chinese
-rw-r--r--scripts/splash.sh12
1 files changed, 5 insertions, 7 deletions
diff --git a/scripts/splash.sh b/scripts/splash.sh
index 9a414fd..a361da6 100644
--- a/scripts/splash.sh
+++ b/scripts/splash.sh
@@ -144,8 +144,7 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then
# using tscii font as currently there isn't shaping
ta*) font=/usr/share/fonts/ttf/tscii/tscava.ttf ;;
th*) font=/usr/share/fonts/ttf/thai/norasi_b.ttf ;;
- zh_CN*) font=/usr/share/fonts/ttf/gb2312/gkai00mp.ttf ;;
- zh_TW*) font=/usr/share/fonts/ttf/big5/bkai00mp.ttf ;;
+ zh*) font=/usr/share/fonts/ttf/chinese/fireflysung.ttf ;;
# languages supported by the default font; latin1
af*|br*|ca*|da*|de*|es*|et*|eu*|fi*|fr*|fur*|ga*|gl*|id*|is*|it*|li*)
font=default ;;
@@ -159,7 +158,7 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then
eo*|ku*|lt*|lv*|mt*|tr*)
font=default ;;
# for others, we do a last chance possibility with
- # arial unicode, if the user installed it...
+ # Code2000, if the user installed it...
*) font=/usr/X11R6/lib/X11/fonts/drakfont/ttf/code2000.ttf ;;
esac
@@ -183,11 +182,10 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then
# some fonts need a bigger size to have a nice display
case "$custom_font" in
*norasi_b.ttf) text_size=$(( $text_size + 6 )) ;;
- *gkai00mp.ttf) text_size=$(( $text_size + 2 )) ;;
- *bkai00mp.ttf) text_size=$(( $text_size + 2 )) ;;
+ *fireflysung.ttf) text_size=$(( $text_size + 6 )) ;;
*Kacst-Qr.ttf|*nazli.ttf|*nastaliq_unicode.ttf) text_size=$(( $text_size + 6 )) ;;
- # sizes lower than 18 display as noise in FB
- *kochi-gothic.ttf) if [ "$text_size" -lt "18" ]; then text_size=18 ; fi ;;
+ # sizes lower than 20 display as noise in FB
+ *sazanami-gothic.ttf) if [ "$text_size" -lt "20" ]; then text_size=20 ; fi ;;
esac
fi