Hello Attilio Fiandrotti <fiandro@tiscalinet.it> wrote: Message-ID: <[🔎] 43CF7FF9.1010309@tiscalinet.it> > One nice thing is that now it's possible changing at runtime the theming > of the GTK frontend (fonts, colours and graphics of the widgets ) simply > by checking, at every gtk_initialize() and gtk_go() call, if the > /etc/gtk-2.0/gtkrc theme file file has changed or not via a > gtk_rc_reparse_all() call. I checked rev. 34256 of cdebconf but I can't find gtk_rc_reparse_all. Where can I find new cdebconf? > Hidetaka posted some time ago the above localechooser patch that takes > care of setting correct fonts for chinese, japanese and korean languages. > Davide and me would like to know if the patch for ja, zh and ko is still > needed or if oriental fonts look correct now. I built mini.iso with gtk+ 2.8.10 and patches attached to this mail, and took some screenshots. If we does not change /etc/gtk-2.0/gtkrc from localechooser, glyphs are taken from improper fonts. For example, [1]U+8A2D and U+5B9A in Chinese(Traditional) are taken from ja.ttf , and [2]many glyphs in Japanese are taken from zh.ttf. So I think the patch for localechooser is still needed. 1. http://hp.debian.or.jp/~tyuyu/debian-installer/Chinese_Simplified_without_patch.jpg 2. http://hp.debian.or.jp/~tyuyu/debian-installer/Chinese_Traditional_without_patch.jpg 3. http://hp.debian.or.jp/~tyuyu/debian-installer/Japanese_without_patch.jpg 4. http://hp.debian.or.jp/~tyuyu/debian-installer/Korean_without_patch.jpg 5. http://hp.debian.or.jp/~tyuyu/debian-installer/Chinese_Simplified_with_patch.jpg 6. http://hp.debian.or.jp/~tyuyu/debian-installer/Chinese_Traditional_with_patch.jpg 7. http://hp.debian.or.jp/~tyuyu/debian-installer/Japanese_with_patch.jpg 8. http://hp.debian.or.jp/~tyuyu/debian-installer/Korean_with_patch.jpg (1-4: Without localechooser patch. 5-8: With localechooser patch.) Best regards, -- Hidetaka Iwai tyuyu@debian.or.jp
Index: src/modules/frontend/gtk/gtk.c =================================================================== --- src/modules/frontend/gtk/gtk.c (revision 34256) +++ src/modules/frontend/gtk/gtk.c (working copy) @@ -1522,6 +1522,9 @@ data->setters = NULL; + /* re-read rc files */ + gtk_rc_reparse_all(); + questionbox = gtk_vbox_new(FALSE, 0); /* since all widgets used to display single questions have native
Index: localechooser =================================================================== --- localechooser (revision 34257) +++ localechooser (working copy) @@ -278,6 +278,21 @@ esac fi +# set the primary font accroding to $LANGUAGE +if [ "$DEBIAN_FRONTEND" = "gtk" ]; then + case "$LANGUAGE" in + ja) + echo 'gtk-font-name = "Sazanami Gothic 12"' > /etc/gtk-2.0/gtkrc + ;; + zh) + echo 'gtk-font-name = "AR PL ShanHeiSun Uni 12"' > /etc/gtk-2.0/gtkrc + ;; + ko) + echo 'gtk-font-name = "UnDotum 12"' > /etc/gtk-2.0/gtkrc + ;; + esac +fi + # BEGIN COUNTRY SELECTION # This is needed later in the script
Attachment:
pgpoy_aOqAw_I.pgp
Description: PGP signature