help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs could not show this symbol.


From: Peter Dyballa
Subject: Re: emacs could not show this symbol.
Date: Thu, 28 Feb 2008 16:01:59 +0100

Am 28.02.2008 um 13:47 schrieb anhnmncb:

Now I have resolved the problem though don't know why :)
I use this configuration in .Xdefaults:
--------------------------x---------------------------- x--------------------------------
  Emacs.Fontset-0: \
  -misc-dejavu Sans Mono-medium-r-*-*-12-*-*-*-m-*-fontset-dejavu,\
chinese-gb2312:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p- *-iso10646-1,\ chinese-gbk:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p-*- iso10646-1,\ gb18030:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-*-*- iso10646-1,\
  thai-tis620:-misc-fixed-medium-r-*-*-*-*-*-*-*-*-iso10646-1,\
mule-unicode-0100-24ff:-monotype-courier-medium-r-*-*-*-*-*-*-m-*- iso10646-1
I admit that I am not the font or fontset expert, I would have used  
here a gb2312.1980-0 encoded for the chinese-gb2312 encoding, a  
gb18030.2000-0 encoding for the gb18030 encoding, and a tis620-2  
encoded font for the thai-tis620 encoding. For mule-unicode-0100-24ff  
encoding I would use a font that has more to offer than Monotype  
Courier, Lucida Sans Typewriter or DejaVu Sans Mono or Free Mono.  
Well, anyway, I should improve my own settings, too, and learn from  
this a bit.
And this in .emacs:
--------------------------x---------------------------- x--------------------------------
(create-fontset-from-fontset-spec
 (concat
  "-misc-dejavu Sans Mono-medium-r-*-*-12-*-*-*-m-*-fontset-dejavu,"
"chinese-gb2312:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p- *-iso10646-1," "chinese-gbk:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-p-*- iso10646-1," "gb18030:-microsoft-Microsoft YaHei-medium-r-*-*-*-*-*-*-*-*- iso10646-1,"
  "thai-tis620:-misc-fixed-medium-r-*-*-*-*-*-*-*-*-iso10646-1,"
"mule-unicode-0100-24ff:-monotype-courier-medium-r-*-*-*-*-*-*-m- *-iso10646-1"))
Here above I would also check whether the font encodings match the  
GNU Emacs encodings.
  (set-fontset-font "fontset-default"
                    'thai "-misc-fixed-medium-r-*-*-*-*-*-*-*-*-iso10646-1")
(set-default-font "fontset-dejavu")
(add-to-list 'default-frame-alist '(font . "fontset-dejavu"))
You were constructing a "fontset-default" and then you're setting a  
"fontset-dejavu" to be used as default? I admit, documentation  
(particularly examples) of fontsets can be improved.
Another question, maybe emacs.font-backend is enabled by default?
You can check this easily by choosing "Send Bug Report..." from the  
Help menu. It will show the configure options used. And ldd (on GNU/ 
Linux) could tell you which to libraries GNU Emacs is linked. This  
can give you a hint of what it's able to use.
I comment it and find that xft is going on well. Don't know what's the
most correct way to configure fontset for xft emacs, although I tell
emacs to use fontset-dejavu, I find that emacs doesn't use this fontset
actually.
See my comment above!

And many times emacs could not align a line correctly,
Because you are using monospaced and proportionally spaced fonts in  
your fontsets:
        *-*-p-*-iso10646-1
        *-*-m-*-iso10646-1

--
Greetings

  Pete

Mac OS X is like a wigwam: no fences, no gates, but an apache inside.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]