[Bug 359984] New: Qt4 displays all scalable dual-with fonts spaced
https://bugzilla.novell.com/show_bug.cgi?id=359984 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c357258 Summary: Qt4 displays all scalable dual-with fonts spaced Product: openSUSE 11.0 Version: Alpha 2 Platform: All OS/Version: Linux Status: NEW Severity: Critical Priority: P5 - None Component: KDE4 Workspace AssignedTo: kde-maintainers@suse.de ReportedBy: mfabian@novell.com QAContact: qa@suse.de Found By: Development See bug #357258 comment #12 and comment #11. -- 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=359984 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c1 --- Comment #1 from Mike Fabian <mfabian@novell.com> 2008-02-08 08:59:11 MST --- This problem already shows up during the installation (bug #357258 comment #12 and comment #11). -- 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=359984 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c2 --- Comment #2 from Mike Fabian <mfabian@novell.com> 2008-02-08 09:04:14 MST --- Created an attachment (id=193891) --> (https://bugzilla.novell.com/attachment.cgi?id=193891) qt4-ipagothic.png Screenshot of /usr/bin/qtconfig (Qt4) showing the font “IPAGothic”. Spacing is far too wide. -- 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=359984 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c3 --- Comment #3 from Mike Fabian <mfabian@novell.com> 2008-02-08 09:05:13 MST --- Created an attachment (id=193892) --> (https://bugzilla.novell.com/attachment.cgi?id=193892) qt3-ipagothic.png Screenshot of /usr/lib/qt3/bin/qtconfig (Qt3) showing the font “IPAGothic”. The spacing is OK. -- 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=359984 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c4 --- Comment #4 from Mike Fabian <mfabian@novell.com> 2008-02-08 09:10:16 MST --- By the way, “IPAPGothic” (note the extra “P” which stands for “proportional”) is shown widely space by both Qt4 *and* Qt3. This is probably also a bug in both Qt3 and Qt4 because “IPAPGothic” is displayed correctly by GTK2 applications. But it might have a different reason and it isn’t so critical at the moment. The wrong display of “IPAGothic” is important because we use this font during the Installation for Japanese (see bug #357258). -- 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=359984 User coolo@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c5 --- Comment #5 from Stephan Kulow <coolo@novell.com> 2008-02-08 09:10:45 MST --- Mike, we're using a beta of Qt 4.4, so I suggest you contact qt-bugs@trolltech.com directly and sort out the problems with them. -- 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=359984 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c6 --- Comment #6 from Mike Fabian <mfabian@novell.com> 2008-02-08 09:35:02 MST --- The problem happens with most (though not with all) “dual-width” CJK fonts. “dual-width” fonts can be listed with fc-list :spacing=dual family style file -- 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=359984 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c7 --- Comment #7 from Mike Fabian <mfabian@novell.com> 2008-02-08 09:36:09 MST --- coolo> Mike, we're using a beta of Qt 4.4, so I suggest you contact coolo> qt-bugs@trolltech.com directly and sort out the problems with them. Yes, I’ll do that. -- 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=359984 User dmueller@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c8 --- Comment #8 from Dirk Mueller <dmueller@novell.com> 2008-02-08 09:37:22 MST --- we're using an unreleased snapshot with additional patches that are not even beta. -- 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=359984 User dmueller@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c9 Dirk Mueller <dmueller@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #9 from Dirk Mueller <dmueller@novell.com> 2008-02-08 09:48:41 MST --- hmm, I can reproduce the problem though -- 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=359984 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c10 --- Comment #10 from Mike Fabian <mfabian@novell.com> 2008-02-08 10:12:59 MST --- Some fonts listed by fc-list as “dual-width” which work with Qt4: from where: /usr/share/fonts/truetype/hgrpre.ttc: HGSoeiPresenceEB:style=Regular Novell-ricoh-fonts.rpm /usr/share/fonts/truetype/hgjgbbmp.ttc: HGGothicB:style=Regular Novell-ricoh-fonts.rpm /usr/share/fonts/truetype/gkai00mp.ttf: AR PL KaitiM GB:style=Regular ttf-arphic-gkai00mp.rpm /usr/share/fonts/truetype/ming_uni.ttf: Ming(for ISO10646):style=Regular ming-uni.rpm /usr/share/fonts/truetype/みかちゃん.ttf: mikachan:style=Regular mikachan.rpm Some fonts listed by fc-list as “dual-width” which do *not* work with Qt4: /usr/share/fonts/truetype/ipag.ttf: IPAGothic:style=Regular IPAGothic.rpm /usr/share/fonts/truetype/YOzFont.TTF: Y.OzFont:style=Regular YOzFont-7.08.20030613.rpm /usr/share/fonts/vista/msgothic.ttc: MS Gothic:style=Regular Windows Vista /local/fonts/vista/MSMINCHO.TTF: MS Mincho:style=Regular Windows Vista /local/fonts/vista/simsun.ttc: NSimSun:style=Regular Windows Vista /local/fonts/vista/gulim.ttc: GulimChe:style=Regular Windows Vista -- 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=359984 User pwu@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c11 --- Comment #11 from Peng Wu <pwu@novell.com> 2008-02-19 00:59:01 MST --- I installed the IPAGothic fonts from M17N repositories. And this bug can be easily reproduced in openSUSE 10.3 with all packages updated. Qt 4 version: epico@linux:~/Downloads> rpm -qa|grep libqt4 libqt4-sql-4.3.1-23 libqt4-qt3support-4.3.1-23 libqt4-x11-4.3.1-23 libqt4-devel-doc-4.3.1-23.2 libqt4-dbus-1-4.3.1-23 libqt4-devel-doc-data-4.3.1-22 libqt4-devel-4.3.1-23 libqt4-4.3.1-23 -- 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=359984 User pwu@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c12 --- Comment #12 from Peng Wu <pwu@novell.com> 2008-02-19 20:35:12 MST --- I find that nearly all broken fonts has following section in font file: the fixed width is yes. But as the fonts contains both english and CJK, so the width shouldn't be fixed. epico@linux:~/build/ttx> ftdump ipag.ttf There is 1 face in this file. ----- Face number: 0 ----- font name entries family: IPAGothic style: Regular postscript: IPAGothic font type entries .. fixed width: yes .. I use TTX/FontTools, by using the following command: ttx -t post ipag.ttf vim ipag.ttx Modify from <isFixedPitch value="0"/> to <isFixedPitch value="0"/>. rebuild the fonts: ttx -m ipag.ttf ipag.ttx mv ipag#1.ttf /usr/share/fonts/truetype/ipag.ttf and re-dump font info: epico@linux:/usr/share/fonts/truetype> ftdump ipag.ttf There is 1 face in this file. ----- Face number: 0 ----- font name entries family: IPAGothic style: Regular postscript: IPAGothic font type entries .. fixed width: no .. The fonts in qtconfig is OK now. So I suggest maybe qt4 should ignore the field of fixed width, assuming it is always no. -- 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=359984 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c13 --- Comment #13 from Mike Fabian <mfabian@novell.com> 2008-02-20 04:55:46 MST --- Thank you very much for your investigation, this is very interesting. I wonder why the workaround which I added to /etc/fonts/suse-pre-user.conf long ago doesn’t work anymore for Qt4: <!-- The dual-width Asian fonts (spacing=dual) are not rendered correctly, apparently Xft forces all widths to match. Trying to disable the width forcing code by setting globaladvance=false alone doesn't help. As a brute force workaround, also set spacing=proportional, i.e. handle them as proportional fonts: --> <match target="font"> <test name="lang" compare="contains"> <string>ja</string> <string>zh</string> <string>ko</string> </test> <test name="spacing" compare="eq"> <const>dual</const> </test> <edit name="spacing" binding="strong"> <const>proportional</const> </edit> <edit name="globaladvance" binding="strong"> <bool>false</bool> </edit> </match> -- 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=359984 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c14 --- Comment #14 from Mike Fabian <mfabian@novell.com> 2008-02-20 07:11:12 MST --- Peng Wu> I find that nearly all broken fonts has following section in Peng Wu> font file: the fixed width is yes. But as the fonts contains Peng Wu> both english and CJK, so the width shouldn't be fixed. Yes, most of them are dual-width (i.e. one fixed width for English and another fixed width for CJK), not fixed width. I just found that even ipagp.ttf and ipamp.ttf have fixed with set to yes. For these fonts this is clearly wrong, the "p" in the file name stands for "proportional" here, these fonts have proportional English and proportional Kana. -- 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=359984 User pwu@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c15 --- Comment #15 from Peng Wu <pwu@novell.com> 2008-02-25 22:36:06 MST --- Created an attachment (id=197073) --> (https://bugzilla.novell.com/attachment.cgi?id=197073) patch for qt4 4.3.1 on openSUSE 10.3 I copy some code from cairo, and tested in openSUSE 10.3. Hopefully it will work for openSUSE 11.0. -- 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=359984 User dmueller@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c16 --- Comment #16 from Dirk Mueller <dmueller@novell.com> 2008-02-27 07:48:55 MST --- thanks, I'll add it to the package. -- 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=359984 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c17 --- Comment #17 from Mike Fabian <mfabian@novell.com> 2008-02-27 08:47:46 MST --- I wonder whether we should fix the fonts as well where the fixed with value is complete nonsense, e.g. ipagp.ttf and ipamp.ttf. Might be difficult because of license reasons though, the license apparently doesn’t allow editing of the fonts. -- 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=359984 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c18 Mike Fabian <mfabian@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED --- Comment #18 from Mike Fabian <mfabian@novell.com> 2008-02-28 07:02:32 MST --- I’ve just tested your updated libqt4 package. Works fine. Thank you Peng and Dirk! → FIXED. -- 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=359984 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c19 --- Comment #19 from Mike Fabian <mfabian@novell.com> 2008-03-06 03:40:37 MST --- The new version 002.003 of the IPA fonts has the fixed width set to “no” for IPAPGothic (ipagp.ttf) IPAPMincho (ipamp.ttf) IPAUIGothic (ipagui.ttf) Unfortunately the fixed width is still “yes” for IPAGothic and IPAMincho. -- 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=359984 User mfabian@novell.com added comment https://bugzilla.novell.com/show_bug.cgi?id=359984#c20 --- Comment #20 from Mike Fabian <mfabian@novell.com> 2008-03-06 03:54:51 MST --- New version of the IPA fonts submitted to STABLE/Factory: ------------------------------------------------------------------- Thu Mar 06 11:23:33 CET 2008 - mfabian@suse.de - update to 002.003. From the release notes http://ossipedia.ipa.go.jp/ipafont/releasenote.html: • fixed width flag set to “no” for IPAPGothic (ipagp.ttf), IPAPMincho (ipamp.ttf), and IPAUIGothic (ipagui.ttf). See also bnc359984. In Qt4 the problems have already been fixed by ignoring the “global advance width” when loading the font using freetype2, but in many other applications e.g. Qt3, these fonts were still handled as fixed width. • Glyphs for the following characters have been added: U+2014 EM DASH, U+2016 DOUBLE VERTICAL LINE, U+203E OVERLINE, U+00AC NOT SIGN, U+00A5 YEN SIGN, U+00A2 CENT SIGN, U+00A3 POUND SIGN. ------------------------------------------------------------------- -- 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