unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: zrr <beijing_2008_gold@yahoo.com.cn>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Emacs and fontsets
Date: Tue, 21 Sep 2004 00:55:48 +0800	[thread overview]
Message-ID: <m2llf4anhn.fsf@yahoo.com.cn> (raw)
In-Reply-To: <87vfe8aopj.fsf@inspiron.nicundtas.de> (Tassilo Horn's message of "Mon, 20 Sep 2004 18:29:28 +0200")

"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

  reply	other threads:[~2004-09-20 16:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-20 16:29 Emacs and fontsets Tassilo Horn
2004-09-20 16:55 ` zrr [this message]
     [not found] ` <mailman.3370.1095699728.1998.help-gnu-emacs@gnu.org>
2004-09-20 18:15   ` Tassilo Horn
2004-09-21  9:25     ` Sebastien Kirche
2004-09-21 10:05       ` Tassilo Horn

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=m2llf4anhn.fsf@yahoo.com.cn \
    --to=beijing_2008_gold@yahoo.com.cn \
    --cc=help-gnu-emacs@gnu.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).