From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] gnu: emacs: Use libotf. Date: Tue, 15 Mar 2016 17:01:30 +0100 Message-ID: <878u1johlx.fsf@gnu.org> References: <87oaamja1v.fsf@gnu.org> <87ziu5x9ng.fsf@gnu.org> <871t7ds0zy.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53582) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afrPh-0003yn-77 for guix-devel@gnu.org; Tue, 15 Mar 2016 12:01:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1afrPb-0000gC-4k for guix-devel@gnu.org; Tue, 15 Mar 2016 12:01:41 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:37628) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1afrPb-0000g0-1k for guix-devel@gnu.org; Tue, 15 Mar 2016 12:01:35 -0400 In-Reply-To: <871t7ds0zy.fsf@gnu.org> (Roel Janssen's message of "Mon, 14 Mar 2016 13:22:09 +0100") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Roel Janssen Cc: guix-devel@gnu.org Roel Janssen skribis: > Ludovic Court=C3=A8s writes: > >> Roel Janssen skribis: >> >>> Here's a very small patch to compile Emacs with libotf support. >>> Unfortunately for me, it hasn't given me better font rendering. >> >> Does the resulting Emacs refer to libotf, as per: >> >> guix gc --references $(./pre-inst-env guix build emacs) | grep libotf >> >> ? > > Yes, here's the output: > [roel@roel-tp guix]$ guix gc --references $(./pre-inst-env guix build ema= cs) | grep libotf > /gnu/store/kzc2zkdl3aadrs3iiml7vva80fgsd2b9-libotf-0.9.13 > > You can also see "Does Emacs use libotf?" turn to "yes" with my patch in > the overview at the end of the configure phase. > >> If it does, could you check how it=E2=80=99s supposed to use it? I don= =E2=80=99t see >> how it would be used, but I guess this has nothing to do with rendering. > > It seems that Emacs can use it for complex font rendering of OTF fonts: > https://www.gnu.org/software/emacs/manual/html_node/elisp/Low_002dLevel-F= ont.html > > (search for "libotf"). Oh, interesting, glad to be proved wrong! ;-) Well that seems like a useful addition, so feel free to add it to =E2=80=98emacs=E2=80=99 (and to make sure it is removed from =E2=80=98emacs= -no-x=E2=80=99.) >> How =E2=80=9Cwrong=E2=80=9D is font rendering for you? > > I attached two screenshots, emacs-from-guix.png and > emacs-from-fedora.png. Both are compiled with libotf support. Besides > the missing Fira font, the text on the Emacs from Guix looks stretched > and not properly anti-aliased to me. Right, but it=E2=80=99s a different font. You=E2=80=99re probably right th= at something is wrong, but it=E2=80=99s hard to tell with a different font. Thanks! Ludo=E2=80=99.