[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs and fontsets
From: |
zrr |
Subject: |
Re: Emacs and fontsets |
Date: |
Tue, 21 Sep 2004 00:55:48 +0800 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (gnu/linux) |
"Tassilo Horn" <heimdall@uni-koblenz.de> writes:
> Hi,
>
> I use a two weeks old CVS Emacs. I want to get it display unicode chars
> in a different font than "normal" ascii text. I've put these line in my
> ~/.Xdefaults:
>
> ,----
> | Emacs*Font: fontset-normal
> | Emacs*Fontset-0:\
> | -xos4-terminus-medium-*-*-*-14-*-*-*-*-*-fontset-normal,\
> | mule-unicode-2500-33ff: -gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1,\
> | mule-unicode-e000-ffff: -gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1,\
> | mule-unicode-0100-24ff: -gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1
> `----
hmm...I think the '-gnu-unifont-' is not really font name. It's
likely to indicate some fonts that contain unicode
characters. You can install 'gnu-intlfonts' package:
http://ftp.gnu.org/gnu/intlfonts/
Install it according to README & INSTALL and modify your
~/.Xdefaults as follows:
---------------------------------------------------------------------------
Emacs*Font: fontset-normal
Emacs*Fontset-0:\
-xos4-terminus-medium-*-*-*-14-*-*-*-*-*-fontset-normal,\
mule-unicode-0100-24ff:-misc-fixed-medium-r-normal--16-*-*-*-*-*-iso10646-1,\
mule-unicode-e000-ffff:-misc-fixed-medium-r-normal--16-*-*-*-*-*-iso10646-1,\
mule-unicode-2500-33ff:-misc-fixed-medium-r-normal--16-*-*-*-*-*-iso10646-1
--------------------------------------------------------------------------
Good luck!
Tang
>
>
> When I start emacs now the font really is xos4-terminus-..., but unicode
> chars aren't displayed (only squares).
>
> When I open a file with normal text and unicode chars, move the point
> over a text part and do `C-u C-x =' I get:
>
> ,----
> | character: ( (050, 40, 0x28, U+0028)
> | charset: ascii (ASCII (ISO646 IRV))
> | code point: 40
> | syntax: () which means: open, matches )
> | category: a:ASCII l:Latin
> | buffer code: 0x28
> | file code: 0x28 (encoded by coding system mule-utf-8-unix)
> | display: by this font (glyph code)
> | -xos4-Terminus-Medium-R-Normal--14-140-72-72-C-80-ISO8859-1 (0x28)
> |
> | There is an overlay here:
> | From 14 to 15
> | semantic ("setq" code nil nil #<overlay from 361 to 397 in .gnus.el>)
> |
> |
> |
> | There are text properties here:
> | face [nil]
> | fontified t
> `----
>
> When I move it over such an undisplayed unicode char and press `C-u C-x
> =' I get:
>
> ,----
> | character: ? (01110040, 299040, 0x49020, U+2500)
> | charset: mule-unicode-2500-33ff (Unicode characters of the range
> | U+2500..U+33FF.)
> | code point: 32 32
> | syntax: w which means: word
> | buffer code: 0x9C 0xF2 0xA0 0xA0
> | file code: 0xE2 0x94 0x80 (encoded by coding system mule-utf-8-unix)
> | display: no font available
> |
> | There is an overlay here:
> | From 14 to 15
> | semantic ("if" code nil nil #<overlay from 6007 to 6600 in .gnus.el>)
> |
> |
> |
> | There are text properties here:
> | face [font-lock-string-face]
> | fontified t
> `----
>
> What's the mistake? What do I have to change, to get the unicode chars
> displayed in -gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1?
>
> Regards and much thanks in advance,
> Tassilo
> --
> main(){printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);}
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
- Emacs and fontsets, Tassilo Horn, 2004/09/20
- Re: Emacs and fontsets,
zrr <=
- Message not available