[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#809979: (no subject)



Subject: kate: mishandles coupled BDF fonts (probably a Qt5 issue though…)
Package: kate
Version: 4:15.08.3-1
Severity: normal

First off, this is probably a Qt5 issue, sorry about that, but given
that the KDE/Qt maintainers are one team, and I can reproduce it with
Kate (but apparently also Konqueror for <tt> on websites), I report
it here first.

Second, extremely sorry that reproducing this requires replacing your
xfonts-base package on the repro system – I tried creating a manual
reproducer but failed, it does not misbehave if I simply throw the
two .bdf files in question into ~/.fonts/ (wtf?).

You will need to install this package:
http://www.mirbsd.org/~tg/tmp/xfonts-base_3_all.deb

tglase@tglase-nb:~ $ md5sum xfonts-base_3_all.deb
d81e4451e7413399f696270ce472d4f8  xfonts-base_3_all.deb
tglase@tglase-nb:~ $ sha1sum xfonts-base_3_all.deb
22d2b87e626031009e0c85f380253c7619980041  xfonts-base_3_all.deb
tglase@tglase-nb:~ $ sha256sum xfonts-base_3_all.deb
126513e6ca9dc1134397c678ba9e951c868568f375675ca43af8a0deaaedfa5b  xfonts-base_3_all.deb

Then, start Kate, click the menu S̲ettings → C̲onfigure Kate…
on the left select ▾ Editor Component, then Fonts & Colours,
then the F̲ont tab, and from the Font drop-down, select
FixedMisc (this is distinct from “Fixed [Misc]”); this should
only be available as Regular flavour with a dpi-dependent size.

This font maps to two font files:
tglase@tglase-nb:~ $ fc-list | fgrep FixedMisc
/usr/share/fonts/X11/misc/mirf18fw.pcf.gz: FixedMisc:style=Regular
/usr/share/fonts/X11/misc/mirf18hw.pcf.gz: FixedMisc:style=Regular

Just like the Fixed [Misc] 9x18 font, this font is comprised
of a 9x18 and an 18x18 bitmap part, one for half-width and one
for full-width glyphs (i.e. where wcwidth() returns 1 or 2,
respectively, with combining characters mostly in the half-width
part). For applications like xterm, to use this font, you configure
the xlfd (X long font descriptor) for both parts separately, like
this in ~/.Xresources:

UXTerm*VT100*font:              -miros-fixedmisc-medium-r-normal--18-120-100-100-c-90-iso10646-1
UXTerm*VT100*wideFont:          -miros-fixedmisc-medium-r-normal--18-120-100-100-c-180-iso10646-1

For other applications, sharing the same name, style and size is
enough to create the combination.

The Fixed [Misc] font has the same setup, with:

18x18ko.pcf.gz -misc-fixed-medium-r-normal-ko-18-120-100-100-c-180-iso10646-1
9x18.pcf.gz -misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1

However, there are two 18x18 variants, -ko- and -ja-, whereas
the mirf18fw font has an empty variant selection.

The first attached snapshot (scrnshot6.png) shows the problem:
the glyphs are clearly not (except maybe ䷀) rendered from this
font. The text in the edit window is:

	f00baräßÕÆÅ☺䷀0

The attached file scrnshot7.png shows how xterm renders this correctly.

On jessie – scrnshot8.png – at least the half-width characters are
rendered correctly and from the intended font, whereas the full-width
characters are rendered correctly but from a different font and with
a soft-focus effect or something.

- -- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.3.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/lksh
Init: sysvinit (via /sbin/init)

Versions of packages kate depends on:
ii  kate5-data                               4:15.08.3-1
ii  ktexteditor-katepart                     5.16.0-1
ii  libc6                                    2.21-6
ii  libgit2-23                               0.23.1-1+b1
ii  libkf5activities5                        5.16.0-1
ii  libkf5bookmarks5                         5.16.0-1
ii  libkf5completion5                        5.16.0-1
ii  libkf5configcore5                        5.16.0-1
ii  libkf5configgui5                         5.16.0-1
ii  libkf5configwidgets5                     5.16.0-1
ii  libkf5coreaddons5                        5.16.0-1
ii  libkf5dbusaddons5                        5.16.0-1
ii  libkf5guiaddons5                         5.16.0-1
ii  libkf5i18n5                              5.16.0-1
ii  libkf5iconthemes5                        5.16.0-1
ii  libkf5itemmodels5                        5.16.0-1
ii  libkf5jobwidgets5                        5.16.0-1
ii  libkf5kiocore5                           5.16.0-1
ii  libkf5kiofilewidgets5                    5.16.0-1
ii  libkf5kiowidgets5                        5.16.0-1
ii  libkf5newstuff5                          5.16.0-1
ii  libkf5notifications5                     5.16.0-1
ii  libkf5parts5                             5.16.0-1
ii  libkf5plasma5                            5.16.0-1
ii  libkf5service-bin                        5.16.0-1
ii  libkf5service5                           5.16.0-1
ii  libkf5texteditor5                        5.16.0-1
ii  libkf5textwidgets5                       5.16.0-1
ii  libkf5threadweaver5                      5.16.0-1
ii  libkf5wallet-bin                         5.16.0-1
ii  libkf5wallet5                            5.16.0-1
ii  libkf5widgetsaddons5                     5.16.0-1
ii  libkf5windowsystem5                      5.16.0-1
ii  libkf5xmlgui5                            5.16.0-1
ii  libqt5core5a                             5.5.1+dfsg-10
ii  libqt5dbus5                              5.5.1+dfsg-10
ii  libqt5gui5                               5.5.1+dfsg-10
ii  libqt5sql5                               5.5.1+dfsg-10
ii  libqt5widgets5                           5.5.1+dfsg-10
ii  libqt5xml5                               5.5.1+dfsg-10
ii  libstdc++6                               5.3.1-5
ii  plasma-framework                         5.16.0-1
ii  qml-module-org-kde-kquickcontrolsaddons  5.16.0-1
ii  qml-module-qtquick-layouts               5.5.1-2
ii  qml-module-qtquick2                      5.5.1-3

kate recommends no packages.

Versions of packages kate suggests:
ii  ispell         3.4.00-4
pn  khelpcenter    <none>
ii  konsole-kpart  4:15.08.3-1

- -- no debconf information
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCQAGBQJWixxDAAoJEIlQwYleuNOziSwQAKGGHxz9tcoVU00Xc0EABVD5
M6GGK6ijMZkvKmoJ8Z102JinuQBkD+mqL3S75Zn2PGDzo3yBpPUsD2jqTuMoks61
P8UQl2fH6Cgl+k/ag7UNbpziaQRDul5+FrUihub1pl3JL4JcdJnwqfou3kaVvZf4
QVpZO7mOsqUMfCkAiCdsZvSFeExyXRSfyBv12L8jf/ldDdDyYJzsTi02O80RfINi
5N3+TI9xV6PRolI+V7aUgEPyDbuAR+mxd4abNAgtx/laIWPdQTsx1PzEdEaVbBgU
ZacxDU5CllaMAJoVNOzIIYdjDIMmSgpus8LTIoOLK6NOtPj0AWbGSsWzb9J0RP11
YTKnYIo7fA+EsrblIkkYI5VwiAKDDyqOcZ9dNdYc9/d1/hzprFtueaQYmGNwzOEG
h6XfnJrkMMqKaB2pPBCFsgCq4Vuo/94d75aVPtoEjdPRAWd+/x5fF9uPFZi0cXkE
6fWBjMKpbbgdJBP/TmNLcALlwyLrlo3hGcAmKpSGDgBpAynUXD0NGGLk7Zao8zJ0
88sJ2Lp0AAzLbVQu92Ql/4fOSkDItrCaLqFvqHFQ2Mj1s7NTbCdzhOYMOoZ/YWTK
EOdaQ2p1iW0K47XIKmnEGC1qAD2x/w+Rphkkuck4Dm0UNHB3xGfdg8iXOsTcNoXZ
HOtDARqMggsBrln4/5Sq
=Vwij
-----END PGP SIGNATURE-----

Attachment: scrnshot6.png
Description: PNG image

Attachment: scrnshot7.png
Description: PNG image

Attachment: scrnshot8.png
Description: PNG image


Reply to: