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

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

Re: font problem from emacs 23.3 to 23.4???


From: Peter Dyballa
Subject: Re: font problem from emacs 23.3 to 23.4???
Date: Fri, 27 Jul 2012 21:51:45 +0200

Am 27.07.2012 um 19:58 schrieb rusi:

> So how do I tell xft not to take microsoft-Sahadeva?

I think I've found this in the Emacs Wiki (http://www.emacswiki.org):

        If you are content with Emacs' default fonts and just want to change 
the font for a particular character set; you can use the predefined fontset 
"fontset-standard" and change only that character set from Lisp:
        
            ;; Use the predefined fontset "fontset-standard"
            (set-face-font 'default "fontset-standard")
        
            ;; In "fontset-standard" use "misc fixed" for the charset
            ;; `mule-unicode-0100-24ff'
            (set-fontset-font "fontset-standard"
                              'mule-unicode-0100-24ff
                              "-*-fixed-medium-r-*-*-11-*-*-*-*-*-iso10646-1")
        
        You can have even more fine-grained control and make such changes only 
for a range of characters within an Emacs charset. The following sets 
characters from the Unicode code charts "Greek and Coptic" and "Greek extended" 
to `palatino linotype':
        
            ;; "Greek extended"  U+1F00 - U+1FEF
            (set-fontset-font "fontset-standard"
                              (cons (decode-char 'ucs #x1f00)
                                    (decode-char 'ucs #x1fef))
                              "-*-palatino 
linotype-*-*-r-*-14-*-*-*-*-*-iso10646-1")
        
            ;; "Greek and Coptic"  U+0374 - U+03FB
            (set-fontset-font "fontset-standard"
                              (cons (decode-char 'ucs #x0374)
                                    (decode-char 'ucs #x03fb))
                              "-*-palatino 
linotype-*-*-r-*-14-*-*-*-*-*-iso10646-1")

I think you understand the code and can adapt it to your problem. Otherwise 
browse through the Emacs Wiki (or the built-in documentation).

--
Greetings

  Pete

Cabbage, n. A familiar kitchen-garden vegetable about as large and wise as a 
man's head.




reply via email to

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