From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Max Xiong Newsgroups: gmane.emacs.bugs Subject: bug#35079: 26.1; Font rendering - problem with bdf fonts Date: Tue, 2 Apr 2019 01:31:09 -0400 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000006b0c1505858572c1" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="180294"; mail-complaints-to="usenet@blaine.gmane.org" To: 35079@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 02 10:51:30 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hBF8j-000kmZ-V8 for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Apr 2019 10:51:30 +0200 Original-Received: from localhost ([127.0.0.1]:39678 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBF8i-0000zl-TL for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Apr 2019 04:51:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:52856) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBF8N-0000vn-VG for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 04:51:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBF8J-00057v-Uq for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 04:51:07 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55005) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBF8I-00054b-MW for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 04:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hBF8I-0000Bh-Gj for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 04:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Max Xiong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 02 Apr 2019 08:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 35079 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.1554195007643 (code B ref -1); Tue, 02 Apr 2019 08:51:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Apr 2019 08:50:07 +0000 Original-Received: from localhost ([127.0.0.1]:40316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBF7O-0000AI-Qm for submit@debbugs.gnu.org; Tue, 02 Apr 2019 04:50:07 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hBC1F-0003Ju-Kc for submit@debbugs.gnu.org; Tue, 02 Apr 2019 01:31:34 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58565) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hBC1A-00043g-6r for submit@debbugs.gnu.org; Tue, 02 Apr 2019 01:31:28 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:57504) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hBC18-0006f7-7q for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 01:31:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hBC15-00042l-Ro for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 01:31:26 -0400 Original-Received: from mail-lj1-x231.google.com ([2a00:1450:4864:20::231]:35989) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hBC15-00041u-6Y for bug-gnu-emacs@gnu.org; Tue, 02 Apr 2019 01:31:23 -0400 Original-Received: by mail-lj1-x231.google.com with SMTP id r24so10371416ljg.3 for ; Mon, 01 Apr 2019 22:31:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=XbNJ2tp6VoTiZh5aeDw5+m3TegIcuz7cSVEPuzXZkus=; b=YtfkMYCZzRoeeYIbXLsDrMsVSNmw/k2ztgZiNsWnuaSDaah1IWkqtgJjZcPTtYc6aI evP7XJk4pGUYS3l3lKKa2f/t8Azgkxypne1Zn7ZHK6JJdBipj9YUP7Zcwdcf2ZpEi0yb ey0/iUjaNL8b5hq3sh9ueT3Sprl2Ajlaj+EKtxZPcNMe7fuoET/F6cHc+KxMWcr7GbNz 8RSwjVM7B7yNpCwwKUdAALVWX7ec8vvRxZLtUVWRhmw0DflhlDbMv2KgugEWhZJSVxqz e6JZ0twpiHIS5qTC6OQtWJ+xSyn4FMwhkmKOL5OoRErQ9HgswqLllIoDEFt/M9jWRsox ekpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=XbNJ2tp6VoTiZh5aeDw5+m3TegIcuz7cSVEPuzXZkus=; b=DRQbq2/H6kgon/0o/ryTKOa/vlHFAHoDjkIeHGJWMb1pCgNWYguBcTxqrB25KZYp+R vwSDHdVbRfcFaKhV5ISsfuk5ZKNECXq36p5MzFgm0icPyCDdLUz9uW3XXOjDV1rbcIBT 4nIfraTdewrJCoKxO4YACG2ZG5lDRaccwZch1I4XaEc4Z5OwmWSGk76RxPbLBGin7UKh J9usVl+/OvEvztl6lbvE0tM9emnHga6a+Hc+6/v0a8AsgAbu1S1NXbEa+O7yafOERdY0 MTlOlVuy8uZO5f8OSUf4r67EAHP0XqAqh7x7yyJ0x3OKnOouArvu8PhPYE4hiWUWAPJd Xy2Q== X-Gm-Message-State: APjAAAVHXPGdDAzIej0wJFn/lB/K9mHxe4tXFCvhB4syj3jph3Bpf8tr R8vd9EiHMDeDEhSgHx5rjz6lJodSohbPd1yOFKQTBrtc X-Google-Smtp-Source: APXvYqxP0w4rcyk7pn8F+7vki/DCKiY/h/vzytUwdIFeBIezgB452Vr+iRQrvyy0OpqTW6gDjZL42Wa7l6n8ZgJBDAo= X-Received: by 2002:a2e:128a:: with SMTP id 10mr40342878ljs.170.1554183080314; Mon, 01 Apr 2019 22:31:20 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Mailman-Approved-At: Tue, 02 Apr 2019 04:50:05 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:157079 Archived-At: --0000000000006b0c1505858572c1 Content-Type: text/plain; charset="UTF-8" When loading a bdf or a pcf font, specifically unifont in my case, the width of characters is incorrect. To reproduce: Download the bdf.gz file from the unifont website at http://unifoundry.com/unifont/index.html Change the extension to .bdf Install the font. In my case, I needed to copy it to ~/.local/share/fonts/misc/ Run fc-cache -fv in the terminal. Start emacs. >From the menu bar, choose options -> select default font. Search for and choose Unifont Sans Serif size 12 (size should go to 12 anyways). The unexpected result is that each character is rendered with a full width, as if there is a space after it. The cursor becomes square instead of a half-width rectangle. Additionally, note that this does NOT occur with the ttf version of unifont. Nor does this bug occur when I use the bdf unifont inside the gnome terminal. In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2018-05-29 built on lcy01-amd64-029 Windowing system distributor 'The X.Org Foundation', version 11.0.12001000 System Description: Ubuntu 18.04.2 LTS Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Configured using: 'configure --build=x86_64-linux-gnu --prefix=/usr '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' --sysconfdir=/etc --localstatedir=/var --disable-silent-rules '--libdir=${prefix}/lib/x86_64-linux-gnu' '--libexecdir=${prefix}/lib/x86_64-linux-gnu' --disable-maintainer-mode --disable-dependency-tracking --prefix=/usr --sharedstatedir=/var/lib --program-suffix=26 --with-modules --with-file-notification=inotify --with-mailutils --with-x=yes --with-x-toolkit=gtk3 --with-xwidgets --with-lcms2 'CFLAGS=-g -O2 -fdebug-prefix-map=/build/emacs26-pCvJBp/emacs26-26.1~1.git07f8f9b=. -fstack-protector-strong -Wformat -Werror=format-security -no-pie' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro -no-pie'' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 MODULES THREADS XWIDGETS LIBSYSTEMD LCMS2 Important settings: value of $LC_CTYPE: en_CA.UTF-8 value of $LANG: en_CA.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting xwidget-internal move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 95503 6338) (symbols 48 20395 1) (miscs 40 47 118) (strings 32 28318 1256) (string-bytes 1 742574) (vectors 16 14677) (vector-slots 8 498364 9328) (floats 8 50 144) (intervals 56 253 0) (buffers 992 11)) --0000000000006b0c1505858572c1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
When loading a bdf or a pcf font, sp= ecifically unifont in my case, the width of characters is incorrect.
<= div>
To reproduce:
Download the bdf.gz file from th= e unifont website at=C2=A0http://unifoundry.com/unifont/index.html
Change the exten= sion to .bdf
Install the font. In my case, I needed to copy it to= ~/.local/share/fonts/misc/
Run fc-cache -fv in the terminal.
Start emacs.
From the menu bar, choose options -> selec= t default font.
Search for and choose Unifont Sans Serif size 12 = (size should go to 12 anyways).

