* Should the fonts listed by xlsfonts be used by emacs?
@ 2006-06-22 4:10 c.c
2006-06-22 8:27 ` Peter Dyballa
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: c.c @ 2006-06-22 4:10 UTC (permalink / raw)
Hi,
I am tring use the font simsun in my GNU Emacs 21.4.1. I think I have
setuped this font correctly, because I can see it in the xlsfonts's
output, like this
-misc-simsun-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0
-misc-simsun-medium-r-normal--0-0-0-0-p-0-gbk-0
-misc-simsun-medium-r-normal--0-0-0-0-p-0-iso10646-1
-misc-simsun-medium-r-normal--0-0-0-0-p-0-iso8859-1
-misc-simsun-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0
-misc-simsun-medium-r-normal--0-0-0-0-p-0-jisx0208.1990-0
-misc-simsun-medium-r-normal--0-0-0-0-p-0-koi8-r
but when I try to use these fonts in my emacs like this
emacs -fn "-*-simsun-medium-r-*-*-12-*-*-*-p-*-gb2312.1980-*"
I always fail with message "X protocol error: BadName (named color or
font does not exist) on protocol request 77".
what's wrong ?
Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Should the fonts listed by xlsfonts be used by emacs?
2006-06-22 4:10 Should the fonts listed by xlsfonts be used by emacs? c.c
@ 2006-06-22 8:27 ` Peter Dyballa
[not found] ` <mailman.3161.1150964833.9609.help-gnu-emacs@gnu.org>
` (2 subsequent siblings)
3 siblings, 0 replies; 8+ messages in thread
From: Peter Dyballa @ 2006-06-22 8:27 UTC (permalink / raw)
Cc: help-gnu-emacs
Am 22.06.2006 um 06:10 schrieb c.c:
> emacs -fn "-*-simsun-medium-r-*-*-12-*-*-*-p-*-gb2312.1980-*"
If you are using `"´ on the command line, then your shell is trying
expand the asterisks. You should use `'´ instead. And, since all
these simsun fonts are proportional, you can change p to *, and since
since there is only one in gb2312.1980 you can change the final * to 0.
Another way to solve the problem is to invoke xfontsel and make it
choose a particularly scaled font. The press select, and you can
paste that font name into xterm or a file.
--
Greetings
Pete
Chicago, n.:
Where the dead still vote ... early and often!
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Should the fonts listed by xlsfonts be used by emacs?
[not found] ` <mailman.3161.1150964833.9609.help-gnu-emacs@gnu.org>
@ 2006-06-22 13:34 ` c.c
2006-06-22 17:10 ` Peter Dyballa
0 siblings, 1 reply; 8+ messages in thread
From: c.c @ 2006-06-22 13:34 UTC (permalink / raw)
Peter Dyballa 写道:
> Am 22.06.2006 um 06:10 schrieb c.c:
>
Hi, Peter,
Thanks for your reply.
But your method doesn't work for me, I tried the xfontsel and used the
most simple result '-mis-simsun-medium-*-*-*-*-*-*-*-*-*-*-*', the same
result.
And I am also puzzled why I can't find the entry for simsun font in the
the completion list when I type M-x set-default-font <TAB>. I think it
should be there if the xlsfonts can list it.
best regards,
c.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Should the fonts listed by xlsfonts be used by emacs?
2006-06-22 4:10 Should the fonts listed by xlsfonts be used by emacs? c.c
2006-06-22 8:27 ` Peter Dyballa
[not found] ` <mailman.3161.1150964833.9609.help-gnu-emacs@gnu.org>
@ 2006-06-22 16:12 ` It's me FKtPp ;)
2006-06-25 4:49 ` c.c
3 siblings, 0 replies; 8+ messages in thread
From: It's me FKtPp ;) @ 2006-06-22 16:12 UTC (permalink / raw)
c.c wrote:
> Hi,
>
> I am tring use the font simsun in my GNU Emacs 21.4.1. I think I have
> setuped this font correctly, because I can see it in the xlsfonts's
> output, like this
>
> -misc-simsun-medium-r-normal--0-0-0-0-p-0-gb2312.1980-0
> -misc-simsun-medium-r-normal--0-0-0-0-p-0-gbk-0
> -misc-simsun-medium-r-normal--0-0-0-0-p-0-iso10646-1
> -misc-simsun-medium-r-normal--0-0-0-0-p-0-iso8859-1
> -misc-simsun-medium-r-normal--0-0-0-0-p-0-jisx0208.1983-0
> -misc-simsun-medium-r-normal--0-0-0-0-p-0-jisx0208.1990-0
> -misc-simsun-medium-r-normal--0-0-0-0-p-0-koi8-r
>
> but when I try to use these fonts in my emacs like this
>
> emacs -fn "-*-simsun-medium-r-*-*-12-*-*-*-p-*-gb2312.1980-*"
>
> I always fail with message "X protocol error: BadName (named color or
> font does not exist) on protocol request 77".
>
> what's wrong ?
I think, the -fn switch want a fontname or font_set_name, not things
like "-*-simsun-medium-r-*-*-12-*-*-*-p-*-gb2312.1980-*". The later is a
XLFD fontset pattern.
IN emacs do:
C-h i d m emacs i fontset
and you will see the fontset-related manual.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Should the fonts listed by xlsfonts be used by emacs?
2006-06-22 13:34 ` c.c
@ 2006-06-22 17:10 ` Peter Dyballa
0 siblings, 0 replies; 8+ messages in thread
From: Peter Dyballa @ 2006-06-22 17:10 UTC (permalink / raw)
Cc: help-gnu-emacs
Am 22.06.2006 um 15:34 schrieb c.c:
> But your method doesn't work for me, I tried the xfontsel and used the
> most simple result '-mis-simsun-medium-*-*-*-*-*-*-*-*-*-*-*', the
> same
> result.
>
> And I am also puzzled why I can't find the entry for simsun font in
> the
> the completion list when I type M-x set-default-font <TAB>. I think it
> should be there if the xlsfonts can list it.
What I can think of is, font-config is being used. It has it's own
configuration file(s) (system and user). (fc-cache, fc-list,
fontconfig(3))
I thought you would try to find in xfontsel a font name without any
asterisks, i.e. with everything specified. And using the select
button you would not be able to make a mistake (like above?) when
passing this font name to GNU Emacs.
--
Greetings
Pete
It's not the valleys in life I dread so much as the dips.
-- Garfield
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Should the fonts listed by xlsfonts be used by emacs?
2006-06-22 4:10 Should the fonts listed by xlsfonts be used by emacs? c.c
` (2 preceding siblings ...)
2006-06-22 16:12 ` It's me FKtPp ;)
@ 2006-06-25 4:49 ` c.c
2006-06-26 16:07 ` Kevin Rodgers
2006-06-26 22:23 ` Jason Rumney
3 siblings, 2 replies; 8+ messages in thread
From: c.c @ 2006-06-25 4:49 UTC (permalink / raw)
Hi, guys,
I found the answer, the manual says:
"
If you specify a default ASCII font with the `Font' resource or the
`-fn' argument, Emacs generates a fontset from it automatically. This
is the "startup fontset" and its name is `fontset-startup'.
"
I think the 'emacs -fn' wants a ASCII font name, but the name I gave
is a mbyte font name, so Emacs can't generate a fontset correctly.
Thanks you all.
Best regards.
c.c
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Should the fonts listed by xlsfonts be used by emacs?
2006-06-25 4:49 ` c.c
@ 2006-06-26 16:07 ` Kevin Rodgers
2006-06-26 22:23 ` Jason Rumney
1 sibling, 0 replies; 8+ messages in thread
From: Kevin Rodgers @ 2006-06-26 16:07 UTC (permalink / raw)
c.c wrote:
> I found the answer, the manual says:
>
> "
> If you specify a default ASCII font with the `Font' resource or the
> `-fn' argument, Emacs generates a fontset from it automatically. This
> is the "startup fontset" and its name is `fontset-startup'.
> "
>
> I think the 'emacs -fn' wants a ASCII font name, but the name I gave
> is a mbyte font name, so Emacs can't generate a fontset correctly.
That seems plausible, if you substitute "unibyte" for "ASCII" since
Emacs has no problem with e.g. the ISO 8859-* fonts specified via -fn
or a Font resource.
--
Kevin
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Should the fonts listed by xlsfonts be used by emacs?
2006-06-25 4:49 ` c.c
2006-06-26 16:07 ` Kevin Rodgers
@ 2006-06-26 22:23 ` Jason Rumney
1 sibling, 0 replies; 8+ messages in thread
From: Jason Rumney @ 2006-06-26 22:23 UTC (permalink / raw)
"c.c" <i.c.code@gmail.com> writes:
> I think the 'emacs -fn' wants a ASCII font name, but the name I gave
> is a mbyte font name, so Emacs can't generate a fontset correctly.
There was an -iso8859-1 version of the same font, try that (since it
is generating a fontset, you should still get the -gb2312.1980-0 font
you want for the Chinese characters).
On the other hand, it is proportional, which may also cause problems
for use as the default font.
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2006-06-26 22:23 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-22 4:10 Should the fonts listed by xlsfonts be used by emacs? c.c
2006-06-22 8:27 ` Peter Dyballa
[not found] ` <mailman.3161.1150964833.9609.help-gnu-emacs@gnu.org>
2006-06-22 13:34 ` c.c
2006-06-22 17:10 ` Peter Dyballa
2006-06-22 16:12 ` It's me FKtPp ;)
2006-06-25 4:49 ` c.c
2006-06-26 16:07 ` Kevin Rodgers
2006-06-26 22:23 ` 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).