From: Po Lu <luangruo@yahoo.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Roland Lutz <rlutz@hedmen.org>, emacs-devel@gnu.org
Subject: Re: How does Emacs render glyphs?
Date: Mon, 25 Nov 2024 08:37:28 +0800 [thread overview]
Message-ID: <877c8si1x3.fsf@yahoo.com> (raw)
In-Reply-To: <86wmgsioc5.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 24 Nov 2024 18:33:14 +0200")
Eli Zaretskii <eliz@gnu.org> writes:
>> Date: Sun, 24 Nov 2024 16:03:29 +0100 (CET)
>> From: Roland Lutz <rlutz@hedmen.org>
>>
>> Hi,
>>
>> I've been fiddling with Pango text rendering and noticed that the output
>> looks kind of weird. Using the same font and size, glyphs rendered via
>> Pango appear to be one pixel shorter and slightly narrower than in Emacs:
>>
>> https://hedmen.org/vera-11-emacs.png
>> https://hedmen.org/vera-11-pango.png
>>
>> Since I very much prefer the way Emacs renders text, I'd like to replicate
>> this behavior. Do I assume correctly that Emacs uses Pango internally?
>
> No, I don't think Emacs uses Pango, at least not directly. Emacs
> built with Cairo might use Pango indirectly; all the other
> configurations AFAIK do not.
>
> Po Lu, please correct me if I'm wrong.
No, Emacs doesn't use Pango. The discrepancy observed by the OP is
probably the product of inconsistencies between either hinting or glyph
metrics rounding (but it's hard to say from this description who is in
the wrong).
next prev parent reply other threads:[~2024-11-25 0:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-24 15:03 How does Emacs render glyphs? Roland Lutz
2024-11-24 16:33 ` Eli Zaretskii
2024-11-25 0:37 ` Po Lu [this message]
2024-11-27 15:59 ` Roland Lutz
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=877c8si1x3.fsf@yahoo.com \
--to=luangruo@yahoo.com \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rlutz@hedmen.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.