From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: James Cloos Newsgroups: gmane.emacs.bugs Subject: bug#17792: 24.3; hintstyle spewcified via fontconfig is ignored by Emacs Date: Tue, 24 Jun 2014 18:01:52 -0400 Message-ID: References: <53A70B0B.3050300@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1403648241 18363 80.91.229.3 (24 Jun 2014 22:17:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Jun 2014 22:17:21 +0000 (UTC) Cc: 17792@debbugs.gnu.org To: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Jun 25 00:17:16 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WzZ1f-0007DM-HZ for geb-bug-gnu-emacs@m.gmane.org; Wed, 25 Jun 2014 00:17:15 +0200 Original-Received: from localhost ([::1]:34053 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzZ1e-0003Uw-Mr for geb-bug-gnu-emacs@m.gmane.org; Tue, 24 Jun 2014 18:17:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzZ1X-0003Tx-Ky for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 18:17:12 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WzZ1S-0003kF-PJ for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 18:17:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WzZ1S-0003kB-LD for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 18:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WzZ1R-0007bS-Py for bug-gnu-emacs@gnu.org; Tue, 24 Jun 2014 18:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: James Cloos Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 24 Jun 2014 22:17:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 17792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 17792-submit@debbugs.gnu.org id=B17792.140364817529148 (code B ref 17792); Tue, 24 Jun 2014 22:17:01 +0000 Original-Received: (at 17792) by debbugs.gnu.org; 24 Jun 2014 22:16:15 +0000 Original-Received: from localhost ([127.0.0.1]:59722 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WzZ0d-0007a0-Oc for submit@debbugs.gnu.org; Tue, 24 Jun 2014 18:16:15 -0400 Original-Received: from ore.jhcloos.com ([198.147.23.85]:42450) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WzZ0X-0007Zh-NM for 17792@debbugs.gnu.org; Tue, 24 Jun 2014 18:16:09 -0400 Original-Received: by ore.jhcloos.com (Postfix, from userid 10) id 754C61E5CD; Tue, 24 Jun 2014 22:16:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jhcloos.com; s=ore14; t=1403648164; bh=n9jzLm74K6qx+6GBo64i8BygK2nTUhalFWRnZWZA3pw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=Og1hPXwFh3tg89I8VyXeCVq3bhrVHYSnDaX5A7z/LzAB+Sa51Tj39I7oVjfAPatoj JUIRB9/lK/epZ5XPMRhDbgosnEPV2eFgqqR1e3Xa9WR4ExSXWExhRLFf67xkUsC2tb xsRVCnoOz1bV0PLZ6ilchAUL8pB7RyGVIrlZRKjM= Original-Received: by carbon.jhcloos.org (Postfix, from userid 500) id 052F66001E; Tue, 24 Jun 2014 22:02:17 +0000 (UTC) In-Reply-To: ("Jan =?UTF-8?Q?Dj=C3=A4rv?="'s message of "Sun, 22 Jun 2014 22:54:14 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Face: iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEX///8ZGXBQKKnCrDQ3 AAAAJElEQVQImWNgQAAXzwQg4SKASgAlXIEEiwsSIYBEcLaAtMEAADJnB+kKcKioAAAAAElFTkSu QmCC Copyright: Copyright 2014 James Cloos OpenPGP: 0x997A9F17ED7DAEA6; url=https://jhcloos.com/public_key/0x997A9F17ED7DAEA6.asc OpenPGP-Fingerprint: E9E9 F828 61A4 6EA9 0F2B 63E7 997A 9F17 ED7D AEA6 Original-Lines: 37 X-Hashcash: 1:30:140624:jan.h.d@swipnet.se::2usZDEZxPiDYZWlZ:000000000000000000000000000000000000000000VECR7 X-Hashcash: 1:30:140624:17792@debbugs.gnu.org::8sMpqGN/oaqWuah6:0000000000000000000000000000000000000004VH+o X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:90757 Archived-At: >>>>> "JD" == Jan Djärv writes: JD> I don't know if cairo itself reads fonts.conf and/or X resources, JD> but I suspect it does. No. It uses the fontconfig api. This bug is a side effect of using xft to render fonts. LibXft has a routine which edits the font pattern before passing on to libfontconfig; it adds pattern elements for each of: antialias autohint dpi embolden hinting hintstyle lcdfilter maxglyphmemory maxunreffonts minspace render rgba scale based on what it finds in the X Resources. It always adds a pattern entry for each of those, with a default value if it doesn't find an explicit X resource. Fontconfig is written to allow applications to override the default values specified in/via fonts.conf, on the reasonable theories that users should be able to tell apps to override them, and that some applications SHOULD avoid things like hinting, and therefore need a way to do that. By forcing its own set of defaults, xft blocks any ability to set those via the xml. Fixing this will either require changing libxft to avoid adding pattern elements for which explicit X Resources do not exist, or changing Emacs to use fontconfig, freetype and XRENDER directly, rather than via xft. Handa-san's original code supported an fc: prefix for fonts, which was defined to do the above, but the xft: won out. -JimC -- James Cloos OpenPGP: 0x997A9F17ED7DAEA6