From: Eric Abrahamsen <eric@ericabrahamsen.net>
To: help-gnu-emacs@gnu.org
Subject: how does shr-use-fonts choose fonts?
Date: Thu, 16 Jul 2015 14:34:00 +0800 [thread overview]
Message-ID: <87a8uwr4pz.fsf@ericabrahamsen.net> (raw)
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
reply other threads:[~2015-07-16 6:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a8uwr4pz.fsf@ericabrahamsen.net \
--to=eric@ericabrahamsen.net \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.