Bug 102978

Summary: Japanese TrueType fonts are not used in first part of installation
Product: [openSUSE] SUSE LINUX 10.0 Reporter: Mike Fabian <mfabian>
Component: InstallationAssignee: Stefan Hundhammer <shundhammer>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Normal    
Priority: P5 - None    
Version: Beta 1   
Target Milestone: ---   
Hardware: Other   
OS: All   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Mike Fabian 2005-08-09 10:28:48 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.
Comment 1 Stanislav Visnovsky 2005-08-09 14:43:14 UTC
Please, provide the YaST logs. 
Comment 2 Stanislav Visnovsky 2005-08-10 05:33:13 UTC
No logs, but hopefully Stefan can handle this anyway. 
Comment 3 Mike Fabian 2005-08-10 07:16:39 UTC
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.
Comment 4 Stefan Hundhammer 2005-08-16 10:42:33 UTC
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. 
Comment 5 Mike Fabian 2005-08-25 15:19:31 UTC
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$

Comment 6 Mike Fabian 2005-08-25 15:32:19 UTC
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$
Comment 7 Mike Fabian 2005-08-25 15:33:25 UTC
Reassign to Stefan Hundhammer <sh@suse.de> as a reminder that the
yast2-qt needs to be submitted to STABLE.
Comment 8 Stefan Hundhammer 2005-08-25 18:27:52 UTC
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