From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Vasilij Schneidermann Newsgroups: gmane.emacs.bugs Subject: bug#20727: 24.5; Font fallback doesn't work for the Emoji range Date: Wed, 3 Jun 2015 19:22:42 +0200 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e013d152279798e0517a04e1e X-Trace: ger.gmane.org 1433352206 5679 80.91.229.3 (3 Jun 2015 17:23:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Jun 2015 17:23:26 +0000 (UTC) To: 20727@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 03 19:23:11 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z0CNi-0007O4-Eo for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jun 2015 19:23:10 +0200 Original-Received: from localhost ([::1]:36967 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0CNh-0002eL-Nr for geb-bug-gnu-emacs@m.gmane.org; Wed, 03 Jun 2015 13:23:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0CNb-0002ag-Uk for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2015 13:23:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0CNa-0003Zh-9c for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2015 13:23:03 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:57546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0CNa-0003Zd-5m for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2015 13:23:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z0CNZ-0008RF-U5 for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2015 13:23:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Vasilij Schneidermann Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Jun 2015 17:23:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 20727 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.143335217932423 (code B ref -1); Wed, 03 Jun 2015 17:23:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 3 Jun 2015 17:22:59 +0000 Original-Received: from localhost ([127.0.0.1]:39288 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0CNW-0008Qr-3S for submit@debbugs.gnu.org; Wed, 03 Jun 2015 13:22:59 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41678) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z0CNT-0008Qb-4I for submit@debbugs.gnu.org; Wed, 03 Jun 2015 13:22:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0CNM-0003SS-9e for submit@debbugs.gnu.org; Wed, 03 Jun 2015 13:22:49 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:47575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0CNM-0003SL-6D for submit@debbugs.gnu.org; Wed, 03 Jun 2015 13:22:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55142) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0CNJ-00025f-UW for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2015 13:22:48 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z0CNI-0003Pz-8C for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2015 13:22:45 -0400 Original-Received: from mail-wi0-x229.google.com ([2a00:1450:400c:c05::229]:33011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z0CNH-0003PK-V9 for bug-gnu-emacs@gnu.org; Wed, 03 Jun 2015 13:22:44 -0400 Original-Received: by wiwd19 with SMTP id d19so60284721wiw.0 for ; Wed, 03 Jun 2015 10:22:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=hmqtASKNiJRGNgg2g0s3X9Us7rC2WAh2u8ZkLaXrD7o=; b=gtfYQlVSVbtUY8tdHwk3WSH/aJDGwnnV9GVvjQ/E7/rb623E5PHwNnI9zELr5RQXIC e9llQmSHcJdBwClJeSylj5fQ0BZyODJqzKUa8g0ujC8KOvUpY7C/BEGxsXQXTyl8rqfW OtyDq00qfYDe7c2O1j/vhuIO8XtHByC5r6kvo/ZzjOgZCPjj0dDvm+zyzUMWuN+Q6ujq +L7EmQYwAWKF6H4yTsBr47F2/bZjVaaJR09rL2Bifvdr9aTLiKsd5zyZXksFZf0WrqbZ ZjFRl/XPwXI71faFrYlzv80XwXRXoUk4lbZaESlwR9moCUH8lOZ+Qri0kGfchYe5g2bO NPew== X-Received: by 10.194.178.201 with SMTP id da9mr53704538wjc.139.1433352162341; Wed, 03 Jun 2015 10:22:42 -0700 (PDT) Original-Received: by 10.28.225.66 with HTTP; Wed, 3 Jun 2015 10:22:42 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103547 Archived-At: --089e013d152279798e0517a04e1e Content-Type: text/plain; charset=UTF-8 I did install the Symbola font to be able to display glyphs for code points in the Emoji range which works for applications like my browser, however Emacs isn't able of displaying these glyphs despite that measure. To reproduce the issue on a Linux system, it's sufficient to have the Symbola font installed and with a default font different from it to insert a character like PILE OF POO with C-x 8 RET which yields a rectangle with numbers in it. Temporarily switching the default font to Symbola with M-x set-frame-font is one possible workaround to display the glyph, another one is modifying the default fontset to explicitly make use of that font for the Emoji range: (set-fontset-font "fontset-default" nil "Symbola" (selected-frame) 'append) I find this behaviour sort of puzzling as inspection of a buffer as produced with M-x view-hello-file and M-x describe-char on the various scripts confirms that Emacs managed choosing suitable fallback fonts for scripts not covered by my default font. Can someone enlighten me to what exactly is going on here? In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.16.2) of 2015-04-20 on bitzer.hoetzel.info Windowing system distributor `The X.Org Foundation', version 11.0.11701000 System Description: Arch Linux Configured using: `configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib --localstatedir=/var --with-x-toolkit=gtk3 --with-xft 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong --param=ssp-buffer-size=4' CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro' Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-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 Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util help-fns mail-prsvr mail-utils time-date tooltip electric uniquify ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode prog-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer 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 make-network-process dbusbind gfilenotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs) Memory information: ((conses 16 70978 6876) (symbols 48 17559 0) (miscs 40 35 138) (strings 32 9044 4472) (string-bytes 1 248344) (vectors 16 8908) (vector-slots 8 383094 18351) (floats 8 63 213) (intervals 56 177 0) (buffers 960 11) (heap 1024 42438 899)) --089e013d152279798e0517a04e1e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I did install the Symbola font to be able to display glyph= s for code
points in the Emoji range which works for applications like m= y browser,
however Emacs isn't able of displaying these glyphs despi= te that
measure.=C2=A0 To reproduce the issue on a Linux system, it'= s sufficient to
have the Symbola font installed and with a default font = different from
it to insert a character like PILE OF POO with C-x 8 RET = which yields a
rectangle with numbers in it.=C2=A0 Temporarily switching= the default font
to Symbola with M-x set-frame-font is one possible wor= karound to display
the glyph, another one is modifying the default fonts= et to explicitly
make use of that font for the Emoji range:

