From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: yynyygy@gmail.com Newsgroups: gmane.emacs.bugs Subject: bug#17792: 24.3; hintstyle specified via fontconfig is ignored by Emacs Date: Tue, 17 Jun 2014 11:08:22 +0800 Message-ID: <874mzki66x.fsf@gentoo.i-did-not-set--mail-host-address--so-tickle-me> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1402974617 26393 80.91.229.3 (17 Jun 2014 03:10:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 17 Jun 2014 03:10:17 +0000 (UTC) To: 17792@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jun 17 05:10:10 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 1Wwjmj-0000Zh-TJ for geb-bug-gnu-emacs@m.gmane.org; Tue, 17 Jun 2014 05:10:10 +0200 Original-Received: from localhost ([::1]:47122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwjmj-0003g4-Au for geb-bug-gnu-emacs@m.gmane.org; Mon, 16 Jun 2014 23:10:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42369) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwjmf-0003et-Es for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2014 23:10:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wwjme-0003gh-7s for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2014 23:10:05 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58680) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wwjme-0003gQ-47 for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2014 23:10:04 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Wwjmc-0007kq-Nn for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2014 23:10:03 -0400 X-Loop: help-debbugs@gnu.org Resent-From: yynyygy@gmail.com Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 17 Jun 2014 03:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 17792 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.140297459029783 (code B ref -1); Tue, 17 Jun 2014 03:10:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 17 Jun 2014 03:09:50 +0000 Original-Received: from localhost ([127.0.0.1]:49830 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WwjmP-0007kH-EY for submit@debbugs.gnu.org; Mon, 16 Jun 2014 23:09:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40629) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WwjmM-0007jz-DQ for submit@debbugs.gnu.org; Mon, 16 Jun 2014 23:09:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwjmF-0003Zm-Vf for submit@debbugs.gnu.org; Mon, 16 Jun 2014 23:09:41 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:51376) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwjmF-0003Zi-SA for submit@debbugs.gnu.org; Mon, 16 Jun 2014 23:09:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42351) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwjmE-0003b4-Oz for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2014 23:09:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WwjmD-0003ZS-CQ for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2014 23:09:38 -0400 Original-Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:56887) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WwjmD-0003ZM-2J for bug-gnu-emacs@gnu.org; Mon, 16 Jun 2014 23:09:37 -0400 Original-Received: by mail-pa0-f53.google.com with SMTP id ey11so1708587pad.26 for ; Mon, 16 Jun 2014 20:09:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:mime-version:content-type; bh=pW+60iG/PPXsPnLmfw0Km75BwavalLhvMr5xekEBsxc=; b=yu4H/DYlcAROB8z+5sXGGdstgCyCNlA3yc1QhTTkGbJwXUKaH9Z4AjYVYNSlljWbzK eIxjOTrh9wcjz9IR4hudYKZ+W8sOP28QiVOBXjKxxsxLf6SG61fcHOHnhmcAlRmK9pSL ahK+NyUfRe2sbn70OD316WUg9v0oZoc7BhsoO7zXoJPgRjOl+OxLs3eKAIHG//D5BWIC 0abHLF6aWFoE2+dGMNOellLsfZyOQQNInZt0SvQ6cxnZLGFPzvIWFBdknLwo/k5R8Gls ZsrWR+1FpPPXyzT3GY6WT4PxQHgNjPMxTyFAsPRivJvaedcyJcWPjVc8hrbIk8vqPBNs eAqg== X-Received: by 10.66.66.202 with SMTP id h10mr28988332pat.70.1402974575624; Mon, 16 Jun 2014 20:09:35 -0700 (PDT) Original-Received: from gentoo ([2001:250:401:1172:9a4b:e1ff:feb8:30d8]) by mx.google.com with ESMTPSA id qf10sm21280354pbc.23.2014.06.16.20.09.33 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 16 Jun 2014 20:09:35 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). 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:90462 Archived-At: I've noticed font rendering differences between Emacs and other gtk applications like gedit. In short, Emacs ignores hintstyle setting in fontconfig. I have hintstyle set to hintslight in ~/.config/fontconfig/fonts.conf, but I have to add 'Xft.hintstyle: hintslight' in Xresources to get the desired effect. The strange thing is that while ignoring hintstyle setting, Emacs still respect part of fontconfig settings, for example, anti-aliasing setting in fonts.conf will affect Emacs's font rendering. To be more precise, if I disable anti-aliasing in fonts.conf and enable it in Xresources, Emacs will not have anti-aliasing; if I have hintslight in fonts.conf and hintnone in Xresources, Emacs will use hintnone. I have tested with DejaVu Sans Mono 12 and Ubuntu Mono 13, but clearly it is not the fonts' problem. In GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.10.8) of 2014-06-11 on gentoo Windowing system distributor `The X.Org Foundation', version 11.0.11500000 System Description: NAME=Gentoo Configured using: `configure '--prefix=/usr' '--build=x86_64-pc-linux-gnu' '--host=x86_64-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--libdir=/usr/lib64' '--disable-silent-rules' '--disable-dependency-tracking' '--program-suffix=-emacs-24' '--infodir=/usr/share/info/emacs-24' '--localstatedir=/var' '--enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp' '--with-crt-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64' '--with-gameuser=games' '--without-compress-info' '--without-hesiod' '--without-kerberos' '--without-kerberos5' '--with-gpm' '--with-dbus' '--without-gnutls' '--without-xml2' '--without-selinux' '--without-wide-int' '--with-sound' '--with-x' '--without-ns' '--without-gconf' '--without-gsettings' '--without-toolkit-scroll-bars' '--with-gif' '--with-jpeg' '--with-png' '--with-rsvg' '--with-tiff' '--with-xpm' '--without-imagemagick' '--with-xft' '--without-libotf' '--without-m17n-flt' '--with-x-toolkit=gtk3' 'GENTOO_PACKAGE=app-editors/emacs-24.3-r6' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=x86_64-pc-linux-gnu' 'CFLAGS=-march=native -O2 -pipe' 'LDFLAGS=-Wl,-O1 -Wl,--as-needed' 'CPPFLAGS='' Important settings: value of $LC_COLLATE: C value of $LC_CTYPE: zh_CN.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Recent input: M-x r e p o r C-y M-x M-p Recent messages: For information about GNU Emacs and the GNU system, type C-h C-a. current-kill: Kill ring is empty delete-backward-char: Text is read-only [2 times] Quit Load-path shadows: None found. Features: (shadow sort gnus-util mail-extr emacsbug message format-spec rfc822 mml easymenu mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils time-date china-util tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list newcomment lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev minibuffer loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind dynamic-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty emacs)