From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Newsgroups: gmane.emacs.bugs Subject: bug#35781: Discrepancies between xftfont.c and ftcrfont.c Date: Sat, 18 May 2019 22:43:28 +0200 Message-ID: <87pnofze6n.fsf@gmail.com> References: <878sv5ou9r.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="96229"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: 35781@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat May 18 22:48:38 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hS6Fx-000Opm-II for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 May 2019 22:48:37 +0200 Original-Received: from localhost ([127.0.0.1]:38493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hS6Fr-0005gq-NN for geb-bug-gnu-emacs@m.gmane.org; Sat, 18 May 2019 16:48:31 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41629) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hS6Fl-0005fi-82 for bug-gnu-emacs@gnu.org; Sat, 18 May 2019 16:48:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hS6BV-0007nP-WC for bug-gnu-emacs@gnu.org; Sat, 18 May 2019 16:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47734) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hS6BV-0007n7-PY for bug-gnu-emacs@gnu.org; Sat, 18 May 2019 16:44:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hS6BV-0006Tv-LO for bug-gnu-emacs@gnu.org; Sat, 18 May 2019 16:44:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <878sv5ou9r.fsf@gmail.com> Resent-From: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 18 May 2019 20:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 35781 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 35781-submit@debbugs.gnu.org id=B35781.155821221924861 (code B ref 35781); Sat, 18 May 2019 20:44:01 +0000 Original-Received: (at 35781) by debbugs.gnu.org; 18 May 2019 20:43:39 +0000 Original-Received: from localhost ([127.0.0.1]:33044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hS6B9-0006Sq-1f for submit@debbugs.gnu.org; Sat, 18 May 2019 16:43:39 -0400 Original-Received: from mail-wm1-f53.google.com ([209.85.128.53]:53383) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hS6B6-0006ST-JB; Sat, 18 May 2019 16:43:37 -0400 Original-Received: by mail-wm1-f53.google.com with SMTP id 198so9767611wme.3; Sat, 18 May 2019 13:43:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:user-agent:mime-version :content-transfer-encoding; bh=g1s5B7qj9L4WYxQ+RKqxI3wEs36t3iqg17i4tHAGduY=; b=PehON2VtZpVMljjMyNMEyaJnRz1UV+Xnc38d5OQfdZQEC2jM09vRAS2vg+U0W8RM7m cm73xr3YBVQfgzTYXtIn8ri6NxriB28fLSaJT810B3rOiALv17LsinFgfkcZT+dwhAja xHRoIkDZn3/Vw1nnS2mFVNIAl2H2OcB2PSTMmwSUGom8ABATeqVtev+CYKwceyUx5ZWd K5TYRTV8OEKnEOgKA0Feus3FoClpl2an0r9lnnbtrpb7IiH3Shg/YtRKMHpb744zHK8/ BHxh5/IpbSQRm9bZrYNxjnHy0Syg1vkF70Ks/MGCQGPbT3bZEjmp9UrgEGb8YHRXp3jE jrIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:user-agent :mime-version:content-transfer-encoding; bh=g1s5B7qj9L4WYxQ+RKqxI3wEs36t3iqg17i4tHAGduY=; b=l8sZyIix4v41CzWJeGS4u+UkB9Za80lJtn3/A4Or4KIhFzb0XK+9tu97Rhx66acNOk DjXwP7mBqnn465M5pSw73Q5wRePDxJQOpTrVVGnvDu0WeobtKTqwHYZGmOhN8MgPqYMU YQ0lVrhwR6LSlD4Ae11SH/je3DIfIqlTbBwce6ML8vW2rjFIeUFPmTeedjC9SKz4WQp4 3fUEyKankPhOgP35Wnpjf0yDvEBCGmRaL3Z8ErSmjJDL8A5a7NIS8Onl7KH94qhs9a3K /T8IKnRXOF271FlE7CwvDd1xgIJWQiFNeQLMcemlNDTps8TJFPBYxiusts3vOWeUJ34S 8f0Q== X-Gm-Message-State: APjAAAUIXU1u9xiPuIaSP7nyzfPmF70YE8a7oprDitAOv8yR9wypdwbZ 60oKup8rwGo9oTzTJ1DVx2pibQ+W X-Google-Smtp-Source: APXvYqyM7wIddd29JyCILGCB+CzEOL/imMR6Ra/ekmmleCCJm+qqDaCdgzMgZa0nI0iIOPhoeOIXxw== X-Received: by 2002:a1c:7dcf:: with SMTP id y198mr6323081wmc.94.1558212210354; Sat, 18 May 2019 13:43:30 -0700 (PDT) Original-Received: from nc10-laptop (2a01cb04010fc800c8771fb97d0446e3.ipv6.abo.wanadoo.fr. [2a01:cb04:10f:c800:c877:1fb9:7d04:46e3]) by smtp.gmail.com with ESMTPSA id l2sm16134490wmf.16.2019.05.18.13.43.29 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sat, 18 May 2019 13:43:29 -0700 (PDT) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:159508 Archived-At: retitle 35781 Make Cairo build obey hint-style font setting thanks I am nowhere close to a proper fix, but at least I think I am starting to get a clearer picture of the situation. The distribution installed on my laptop sets the "hint-style" font setting to "slight" in both ~/.config/fontconfig/fonts.conf and ~/.Xresources. AFAICU fontconfig and X resources are two (competing?) mechanisms that tell graphical applications what fonts and font settings they should use. OK. I am still studying the lay of the land; I see that xftfont_open in xftfont.c calls xftfont_add_rendering_parameters, which has a bunch of hint-style-related code calling fontconfig functions, while ftcrfont_open in ftcrfont.c seems blissfully unaware of fontconfig. At this point I am assuming that only ftcrfont.c is used in Cairo builds, since config.h does not define HAVE_XFT, but my knowledge of font management in Emacs is pretty lacking so I will have to check this assumption. As I said, I am far from being able to cook up any sort of patch at this point; I still intend to keep digging Soonish=E2=84=A2, but since that may take a while, I figured I would update this report with whatever information I gathered this far for posterity.