[Bug 367029] New: Pango font selection problem
https://bugzilla.novell.com/show_bug.cgi?id=367029 Summary: Pango font selection problem Product: openSUSE 11.0 Version: Alpha 2 Platform: All OS/Version: Linux Status: NEW Severity: Normal Priority: P5 - None Component: GNOME AssignedTo: bnc-team-gnome@forge.provo.novell.com ReportedBy: mfabian@novell.com QAContact: qa@suse.de CC: tiwai@novell.com Found By: Development Put the following into your ~/.fonts.conf: <alias> <family>serif</family> <prefer> <family>DejaVu Serif</family> <family>IPAPMincho</family> </prefer> </alias> <alias> <family>sans-serif</family> <prefer> <family>DejaVu Sans</family> <family>IPAPGothic</family> </prefer> </alias> <alias> <family>monospace</family> <prefer> <family>DejaVu Sans Mono</family> <family>IPAGothic</family> </prefer> </alias> Now “IPAPGothic” should be your default font for Japanese and “DejaVu Sans” your default font for English: mfabian@magellan:~$ fc-match :lang=ja ipagp.ttf: "IPAPGothic" "Regular" mfabian@magellan:~$ fc-match :lang=en DejaVuSans.ttf: "DejaVu Sans" "Book" mfabian@magellan:~$ (You need to have the IPAPGothic package and the dejavu package installed). -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=367029 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=367029#c1 --- Comment #1 from Mike Fabian <mfabian@novell.com> 2008-03-04 11:01:51 MST --- Create two test files, one containing ‘~’ and one containing ‘~X’: mfabian@magellan:~$ echo "~" >/tmp/tilde mfabian@magellan:~$ echo "~X" >/tmp/tilde-X -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=367029 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=367029#c2 --- Comment #2 from Mike Fabian <mfabian@novell.com> 2008-03-04 11:03:59 MST --- Now check with pango-view how these test-files are displayed in Japanese and in English locales: mfabian@magellan:~$ LC_ALL=ja_JP.UTF-8 pango-view /tmp/tilde & [2] 12596 mfabian@magellan:~$ LC_ALL=ja_JP.UTF-8 pango-view /tmp/tilde-X & [3] 12598 mfabian@magellan:~$ LC_ALL=en_US.UTF-8 pango-view /tmp/tilde & [4] 12602 mfabian@magellan:~$ -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=367029 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=367029#c3 --- Comment #3 from Mike Fabian <mfabian@novell.com> 2008-03-04 11:06:51 MST --- Created an attachment (id=198588) --> (https://bugzilla.novell.com/attachment.cgi?id=198588) bnc367029-pango-view.png top window: LC_ALL=ja_JP.UTF-8 pango-view /tmp/tilde middle window: LC_ALL=ja_JP.UTF-8 pango-view /tmp/tilde-X lower window: LC_ALL=en_US.UTF-8 pango-view /tmp/tilde -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=367029 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=367029#c4 --- Comment #4 from Mike Fabian <mfabian@novell.com> 2008-03-04 11:11:47 MST --- Pango apparently tries to render a whole line with as few different fonts as possible. That is fine but in the case reported here it is not done well. You can see in the screen shot that a completely different font is used for the ‘~’ character when Japanese locale is used *and* no other character is in the string which triggers pango to use an English font. In English locale, the English font is used by default even for the ‘~’ character alone. But in Japanese locale, pango starts using a Japanese font until it encounters a character which triggers another font. Special characters like ‘~’ and digits don’t seem to trigger an English font but probably they should. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=367029 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=367029#c5 --- Comment #5 from Mike Fabian <mfabian@novell.com> 2008-03-04 11:16:43 MST --- Created an attachment (id=198590) --> (https://bugzilla.novell.com/attachment.cgi?id=198590) firefox-pango.png Another screen shot from firefox using pango running in ja_JP.UTF-8 locale. (When run in ja_JP.UTF-8 locale, firefox uses pango by default, you can see that in the startscript /usr/bin/firefox.) In this screen shot, you see that the character ‘0’ at the beginning of a line is displayed in a different font depending on what characters follow. Same problem for the ‘~’ character and other special characters. Takashi Iwai found this bug while typing in entry widgets in Firefox. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=367029 JP Rosevear <jpr@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-gnome@forge.provo.novell.com |federico@novell.com -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=367029 Federico Mena Quintero <federico@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status Whiteboard| |gnome-wrong-out-of-the-box -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=367029 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=367029#c6 --- Comment #6 from Mike Fabian <mfabian@novell.com> 2008-05-07 08:56:07 MST --- Bug still exists in Factory. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=367029 Federico Mena Quintero <federico@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com