* use simsun font in Windows
@ 2008-04-28 9:26 sevenever
2008-04-28 9:37 ` sevenever
2008-04-28 11:30 ` Jason Rumney
0 siblings, 2 replies; 3+ messages in thread
From: sevenever @ 2008-04-28 9:26 UTC (permalink / raw)
To: help-gnu-emacs
Hi!
I'm a newbie for emacs. After installing emacs on Windows xp sp2, i
define a fontset in my ~/_emacs as guide from Internet:
;; 设置字体
(create-fontset-from-fontset-spec
(concat
"-outline-bitstream vera sans mono-normal-r-normal-normal-16-*-*-*-c-*-
fontset-my,"
"chinese-gb2312:-outline-新宋体-normal-r-normal-normal-16-*-*-*-c-*-
gb2312.*-*"))
what I want is using bitstream vera sans mono for ASCII char, and
simsun for Chinese char.
But got displayed as below when view a file contain "中文"
image is here:
http://paste.ubuntu.org.cn/i6216
Later I use font 新宋体 other than fontset just defined, I got this:
image is here:
http://paste.ubuntu.org.cn/i6217
So, how could my emacs cannt display Chinese char as expected?
if any help, my ~/_emacs file is gb2312 encoding.
emacs version: GNU Emacs 21.3.1
Thanks!
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: use simsun font in Windows
2008-04-28 9:26 use simsun font in Windows sevenever
@ 2008-04-28 9:37 ` sevenever
2008-04-28 11:30 ` Jason Rumney
1 sibling, 0 replies; 3+ messages in thread
From: sevenever @ 2008-04-28 9:37 UTC (permalink / raw)
To: help-gnu-emacs
On Apr 28, 5:26 pm, sevenever <sevene...@gmail.com> wrote:
> Hi!
> I'm a newbie for emacs. After installing emacs on Windows xp sp2, i
> define a fontset in my ~/_emacs as guide from Internet:
>
> ;; 设置字体
> (create-fontset-from-fontset-spec
> (concat
> "-outline-bitstream vera sans mono-normal-r-normal-normal-16-*-*-*-c-*-
> fontset-my,"
> "chinese-gb2312:-outline-新宋体-normal-r-normal-normal-16-*-*-*-c-*-
> gb2312.*-*"))
>
> what I want is using bitstream vera sans mono for ASCII char, and
> simsun for Chinese char.
> But got displayed as below when view a file contain "中文"
>
> image is here:http://paste.ubuntu.org.cn/i6216
>
> Later I use font 新宋体 other than fontset just defined, I got this:
>
> image is here:http://paste.ubuntu.org.cn/i6217
>
> So, how could my emacs cannt display Chinese char as expected?
>
> if any help, my ~/_emacs file is gb2312 encoding.
>
> emacs version: GNU Emacs 21.3.1
>
> Thanks!
Sorry for the Chinese char in last post, but it's required for ask a
font problem.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: use simsun font in Windows
2008-04-28 9:26 use simsun font in Windows sevenever
2008-04-28 9:37 ` sevenever
@ 2008-04-28 11:30 ` Jason Rumney
1 sibling, 0 replies; 3+ messages in thread
From: Jason Rumney @ 2008-04-28 11:30 UTC (permalink / raw)
To: help-gnu-emacs
On Apr 28, 10:26 am, sevenever <sevene...@gmail.com> wrote:
> (create-fontset-from-fontset-spec
> (concat
> "-outline-bitstream vera sans mono-normal-r-normal-normal-16-*-*-*-c-*-
> fontset-my,"
> "chinese-gb2312:-outline-新宋体-normal-r-normal-normal-16-*-*-*-c-*-
> gb2312.*-*"))
Try upgrading to Emacs 22.2, which has some bugs fixed with respect to
localised font names on Windows, or try changing 新宋体 above to the
romanized NSimsun (I think that is the romanized name for that font,
based on the fonts I have seen).
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-04-28 11:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-28 9:26 use simsun font in Windows sevenever
2008-04-28 9:37 ` sevenever
2008-04-28 11:30 ` Jason Rumney
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).