unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Dmitry Alexandrov <321942@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 25216@debbugs.gnu.org
Subject: bug#25216: 26.0.50 [regression]; Curly quotes are not found in some sizes of ‘Terminus’ font
Date: Sat, 17 Dec 2016 12:33:01 +0300	[thread overview]
Message-ID: <871sx6vr1u.fsf@gmail.com> (raw)
In-Reply-To: <83lgvf6kar.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Dec 2016 10:18:04 +0200")

>> Steps to reproduce:
>> 
>>    $ emacs --quick --font '-*-terminus-medium-r-*-*-20-*-*-*-*-*-*-*'
>> 
>> Find some document with curly quotes: ‘’ and “”.  GNU Emacs Manual (‘<f1> r’) uses them heavily, for instance.
>> 
>> It looks wrong:
>
> What is wrong with how it looks?

That’s apparently another font.

> Info mode uses several fonts anyway,

‘GNU Emacs Manual’ was a mere example of an easy accessible page that uses that symbols.  And the quotes are not the only problematic glyphs, just the most notable ones.  Now I noticed the same issue with arrows: ↑ ← ↓ and →, I guess there are others.

> so seeing a different font used for quotes shouldn't be a disaster.
>
>> ‘C-u C-x =’ says that instead of Terminus
>> ‘x:-misc-fixed-medium-r-normal--20-200-75-75-c-100-iso10646-1’ font
>> is used for rendering quotes. When I request 24th size, I got yet
>> another font —
>> ‘x:-efont-fixed-medium-r-normal--24-240-75-75-c-240-iso10646-1’.
>> 
>> In a strange way there is no such a problem with some other sizes:
>> 
>>    $ emacs --quick --font '-*-terminus-medium-r-*-*-16-*-*-*-*-*-*-*'
>> 
>> is okay, for example. ‘C-u C-x =’ says that
>> ‘xft:-xos4-Terminus-normal-normal-normal-*-16-*-*-*-c-80-iso10646-1’
>> is used in that case.
>
> Emacs 25 should prefer the default font for symbol and punctuation
> characters, as long as the default font supports them.  So I don't
> understand why you see these character displayed using another
> if the default one has the corresponding glyphs.
>
>> The reason is *not* that Terminus just does not have these glyphs —
>> it does. Moreover — GNU Emacs 24.4.1 finds and renders them
>> correctly:
>
> Emacs 25 has different settings of the default fontset, see
> fontset.el.

Aha!  Thanks.  The exact problematic commit is ‘2276a19d’ [0].

By the way, how could I prove that without rebuilding the whole Emacs?  I tried:

   $ git show 2276a19^:lisp/international/fontset.el > /tmp/lisp/fontset.el
   $ emacs --directory /tmp/lisp --quick --font '-*-terminus-medium-r-*-*-20-*-*-*-*-*-*-*'

Despite that:

   (locate-library "fontset")
        ⇒ "/tmp/lisp/fontset.el"

I did not see any effect.

[0] https://lists.gnu.org/archive/html/emacs-diffs/2015-06/msg00150.html

> It instructs Emacs to use fixed-medium fonts for symbols
> and punctuation characters that are absent from the default font.
> Emacs 24 didn't have those settings.

> I think you should be able to force Emacs to use your font for these
> characters by using set-fontset-font for the range of codepoints you
> want to be displayed by the Terminus font.

Yes, indeed.  Many thanks.

   (set-fontset-font "fontset-default" '(#x2000 . #x2067) "Terminus")

However, It might be even better if I could erase that rule, as if there were no lines about that range in ‘fontsel.el’.  Is it possible?

> Of course, if you or someone can explain why Emacs doesn't use the
> default font, as it should have, for these characters, that would be
> even better, since we might then be able to fix the problem without
> any need for user customizations.
>
> One idea I have is that the way you specify the font on the Emacs
> command line doesn't specify a registry.  Did you try using iso10646-1
> as the registry?

I’ve just tried — no effect.





  reply	other threads:[~2016-12-17  9:33 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-17  1:03 bug#25216: 26.0.50 [regression]; Curly quotes are not found in some sizes of ‘Terminus’ font Dmitry Alexandrov
2016-12-17  8:18 ` Eli Zaretskii
2016-12-17  9:33   ` Dmitry Alexandrov [this message]
2016-12-17 11:02     ` Eli Zaretskii
2016-12-19  3:17       ` Dmitry Alexandrov
2016-12-19  3:42         ` Eli Zaretskii
2016-12-19  4:52           ` Dmitry Alexandrov
2016-12-19 16:11             ` Eli Zaretskii
2016-12-19  3:44         ` Eli Zaretskii
2016-12-19  4:53           ` Dmitry Alexandrov
2016-12-19 17:46             ` Eli Zaretskii
2016-12-19  6:14           ` Dmitry Alexandrov
2016-12-19 16:15             ` Eli Zaretskii
2016-12-20  2:51               ` Dmitry Alexandrov
2016-12-20  3:34                 ` Eli Zaretskii
2016-12-31  5:56                   ` Dmitry Alexandrov
2016-12-31  8:57                     ` Eli Zaretskii
2019-11-17  7:41                       ` Lars Ingebrigtsen
2019-11-17  8:38                         ` Dmitry Alexandrov
2019-11-17 16:01                           ` Eli Zaretskii
2019-11-20 15:01                             ` Dmitry Alexandrov
2019-11-25 16:16                               ` 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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=871sx6vr1u.fsf@gmail.com \
    --to=321942@gmail.com \
    --cc=25216@debbugs.gnu.org \
    --cc=eliz@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).