Bugzilla – Bug 102978
Japanese TrueType fonts are not used in first part of installation
Last modified: 2005-08-25 18:27:52 UTC
Choose "Japanese" in Linuxrc and install via SLP. You can see that two ramdisks are loaded, the second one contains the Japanese, Chinese and Korean TrueType fonts. Nevertheless YaST2 shows the Gnu Unifont when it starts. When checking on Console #2 I can see that the Japanese TrueType font is where it belongs: /usr/X11R6/lib/X11/fonts/truetype/ipag.ttf But it is not used.
Please, provide the YaST logs.
No logs, but hopefully Stefan can handle this anyway.
It's trivial to reproduce. I'll attach logs as soon as I can reboot my test machine again, it is currently not possible because we are trying to fix a skim crash.
Mike, how about the font table we introduced only a few weeks ago? There should be something in the y2logs about which font was used upon language change. Maybe even no language change was detected, so simply a call to UI::SetLanguage() may be missing in this scenario (if you changed the language in linuxrc rather than in the first YaST2 dialog). Jiri, do we call UI::SetLanguage() in this scenario at all? If not, we need to add that call.
I think I found the reason for the problem. It is my fault. It is a typo in the font table Stefan mentioned ikn comment #4. On Beta3, the "Efont Unicode" bitmap font is used for Japanese which shows that Stefan's font switching code is working. The TrueType font"IPAGothic" is not used because I wrote "IPAPGothic" in the config file "/usr/share/YaST2/data/lang_fonts" (note the extra 'P'). This font exists as well but the font which is currently in instsys is "IPAGothic", not "IPAPGothic". I should add both fonts to the config file, then it should work no matter which one is really installed. Like this: mfabian@magellan:/usr/share/YaST2/data$ diff -u lang_fonts.orig lang_fonts --- lang_fonts.orig 2005-08-25 17:18:11.000000000 +0200 +++ lang_fonts 2005-08-25 17:18:38.000000000 +0200 @@ -21,7 +21,7 @@ font[zh_SG] = "Albany AMT,SUSE Sans,FZSongTi,FZMingTiB,AR PL SungtiL GB,Gnu Unifont,Efont Biwidth,Sans Serif" font[zh_TW] = "Albany AMT,SUSE Sans,FZMingTiB,FZSongTi,AR PL Mingti2L Big5,AR PL SungtiL GB,Gnu Unifont,Efont Biwidth,Sans Serif" font[zh_HK] = "Albany AMT,SUSE Sans,FZMingTiB,FZSongTi,AR PL Mingti2L Big5,AR PL SungtiL GB,Gnu Unifont,Efont Biwidth,Sans Serif" -font[ja] = "Albany AMT,SUSE Sans,HGPGothicB,IPAPGothic,Sazanami Gothic,Efont Biwidth,Gnu Unifont,Sans Serif" +font[ja] = "Albany AMT,SUSE Sans,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,Efont Biwidth,Gnu Unifont,Sans Serif" # For debugging mfabian@magellan:/usr/share/YaST2/data$
Change committed to YaST2 svn: mfabian@magellan:/sakura/mfabian/yast2/yast-trunk/qt$ svn diff -r 25217:25219 Index: src/lang_fonts =================================================================== --- src/lang_fonts (リビジョン 25217) +++ src/lang_fonts (リビジョン 25219) @@ -21,7 +21,7 @@ font[zh_SG] = "Albany AMT,SUSE Sans,FZSongTi,FZMingTiB,AR PL SungtiL GB,Gnu Unifont,Efont Biwidth,Sans Serif" font[zh_TW] = "Albany AMT,SUSE Sans,FZMingTiB,FZSongTi,AR PL Mingti2L Big5,AR PL SungtiL GB,Gnu Unifont,Efont Biwidth,Sans Serif" font[zh_HK] = "Albany AMT,SUSE Sans,FZMingTiB,FZSongTi,AR PL Mingti2L Big5,AR PL SungtiL GB,Gnu Unifont,Efont Biwidth,Sans Serif" -font[ja] = "Albany AMT,SUSE Sans,HGPGothicB,IPAPGothic,Sazanami Gothic,Efont Biwidth,Gnu Unifont,Sans Serif" +font[ja] = "Albany AMT,SUSE Sans,HGPGothicB,IPAPGothic,IPAGothic,Sazanami Gothic,Efont Biwidth,Gnu Unifont,Sans Serif" # For debugging Index: package/yast2-qt.changes =================================================================== --- package/yast2-qt.changes (リビジョン 25217) +++ package/yast2-qt.changes (リビジョン 25219) @@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Thu Aug 25 17:26:04 CEST 2005 - mfabian@suse.de + +- Bugzilla #102978: Japanese TrueType fonts are not used in first + part of installation: fix typo in lang_conf. + +------------------------------------------------------------------- Thu Aug 18 18:09:47 CEST 2005 - sh@suse.de - V 2.12.10 mfabian@magellan:/sakura/mfabian/yast2/yast-trunk/qt$
Reassign to Stefan Hundhammer <sh@suse.de> as a reminder that the yast2-qt needs to be submitted to STABLE.
Package "yast2-qt" checked into STABLE: ls -l /work/src/done/STABLE/yast2-qt total 2118 -rw-rw-r-- 1 sh suse 2098956 Aug 25 20:27 yast2-qt-2.12.11.tar.bz2 -rw-rw-r-- 1 sh suse 55145 Aug 25 20:27 yast2-qt.changes -rw-rw-r-- 1 sh suse 2099 Aug 25 20:27 yast2-qt.spec