=C2= =A0 =C2=A0 (set-fontset-font "fontset-default" nil "Symbola&= quot;
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2= =A0 =C2=A0 (selected-frame) 'append)

I find this behaviour sort = of puzzling as inspection of a buffer as
produced with M-x view-hello-fi= le and M-x describe-char on the various
scripts confirms that Emacs mana= ged choosing suitable fallback fonts for
scripts not covered by my defau= lt font.=C2=A0 Can someone enlighten me to
what exactly is going on here= ?



In GNU Emacs 24.5.1 (x86_64-unknown-linux-gnu, GTK+ Versio= n 3.16.2)
=C2=A0of 2015-04-20 on = bitzer.hoetzel.info
Windowing system distributor `The X.Org Foundati= on', version 11.0.11701000
System Description: Arch Linux

Con= figured using:
=C2=A0`configure --prefix=3D/usr --sysconfdir=3D/etc --li= bexecdir=3D/usr/lib
=C2=A0--localstatedir=3D/var --with-x-toolkit=3Dgtk3= --with-xft
=C2=A0'CFLAGS=3D-march=3Dx86-64 -mtune=3Dgeneric -O2 -pi= pe -fstack-protector-strong
=C2=A0--param=3Dssp-buffer-size=3D4' CPP= FLAGS=3D-D_FORTIFY_SOURCE=3D2
=C2=A0LDFLAGS=3D-Wl,-O1,--sort-common,--as= -needed,-z,relro'

Important settings:
=C2=A0 value of $LANG: = en_US.UTF-8
=C2=A0 locale-coding-system: utf-8-unix

Major mode: L= isp Interaction

Minor modes in effect:
=C2=A0 tooltip-mode: t
= =C2=A0 electric-indent-mode: 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<= br>=C2=A0 global-font-lock-mode: t
=C2=A0 font-lock-mode: t
=C2=A0 bl= ink-cursor-mode: t
=C2=A0 auto-composition-mode: t
=C2=A0 auto-encryp= tion-mode: t
=C2=A0 auto-compression-mode: t
=C2=A0 line-number-mode:= t
=C2=A0 transient-mark-mode: t

Recent messages:
For informat= ion about GNU Emacs and the GNU system, type C-h C-a.

Load-path shad= ows:
None found.

Features:
(shadow sort gnus-util mail-extr em= acsbug message format-spec rfc822 mml
easymenu mml-sec mm-decode mm-bodi= es mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail= rfc2047 rfc2045 ietf-drums
mm-util help-fns mail-prsvr mail-utils time-= date tooltip electric
uniquify ediff-hook vc-hooks lisp-float-type mwhee= l x-win x-dnd tool-bar
dnd fontset image regexp-opt fringe tabulated-lis= t newcomment lisp-mode
prog-mode register page menu-bar rfn-eshadow time= r select scroll-bar
mouse jit-lock font-lock syntax facemenu font-core f= rame cham georgian
utf-8-lang misc-lang vietnamese tibetan thai tai-viet= lao korean
japanese hebrew greek romanian slovak czech european ethiopi= c indian
cyrillic chinese case-table epa-hook jka-cmpr-hook help simple = abbrev
minibuffer nadvice loaddefs button faces cus-face macroexp files<= br>text-properties overlay sha1 md5 base64 format env code-pages mule
cu= stom widget hashtable-print-readable backquote make-network-process
dbus= bind gfilenotify dynamic-setting system-font-setting
font-render-setting= move-toolbar gtk x-toolkit x multi-tty emacs)

Memory information:((conses 16 70978 6876)
=C2=A0(symbols 48 17559 0)
=C2=A0(miscs 40 = 35 138)
=C2=A0(strings 32 9044 4472)
=C2=A0(string-bytes 1 248344)=C2=A0(vectors 16 8908)
=C2=A0(vector-slots 8 383094 18351)
=C2=A0(f= loats 8 63 213)
=C2=A0(intervals 56 177 0)
=C2=A0(buffers 960 11)
= =C2=A0(heap 1024 42438 899))
--089e013d152279798e0517a04e1e--