Package: emacs-gtk
Version: 1:25.2+1-11
Severity: normal

Dear Maintainer,

What led up to this situation is a correspondent sent me an e-mail
containing a UTF-8 emoticon which rendered without problems under the
konsole application for KDE, but when I edited my reply to him using
emacs I noticed all my quotation of his emoticon was being rendered as
a box with numbers inside indicating emacs understands the UTF-8 and
transforms it into UCS4 (the numbers within the box) without issues,
but somehow cannot access the correct system fonts to render those
characters properly.  I then checked in some detail with gucharmap (a
GTK application) and I spot sampled from the emoticons block, e.g.,
"😀😁😂😃😄", and gucharmap renders those glyphs without issues, but
they are all rendered in block form under emacs for the particular set
of font packages I have loaded.  And I found similar good rendering
results for gucharmap and block-form rendering results for emacs for
glyphs sampled from the "Miscellaneous Symbols and Pictographs" and
"Playing Cards" unicode blocks.  Anyhow, I don't understand why
gucharmap (which depends on the suite of GTK libraries such as pango,
cairo, and fontconfig) and emacs-gtk (which from its name presumably
also depends on the suite of GTK libraries) are getting such different
results for certain unicode blocks when they get the same (good)
rendering results for many other unicode blocks.

One possibility to explain this rendering difference between gucharmap
and emacs-gtk is gucharmap is using fontconfig to find system fonts
and emacs-gtk might be using some other method that does not match up
to the quality of fontconfig.  Or emacs-gtk may be using fontconfig
with a specific list of font names to search rather than letting
fontconfig do its job by specifying generic font names such as "sans",
"serif", etc.  In other words, it is possible I could work around this
font-finding bug in emacs by installing particular system fonts that
emacs-gtk happens to be able to find with its present font-finding
algorithm.  However, I would far prefer to see a fundamental solution
such as emacs-gtk using generic font names and font-config to find
unicode-aware system fonts since that method appears to give complete
access to all such fonts and the present font-finding method emacs-gtk
uses clearly does not do that for the set of Debian system fonts I have
presently installed.

I used the "dpkg --list |grep -i font" command to provide the
following list of all currently installed packages that have anything
to do with fonts:

ii  aglfn                                         1.7-3                        
all          Adobe Glyph List For New Fonts
ii  console-setup                                 1.187                        
all          console font and keymap setup program
ii  fontconfig                                    2.13.1-2                     
amd64        generic font configuration library - support binaries
ii  fontconfig-config                             2.13.1-2                     
all          generic font configuration library - configuration
ii  fonts-adf-oldania                             0.20110505-3                 
all          Oldania font of the Arkandis Digital Foundry
ii  fonts-dejavu                                  2.37-1                       
all          metapackage to pull in fonts-dejavu-core and fonts-dejavu-extra
ii  fonts-dejavu-core                             2.37-1                       
all          Vera font family derivate with additional characters
ii  fonts-dejavu-extra                            2.37-1                       
all          Vera font family derivate with additional characters (extra 
variants)
ii  fonts-droid-fallback                          1:6.0.1r16-1.1               
all          handheld device font with extensive style and language support 
(fallback)
ii  fonts-font-awesome                            5.0.10+really4.7.0~dfsg-1    
all          iconic font designed for use with Twitter Bootstrap
ii  fonts-freefont-otf                            20120503-8                   
all          Freefont Serif, Sans and Mono OpenType fonts
ii  fonts-freefont-ttf                            20120503-8                   
all          Freefont Serif, Sans and Mono Truetype fonts
ii  fonts-gfs-baskerville                         1.1-5                        
all          ancient Greek font revival
ii  fonts-gfs-porson                              1.1-6                        
all          Greek font (Porson revival)
ii  fonts-hack                                    3.003-1                      
all          Typeface designed for source code
ii  fonts-lato                                    2.0-2                        
all          sans-serif typeface family font
ii  fonts-lmodern                                 2.004.5-5                    
all          OpenType fonts based on Computer Modern
ii  fonts-noto                                    20171026-2                   
all          metapackage to pull in all Noto fonts
ii  fonts-noto-cjk                                1:20170601+repack1-3         
all          "No Tofu" font families with large Unicode coverage (CJK regular 
and bold)
ii  fonts-noto-hinted                             20171026-2                   
all          "No Tofu" font families with large Unicode coverage (hinted)
ii  fonts-noto-mono                               20171026-2                   
all          "No Tofu" monospaced font family with large Unicode coverage
ii  fonts-noto-unhinted                           20171026-2                   
all          "No Tofu" font families with large Unicode coverage (unhinted)
ii  fonts-roboto-slab                             1.100263+20170512-1          
all          Google's signature family of fonts (slab)
ii  fonts-texgyre                                 20180621-2                   
all          OpenType fonts based on URW Fonts
ii  freetype2-doc                                 2.9.1-3                      
all          FreeType 2 font engine, development documentation
ii  gsfonts                                       1:8.11+urwcyr1.0.7~pre44-4.4 
all          Fonts for the Ghostscript interpreter(s)
ii  gucharmap                                     1:11.0.3-1                   
amd64        Unicode character picker and font browser
ii  kbd                                           2.0.4-4                      
amd64        Linux console font and keytable utilities
ii  libfont-afm-perl                              1.20-2                       
all          Font::AFM - Interface to Adobe Font Metrics files
ii  libfontconfig1:amd64                          2.13.1-2                     
amd64        generic font configuration library - runtime
ii  libfontconfig1-dev:amd64                      2.13.1-2                     
amd64        generic font configuration library - development
ii  libfontenc1:amd64                             1:1.1.3-1+b2                 
amd64        X11 font encoding library
ii  libfreetype6:amd64                            2.9.1-3                      
amd64        FreeType 2 font engine, shared library files
ii  libfreetype6-dev:amd64                        2.9.1-3                      
amd64        FreeType 2 font engine, development files
ii  libgraphite2-3:amd64                          1.3.12-1                     
amd64        Font rendering engine for Complex Scripts -- library
ii  libkfontinst5                                 4:5.14.3-1                   
amd64        Tools and widgets for the desktop library
ii  libkfontinstui5                               4:5.14.3-1                   
amd64        Tools and widgets for the desktop library
ii  libotf0:amd64                                 0.9.13-4                     
amd64        Library for handling OpenType Font - runtime
ii  libsdl-ttf2.0-0:amd64                         2.0.11-5                     
amd64        TrueType Font library for Simple DirectMedia Layer 1.2, libraries
ii  libsdl2-ttf-2.0-0:amd64                       2.0.14+dfsg1-3               
amd64        TrueType Font library for Simple DirectMedia Layer 2, libraries
ii  libwoff1:amd64                                1.0.2-1                      
amd64        library for converting fonts to WOFF 2.0
ii  libxfont2:amd64                               1:2.0.3-1                    
amd64        X11 font rasterisation library
ii  libxft-dev:amd64                              2.3.2-2                      
amd64        FreeType-based font drawing library for X (development files)
ii  libxft2:amd64                                 2.3.2-2                      
amd64        FreeType-based font drawing library for X
ii  lmodern                                       2.004.5-5                    
all          scalable PostScript and OpenType fonts based on Computer Modern
ii  t1utils                                       1.41-2                       
amd64        Collection of simple Type 1 font manipulation programs
ii  tex-gyre                                      20180621-2                   
all          scalable PostScript and OpenType fonts based on URW Fonts
ii  texlive-fonts-recommended                     2018.20181116-1              
all          TeX Live: Recommended fonts
ii  timgm6mb-soundfont                            1.3-2                        
all          TimGM6mb SoundFont from MuseScore 1.3
ii  xfonts-100dpi                                 1:1.0.4+nmu1                 
all          100 dpi fonts for X
ii  xfonts-75dpi                                  1:1.0.4+nmu1                 
all          75 dpi fonts for X
ii  xfonts-base                                   1:1.0.4+nmu1                 
all          standard fonts for X
ii  xfonts-encodings                              1:1.0.4-2                    
all          Encodings for X.Org fonts
ii  xfonts-scalable                               1:1.0.3-1.1                  
all          scalable fonts for X
ii  xfonts-utils                                  1:7.7+6                      
amd64        X Window System font utility programs

