From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Alex Gramiak Newsgroups: gmane.emacs.bugs Subject: bug#35781: Discrepancies between xftfont.c and ftcrfont.c Date: Sun, 19 May 2019 13:48:33 -0600 Message-ID: <87v9y66x9q.fsf@gmail.com> References: <878sv5ou9r.fsf@gmail.com> <87pnofze6n.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="106119"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) Cc: 35781@debbugs.gnu.org To: =?UTF-8?Q?K=C3=A9vin?= Le Gouguec Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun May 19 21:54:34 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 1hSRtB-000RTL-Op for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 May 2019 21:54:33 +0200 Original-Received: from localhost ([127.0.0.1]:52636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSRtA-0001Xd-NV for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 May 2019 15:54:32 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:43551) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hSRt0-0001Ql-9W for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 15:54:23 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hSRnq-0002eW-CZ for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 15:49:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50251) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hSRnq-0002eS-8t for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 15:49:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hSRnq-0004pA-3t for bug-gnu-emacs@gnu.org; Sun, 19 May 2019 15:49:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alex Gramiak Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 19 May 2019 19:49:02 +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.155829532118516 (code B ref 35781); Sun, 19 May 2019 19:49:02 +0000 Original-Received: (at 35781) by debbugs.gnu.org; 19 May 2019 19:48:41 +0000 Original-Received: from localhost ([127.0.0.1]:35562 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hSRnV-0004oa-81 for submit@debbugs.gnu.org; Sun, 19 May 2019 15:48:41 -0400 Original-Received: from mail-pf1-f169.google.com ([209.85.210.169]:36400) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hSRnT-0004oM-Hl for 35781@debbugs.gnu.org; Sun, 19 May 2019 15:48:40 -0400 Original-Received: by mail-pf1-f169.google.com with SMTP id v80so6144273pfa.3 for <35781@debbugs.gnu.org>; Sun, 19 May 2019 12:48:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=DWzuv8vJee+ISPqATgpQn6foJhyICqEGkfLjYQa99q8=; b=iQg/7U+6fR4Ydx5IQdaVkRk0EOLY6TNvAI2CQ4T19jegOKiM/dlPXjwQIPP3D5XDk/ 9dYDcfd8g4TPZvRuv/cub2gRNNpRmk1nS9jJPUoF33J3o/rNAPAs+9+iR2Tp6xrAmmG8 NW6Zw+9hXT3oar/gDzwcb8ddij1tCDOOSVFJop6m69xiRhdSw6hGeiWqcv7l50+ftH2H 0wskjxThF4aejZuQl8MOS9XoIRLYGBt5NeAa+/KDX5NBLHLgd6lLY8kCVMAvogSonPyT Nsv25K4aVGGZDRulFz3IwRcpj9280FfH4U0MKW4Ng0wFx7Ggm6ylpV+VC3GL/BZH0zY9 C7fw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=DWzuv8vJee+ISPqATgpQn6foJhyICqEGkfLjYQa99q8=; b=shh1Uf+Iv6L75hdetN8y8VJelWxgGsjVqjMnV6HhRROr/t/nIRcfGsKpjutHH56iz+ mkZJhr9eB/nYVxTgxmKRj8BZWqHKY3T1KOa2lyNGiMz/q6qC11cBOZrP4qgI44L4a7Dd N8NlmxGZeoykhr6gPdUH3vPGeymruFnOnUfhHYQad/GtfbegLVMgUcWZwl0huiu4ffNr Ep4wdYZavPx6ky6P+0aAT2zMe6NjPj9dJuRCQ6xPzOHTaoql0LWUIdw8FSvIHH1q3cio 8XSGvrI6bAqpRjOqKUiOdBHIgBDjhZlRp1jL8Yt0yzEZm/j/28tDUcdxmm0uXIZeOiqY Ngvg== X-Gm-Message-State: APjAAAXQoQxKgyWe6sJndqbhdjsbJ350xzXLwk/dhBSWt27ZZ/lI7xdz 08zlZ3ezvElGYgLAOZBQhg4= X-Google-Smtp-Source: APXvYqwiXUElWZLOhZXAMqBeazFVXG47r3AR54BaBMnjtfW/ui7XQn3h2eiwH5lHoI5/On5TEo9KZQ== X-Received: by 2002:a63:2d41:: with SMTP id t62mr71925515pgt.113.1558295313760; Sun, 19 May 2019 12:48:33 -0700 (PDT) Original-Received: from lylat ([2604:3d09:e37f:1500:1a72:4878:e793:7302]) by smtp.gmail.com with ESMTPSA id z11sm29031194pfg.187.2019.05.19.12.48.32 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 19 May 2019 12:48:32 -0700 (PDT) In-Reply-To: <87pnofze6n.fsf@gmail.com> ("=?UTF-8?Q?K=C3=A9vin?= Le Gouguec"'s message of "Sat, 18 May 2019 22:43:28 +0200") 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:159564 Archived-At: K=C3=A9vin Le Gouguec writes: > 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 th= at > may take a while, I figured I would update this report with whatever > information I gathered this far for posterity. Perhaps ftcrfont.c could use FcPatternAddFTFace, FcFontMatch, cairo_ft_font_face_create_for_pattern, and otherwise the same pattern building as xftfont.c.