all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andy Moreton <andrewjmoreton@gmail.com>
To: 20727@debbugs.gnu.org
Subject: bug#20727: 24.5; Font fallback doesn't work for the Emoji range
Date: Tue, 09 Jun 2015 17:29:30 +0100	[thread overview]
Message-ID: <vz1zj48u9p1.fsf@gmail.com> (raw)
In-Reply-To: <CAPGgwWT3t_=UCiWHxVxaY4nNBuWJQqktatPotrN005DUFit7HQ@mail.gmail.com>

On Tue 09 Jun 2015, Eli Zaretskii wrote:

>> From: Andy Moreton <andrewjmoreton@gmail.com>
>> Date: Tue, 09 Jun 2015 12:48:16 +0100
>> 
>> On Mon 08 Jun 2015, Eli Zaretskii wrote:
>> 
>> >> From: Andreas Schwab <schwab@suse.de>
>> >> Cc: Vasilij Schneidermann <v.schneidermann@gmail.com>,  20727@debbugs.gnu.org
>> >> Date: Mon, 08 Jun 2015 16:52:48 +0200
>> >> 
>> >> Eli Zaretskii <eliz@gnu.org> writes:
>> >> 
>> >> > The problem is that most such fonts are not free.  Is Symbola free?
>> >> 
>> >> http://users.teilar.gr/~g1951d/
>> >> "free for any use"
>> >
>> > Thanks, I pushed a change that I hope will improve the default
>> > fontset's coverage of the various symbol characters.
>> 
>> This has caused a regression for me on the mingw64 build of emacs.
>> 
>> I use various box drawing characters in gnus to show threading, and
>> these normally come from DejaVu Mono (the default font).
>> 
>> After this change, Emacs uses Batang Che for the box drawing characters,
>> unless I add code to reverse the effects of the patch.
>
> Not sure how that happened: AFAIK, my change mentioned neither Batang
> Che nor DejaVu Mono.  Do you have in your customizations some setup
> for fontsets that cover these characters?  If so, could you please
> show these customizations?

All I have is to choose DejaVu Mono as the default font. Your changes
made the defqault fontset choose Symbola and FreeMono for symbols and
box drawing characters, but my system does not have thiose fonts, so it
chose something else instead.

>> Can you please improve the patch to avoid overriding the default font
>> with fonts that don't exist
>
> Maybe I'm missing something, but my patch didn't override the default
> font in any way that I'm aware of.  In fact, Emacs doesn't (well,
> didn't until now, see below) consult the default font when it needs to
> display characters such as box drawing; it always searches for the
> proper font regardless of the coverage of the default font.  At least
> that's AFAIU the code: this area in Emacs is notoriously
> under-documented.
>
> Anyway, I found and fixed an unintended consequence of my change,
> please try the latest master.  Now, if the font used for ASCII face,
> which AFAIU is the same as the frame's default font, has a glyph for
> punctuation and other symbol characters, Emacs will use the default
> font, instead of searching for another font.

Thanks Eli, this changes restores the original behaviour.

>> or at least make it easier for the user to choose the fonts chosen
>> for the symbol-subgroup and box drawing characters without copying
>> the character ranges.
>
> Not sure what that means; how did you choose your fonts until now?  I
> think this again hints on some font-related customizations you did, in
> which case please show them.  My changes targeted the users who don't
> do any fontset customizations and don't know how to do that; the
> assumption was that whoever does customize their fontsets can easily
> adapt.  Is that wrong?

The only font-related customisation I have is:

  (set-face-attribute 'default nil        :font "DejaVu Sans Mono-9")
  (set-face-attribute 'variable-pitch nil :font "Arial-10")

    (setq default-frame-alist
          (append `((background-color . "gray85")
                    (font             .  "DejaVu Sans Mono-9")
                    ))
                  default-frame-alist))

I don't have any fontset customisation at all, but the earlier change
still made emacs choose a different font for symbols.

    AndyM






  reply	other threads:[~2015-06-09 16:29 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-03 17:22 bug#20727: 24.5; Font fallback doesn't work for the Emoji range Vasilij Schneidermann
2015-06-03 19:20 ` Eli Zaretskii
2015-06-03 20:32   ` Vasilij Schneidermann
2015-06-07 18:09   ` Glenn Morris
2015-06-07 19:22     ` Eli Zaretskii
2015-06-08  0:15       ` Glenn Morris
2015-06-08  2:42         ` Eli Zaretskii
2015-06-08  5:43           ` Vasilij Schneidermann
2015-06-08 14:30             ` Eli Zaretskii
2015-06-08 14:52               ` Andreas Schwab
2015-06-08 18:06                 ` Eli Zaretskii
2015-06-09 11:48                   ` Andy Moreton
2015-06-09 15:17                     ` Eli Zaretskii
2015-06-09 16:29                       ` Andy Moreton [this message]
2015-06-09 16:48                         ` Eli Zaretskii
2015-06-12 16:05                           ` Glenn Morris
2015-06-12 19:32                             ` Eli Zaretskii
2015-06-08 15:59               ` Vasilij Schneidermann
2015-06-12 20:57 ` Paul Eggert
2015-06-13  7:04   ` Eli Zaretskii
2015-06-13  7:39   ` Eli Zaretskii
2015-06-13  9:12   ` Eli Zaretskii
2015-06-13 11:54     ` Eli Zaretskii
2015-06-13 16:01       ` Paul Eggert
2015-06-13 16:32         ` Eli Zaretskii
2015-06-13 17:04           ` Eli Zaretskii
2015-06-13 17:10             ` Paul Eggert
2015-06-13 18:31               ` Eli Zaretskii
2015-06-13 19:02                 ` Paul Eggert
2015-06-13 19:09                   ` Eli Zaretskii
2015-06-13 17:07           ` Paul Eggert
2015-06-13 17:57             ` Eli Zaretskii
2015-06-13 18:47               ` Paul Eggert
2015-06-13 19:03                 ` Eli Zaretskii
2015-06-13 21:19                   ` Paul Eggert
2015-06-14  2:46                     ` Eli Zaretskii
2015-06-14 15:08                       ` Eli Zaretskii
2015-06-14 16:14                       ` Paul Eggert
2015-06-14 17:37                         ` Eli Zaretskii
2015-06-14 20:39                           ` Paul Eggert
2015-06-15 16:14                             ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=vz1zj48u9p1.fsf@gmail.com \
    --to=andrewjmoreton@gmail.com \
    --cc=20727@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.