Alan

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.18.10-custom (SMP w/16 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_CA:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages emacs-gtk depends on:
ii  emacs-bin-common       1:25.2+1-11
ii  emacs-common           1:25.2+1-11
ii  libacl1                2.2.52-3+b1
ii  libasound2             1.1.7-1+b1
ii  libatk1.0-0            2.30.0-1
ii  libc6                  2.27-8
ii  libcairo-gobject2      1.16.0-1
ii  libcairo2              1.16.0-1
ii  libdbus-1-3            1.12.10-1
ii  libfontconfig1         2.13.1-2
ii  libfreetype6           2.9.1-3
ii  libgdk-pixbuf2.0-0     2.38.0+dfsg-6
ii  libgif7                5.1.4-3
ii  libglib2.0-0           2.58.1-2
ii  libgnutls30            3.5.19-1+b1
ii  libgomp1               8.2.0-9
ii  libgpm2                1.20.7-5
ii  libgtk-3-0             3.24.1-2
ii  libice6                2:1.0.9-2
ii  libjpeg62-turbo        1:1.5.2-2+b1
ii  libm17n-0              1.8.0-2
ii  libmagickcore-6.q16-6  8:6.9.10.14+dfsg-7
ii  libmagickwand-6.q16-6  8:6.9.10.14+dfsg-7
ii  libotf0                0.9.13-4
ii  libpango-1.0-0         1.42.4-4
ii  libpangocairo-1.0-0    1.42.4-4
ii  libpng16-16            1.6.34-2
ii  librsvg2-2             2.44.9-1
ii  libselinux1            2.8-1+b1
ii  libsm6                 2:1.2.2-1+b3
ii  libtiff5               4.0.10-3
ii  libtinfo6              6.1+20181013-1
ii  libx11-6               2:1.6.7-1
ii  libx11-xcb1            2:1.6.7-1
ii  libxcb1                1.13.1-1
ii  libxfixes3             1:5.0.3-1
ii  libxft2                2.3.2-2
ii  libxinerama1           2:1.1.4-1
ii  libxml2                2.9.4+dfsg1-7+b2
ii  libxpm4                1:3.5.12-1
ii  libxrandr2             2:1.5.1-1
ii  libxrender1            1:0.9.10-1
ii  zlib1g                 1:1.2.11.dfsg-1

emacs-gtk recommends no packages.

Versions of packages emacs-gtk suggests:
pn  emacs-common-non-dfsg  <none>

-- no debconf information

Reply via email to