From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: How does Emacs render glyphs? Date: Sun, 24 Nov 2024 18:33:14 +0200 Message-ID: <86wmgsioc5.fsf@gnu.org> References: Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31341"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Roland Lutz , Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 24 17:34:07 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tFFYl-0007zB-5a for ged-emacs-devel@m.gmane-mx.org; Sun, 24 Nov 2024 17:34:07 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tFFY0-0005Mk-DE; Sun, 24 Nov 2024 11:33:20 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFFXy-0005Mb-OC for emacs-devel@gnu.org; Sun, 24 Nov 2024 11:33:18 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tFFXx-0001Yo-Ub; Sun, 24 Nov 2024 11:33:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=xbTDpuGKWdaiPrYo2cFXuGJ9AhmNmA9alJYFt2UbIq8=; b=On7b/RRmGWFN JXy1NhVFQK3Ba45hY1VW7Qyx654sQ2J+7bWe9W/wmXRFPgRtnv+BgaD1fxyPdMTzy3p+EPe1Il8jF MKGsVLoXrDqGB7ORcRF9qv+TcPYmVbhys2RzGGIMxURf02N2mofSjFzGKlNRuXkiwWr1Ijz2CSR6T s306jX3N8hCj41zEWzCUkJHvGOGmlI0BF6zfExiv5yy24w00xdMxZg8aDiojrdGhdLaxpeRhgVsZ9 8IiNShYn4vP1mNJifzuf+Jk2pScw3/XpxmNtNk3oAng2UoQYbA0s2Lo4EUdhtuYBTfBMhDOpSIdWQ sj8EhzjBNn7aMJPyTxRKxw==; In-Reply-To: (message from Roland Lutz on Sun, 24 Nov 2024 16:03:29 +0100 (CET)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325669 Archived-At: > Date: Sun, 24 Nov 2024 16:03:29 +0100 (CET) > From: Roland Lutz > > 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.