The unexpected res= ult is that each character is rendered with a full width, as if there is a = space after it. The cursor becomes square instead of a half-width rectangle= .

Additionally, note that this does NOT occur with= the ttf version of unifont. Nor does this bug occur when I use the bdf uni= font inside the gnome terminal.

In GNU Emacs 26.1 = (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
=C2=A0of 201= 8-05-29 built on lcy01-amd64-029
Windowing system distributor = 9;The X.Org Foundation', version 11.0.12001000
System Descrip= tion: Ubuntu 18.04.2 LTS
<= br>
Recent messages:
For information about GNU Emacs an= d the GNU system, type C-h C-a.

Configured using:<= /div>
=C2=A0'configure --build=3Dx86_64-linux-gnu --prefix=3D/usr
=C2=A0'--includedir=3D${prefix}/include' '--mandir=3D$= {prefix}/share/man'
=C2=A0'--infodir=3D${prefix}/share/in= fo' --sysconfdir=3D/etc --localstatedir=3D/var
=C2=A0--disabl= e-silent-rules '--libdir=3D${prefix}/lib/x86_64-linux-gnu'
=C2=A0'--libexecdir=3D${prefix}/lib/x86_64-linux-gnu' --disable-m= aintainer-mode
=C2=A0--disable-dependency-tracking --prefix=3D/us= r --sharedstatedir=3D/var/lib
=C2=A0--program-suffix=3D26 --with-= modules --with-file-notification=3Dinotify
=C2=A0--with-mailutils= --with-x=3Dyes --with-x-toolkit=3Dgtk3 --with-xwidgets
=C2=A0--w= ith-lcms2 'CFLAGS=3D-g -O2
=C2=A0-fdebug-prefix-map=3D/build/= emacs26-pCvJBp/emacs26-26.1~1.git07f8f9b=3D. -fstack-protector-strong
=
=C2=A0-Wformat -Werror=3Dformat-security -no-pie' 'CPPFLAGS=3D= -Wdate-time
=C2=A0-D_FORTIFY_SOURCE=3D2' 'LDFLAGS=3D-Wl,-= Bsymbolic-functions -Wl,-z,relro
=C2=A0-no-pie''

Configured features:
XPM JPEG TIFF GIF PNG RSVG = IMAGEMAGICK SOUND GPM DBUS GSETTINGS NOTIFY
LIBSELINUX GNUTLS LIB= XML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB
TOOLKIT_SCROLL_BARS GTK3 X= 11 MODULES THREADS XWIDGETS LIBSYSTEMD LCMS2

Impor= tant settings:
=C2=A0 value of $LC_CTYPE: en_CA.UTF-8
= =C2=A0 value of $LANG: en_CA.UTF-8
=C2=A0 value of $XMODIFIERS: @= im=3Dibus
=C2=A0 locale-coding-system: utf-8-unix

<= /div>
Major mode: Lisp Interaction

Minor modes= in effect:
=C2=A0 tooltip-mode: t
=C2=A0 global-eldoc-= mode: t
=C2=A0 eldoc-mode: t
=C2=A0 electric-indent-mod= e: t
=C2=A0 mouse-wheel-mode: t
=C2=A0 tool-bar-mode: t=
=C2=A0 menu-bar-mode: t
=C2=A0 file-name-shadow-mode: = t
=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode= : t
=C2=A0 blink-cursor-mode: t
=C2=A0 auto-composition= -mode: t
=C2=A0 auto-encryption-mode: t
=C2=A0 auto-com= pression-mode: t
=C2=A0 line-number-mode: t
=C2=A0 tran= sient-mark-mode: t

Load-path shadows:
No= ne found.

Features:
(shadow sort mail-ex= tr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compil= e cconv cl-loaddefs cl-lib dired dired-loaddefs
format-spec rfc82= 2 mml easymenu mml-sec password-cache epa derived epg
epg-config = gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode
mail= -parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
r= fc2045 ietf-drums mm-util mail-prsvr mail-utils elec-pair time-date
mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks
= lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-list replace newcomment=
text-mode elisp-mode lisp-mode prog-mode register page menu-bar<= /div>
rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-l= ock
syntax facemenu font-core term/tty-colors frame cl-generic ch= am georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet= lao korean
japanese eucjp-ms cp51932 hebrew greek romanian slova= k czech european
ethiopic indian cyrillic chinese composite chars= cript charprop
case-table epa-hook jka-cmpr-hook help simple abbr= ev obarray minibuffer
cl-preloaded nadvice loaddefs button faces = cus-face macroexp files
text-properties overlay sha1 md5 base64 f= ormat env code-pages mule
custom widget hashtable-print-readable = backquote dbusbind inotify lcms2
dynamic-setting system-font-sett= ing font-render-setting xwidget-internal
move-toolbar gtk x-toolk= it x multi-tty make-network-process emacs)

Memory = information:
((conses 16 95503 6338)
=C2=A0(symbols 48 = 20395 1)
=C2=A0(miscs 40 47 118)
=C2=A0(strings 32 2831= 8 1256)
=C2=A0(string-bytes 1 742574)
=C2=A0(vectors 16= 14677)
=C2=A0(vector-slots 8 498364 9328)
=C2=A0(float= s 8 50 144)
=C2=A0(intervals 56 253 0)
=C2=A0(buffers 9= 92 11))

--0000000000006b0c1505858572c1--