From: Eli Zaretskii <eliz@gnu.org>
To: Andrea Greselin <greselin.andrea@gmail.com>
Cc: 39082@debbugs.gnu.org
Subject: bug#39082: Inconsolata v3.000 has too wide spacing
Date: Sun, 12 Jan 2020 20:44:08 +0200 [thread overview]
Message-ID: <838smc7bwn.fsf@gnu.org> (raw)
In-Reply-To: <CAJ_oJbZHS0U-ucSMzn_f0YF=BGkeAtYOr_2RDa7hf211fxCy1A@mail.gmail.com> (message from Andrea Greselin on Sun, 12 Jan 2020 19:17:38 +0100)
> From: Andrea Greselin <greselin.andrea@gmail.com>
> Date: Sun, 12 Jan 2020 19:17:38 +0100
> Cc: 39082@debbugs.gnu.org
>
> > M-: (font-get-glyphs (font-at 1) 1 2) RET
>
> Having launched Emacs with `emacs -Q -fn Inconsolata-12` I get
>
> [[0 0 59 541 29 2 7 9 4 nil]]
>
> > It would be also interesting to compare this with a font that is
> > displayed "normally".
>
> With `emacs -Q -fn "DejaVu Sans Mono-12"` (which displays correctly)
> the output is
>
> [[0 0 59 30 11 3 8 10 3 nil]]
>
> I've run both test on a scratch buffer showing its message, so they
> should be referring to the character ";". `(font-get-glyphs (font-at
> 1) 100 101)` returns
>
> [[0 0 116 415 29 0 10 12 0 nil]]
>
> with Inconsolata and
>
> [[0 0 116 87 11 0 11 14 0 nil]]
>
> with DejaVu.
>
> The fourth values look rather off, and the fifth too.
The 4th value is unimportant: it's the font's glyph index for that
character's glyph. The 5th element is the problem: it's what we use
for the glyph. 29 is way too large, about 2.5 times too large.
So the question now becomes how come we get such a large value. Looks
like we somehow use the space-width value instead of the character
glyph's width, not sure why. I guess stepping through the code I've
shown from xdisp.c is still necessary to understand this.
next prev parent reply other threads:[~2020-01-12 18:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-11 10:03 bug#39082: Inconsolata v3.000 has too wide spacing Andrea Greselin
2020-01-12 15:37 ` Eli Zaretskii
2020-01-12 16:56 ` Eli Zaretskii
2020-01-12 17:52 ` Eli Zaretskii
2020-01-12 18:17 ` Andrea Greselin
2020-01-12 18:44 ` Eli Zaretskii [this message]
2020-01-13 9:27 ` Robert Pluim
2020-01-13 16:18 ` Eli Zaretskii
2020-01-13 16:43 ` Robert Pluim
2020-01-13 16:56 ` Andrea Greselin
2020-01-13 17:03 ` Robert Pluim
2020-01-13 17:26 ` Eli Zaretskii
2020-01-14 9:52 ` Robert Pluim
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=838smc7bwn.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=39082@debbugs.gnu.org \
--cc=greselin.andrea@gmail.com \
/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.