Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to set up emacs so that it uses

-outline-Courier New-normal-normal-normal-mono-16-*-*-*-c-*-iso8859-1

to display ASCII characters and

-outline-Arial Unicode MS-normal-normal-normal-sans-16-*-*-*-p-*-gb2312.1980*-*

to display unicode symbols.

This is actually how it was set up by default on one of the computer I use. On another, pressing C-u C-x = on a unicode character of interest gives

        character: ↷ (8631, #o20667, #x21b7)
preferred charset: unicode (Unicode (ISO10646))
       code point: 0x21B7
           syntax: .    which means: punctuation
         category: .:Base
      buffer code: #xE2 #x86 #xB7
        file code: #xE2 #x86 #xB7 (encoded by coding system utf-8-dos)
          display: no font available

Character code properties: customize what to show
  name: CLOCKWISE TOP SEMICIRCLE ARROW
  general-category: So (Symbol, Other)

There are text properties here:
  fontified            t

which I do not fully understand but the part display: no font available is not what I would like.

How can I change that?

share|improve this question
1  
Find out the difference between the two computers. This article might help. –  harrymc May 22 '12 at 15:24
    
ASCII is a subset of UTF-8 so one solution would be to treat everything as unicode. Or perhaps you mean something different? –  ReyCharles May 22 '12 at 16:47
    
I do. I want to have a different font plain text' and 'symbols and stuffs'. –  Alfred M. May 22 '12 at 17:43

1 Answer 1

up vote 1 down vote accepted

Actually the page of interest is not the one entitled Set Fonts but Font Sets (see here). I added

(set-fontset-font "fontset-default" 'unicode
              "-outline-Arial Unicode MS-normal-normal-normal-sans-*-*-*-*-p-*-gb2312.1980-0")

to my .emacs and it did the trick.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.