From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Eww can't display Chinese characters correctly.
Date: Mon, 14 Dec 2020 22:48:40 +0800 [thread overview]
Message-ID: <CAGP6PO+Q4NSKfePTHN3GxY7chs7uUhuKQLp_MbkW9u6nHmz-1Q@mail.gmail.com> (raw)
In-Reply-To: <87tuso30wh.fsf@gnus.org>
[-- Attachment #1: Type: text/plain, Size: 1117 bytes --]
On Mon, Dec 14, 2020 at 10:41 PM Lars Ingebrigtsen <larsi@gnus.org> wrote:
>
> Pankaj Jangid <pankaj@codeisgreat.org> writes:
>
> >> On Ubuntu 20.10, I compiled and installed the git master version of
> >> emacs. When I try to browse the web with eww, I find that all Chinese
> >> characters will show as garbled.
> >>
> >> Any hints for fixing/solving this problem?
> >
> > You need ‘set-fontset-font’ to tell Emacs what font to use for the
> > (language) script. Example,
> >
> > (set-fontset-font t 'devanagari "Noto")
> >
> > This sets Noto font for Devanagari script in the default fontset. ‘t’ is
> > for default fontset.
>
> Emacs should display Chinese characters just fine on its own without any
> configuration needed.
>
> But it's hard to tell what the problem is since "garbled" doesn't really
> tell us much. Garbled how?
See the attached file for more information.
Regards
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Polytechnic Vocational and Technical University
NO. 552 North Gangtie Road, Xingtai, China
[-- Attachment #2: garbled-eww.png --]
[-- Type: image/png, Size: 265208 bytes --]
next prev parent reply other threads:[~2020-12-14 14:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-14 3:30 Eww can't display Chinese characters correctly Hongyi Zhao
2020-12-14 14:01 ` Pankaj Jangid
2020-12-14 14:38 ` Hongyi Zhao
2020-12-14 14:41 ` Lars Ingebrigtsen
2020-12-14 14:48 ` Hongyi Zhao [this message]
2020-12-14 14:56 ` Lars Ingebrigtsen
2020-12-14 15:19 ` Stefan Monnier
2020-12-14 15:27 ` Lars Ingebrigtsen
2020-12-19 11:35 ` William Xu
2020-12-19 15:18 ` Lars Ingebrigtsen
2020-12-19 18:27 ` William Xu
2020-12-20 1:13 ` Hongyi Zhao
2020-12-14 18:59 ` Tomas Nordin
2020-12-14 23:22 ` Hongyi Zhao
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAGP6PO+Q4NSKfePTHN3GxY7chs7uUhuKQLp_MbkW9u6nHmz-1Q@mail.gmail.com \
--to=hongyi.zhao@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=larsi@gnus.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).