From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.help Subject: how does shr-use-fonts choose fonts? Date: Thu, 16 Jul 2015 14:34:00 +0800 Message-ID: <87a8uwr4pz.fsf@ericabrahamsen.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1437028475 22692 80.91.229.3 (16 Jul 2015 06:34:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Jul 2015 06:34:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 16 08:34:24 2015 Return-path: Envelope-to: geh-help-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 1ZFckS-00047R-5l for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Jul 2015 08:34:24 +0200 Original-Received: from localhost ([::1]:38640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFckR-0005FR-HU for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Jul 2015 02:34:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFckH-0005FM-7X for help-gnu-emacs@gnu.org; Thu, 16 Jul 2015 02:34:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFckE-0006U1-1v for help-gnu-emacs@gnu.org; Thu, 16 Jul 2015 02:34:13 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:60780) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFckD-0006Ts-Sl for help-gnu-emacs@gnu.org; Thu, 16 Jul 2015 02:34:10 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1ZFckB-00041w-Kr for help-gnu-emacs@gnu.org; Thu, 16 Jul 2015 08:34:08 +0200 Original-Received: from 114.250.121.94 ([114.250.121.94]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Jul 2015 08:34:07 +0200 Original-Received: from eric by 114.250.121.94 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 16 Jul 2015 08:34:07 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 114.250.121.94 User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:stXmq51CCJecxzgMJg5y5BBkGpQ= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105762 Archived-At: When I set shr-use-fonts to t, Chinese characters in incoming emails are displayed in a mixture of fonts. Elsewhere in Emacs, all Chinese characters are displayed using: xft:-arphic-AR PL New Sung-normal-normal-normal-*-15-*-*-*-*-0-iso10646-1 (#x2B2D) I don't know how Emacs settled on that font, but it looks fine. Inside Gnus messages with shr-use-fonts set to t, some characters are displayed with the above font, others with: arexft:-Misc-Fixed-normal-normal-normal-ja-13-*-*-*-c-120-iso10646-1 (#xCF2) Apparently a Japanese font. I don't know how one is chosen over the other. In this line: 我明天给你回信 The first three characters are in the Japanese font, the next two in Chinese, and the last two back in Japanese again. It looks awful! With shr-use-fonts set to nil, the Chinese font is used for all characters, including Gnus messages. I'm running git Emacs, on Linux, with no desktop environment. My ~/.Xdefaults file has: Emacs.font: Inconsolata-13 But that's the only Emacs-specific line in there. Elsewhere in my init I've got: (require 'chinese) (require 'china-util) But I just commented those out and restarted, and the same thing happens. I can't think of any more relevant config stuff... Any help appreciated! Eric