diff options
author | Pablo Saratxaga <pablo@mandriva.com> | 2005-12-12 00:06:22 +0000 |
---|---|---|
committer | Pablo Saratxaga <pablo@mandriva.com> | 2005-12-12 00:06:22 +0000 |
commit | 0af3dd7758774ceec88077b7f05b7e3d5d994d4b (patch) | |
tree | 1c0ab0961f602719c71afaff5b209174bfc14876 /scripts | |
parent | 198ed9c04f7fba6ba2b3720440030cbfb20873b6 (diff) | |
download | bootsplash-0af3dd7758774ceec88077b7f05b7e3d5d994d4b.tar bootsplash-0af3dd7758774ceec88077b7f05b7e3d5d994d4b.tar.gz bootsplash-0af3dd7758774ceec88077b7f05b7e3d5d994d4b.tar.bz2 bootsplash-0af3dd7758774ceec88077b7f05b7e3d5d994d4b.tar.xz bootsplash-0af3dd7758774ceec88077b7f05b7e3d5d994d4b.zip |
- added the posibility to define a custom font in the
config file (FONT=/path/font.ttf)
- enabled punjabi translation as now we ship a gurmukhi font
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/splash.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/splash.sh b/scripts/splash.sh index 3a6bb54..f1bf1a1 100644 --- a/scripts/splash.sh +++ b/scripts/splash.sh @@ -111,6 +111,9 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then # - some indic fonts don't have ascii glyphs; so the corresponding # languages have to be disabled (I added a '_' in front) until they are # fully translated. + if [ -n "$FONT" ] ; then + font="$FONT" + else case "${GP_LANG}${LANGUAGE}" in # Azeri needs the schwa, which is not yet in Nimbus Sans L az*) @@ -145,8 +148,8 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then # we don't ship any ttf font for Lao yet _lo*) font=/usr/share/fonts/ttf/lao/xxxx.ttf ;; ml*) font=/usr/share/fonts/otf/mdk/malayalam.ttf ;; - # we don't ship any gurmukhi font yet - _pa_IN*) font=/usr/share/fonts/ttf/gurmukhi/xxxxx.ttf ;; + # this font doesn't has ascii chars + pa_IN*) font=/usr/share/fonts/ttf/gurmukhi/lohit_pa.ttf ;; # 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 ;; @@ -167,6 +170,7 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then # Code2000, if the user installed it... *) font=/usr/X11R6/lib/X11/fonts/drakfont/ttf/code2000.ttf ;; esac + fi if [ "$font" != "default" ]; then if [ -r "$font" ]; then |