emacs-devel
[Top][All Lists]
Advanced

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

fontset/font change


From: Miles Bader
Subject: fontset/font change
Date: Wed, 11 Mar 2009 22:50:26 +0900

I have been using the following bit of code in my .emacs:

   ;; ugh... force use of Droid Sans Fallback for all non-roman chars
   (let ((fontset (frame-parameter nil 'font)))
     (unless (equal fontset "tty")
       (set-fontset-font fontset 'unicode "Droid Sans Fallback")))

As of today, it no longer seems to work (because the fontset names seem
to be different now, and no longer match the font name).

The intent is to use the font "Droid Sans Fallback" to render anything
that the default font can't (the default font is "Droid Sans Mono", so
they're matched in style etc); "Droid Sans Fallback" contains things
like CJK characters.  If I don't do this, then emacs tends to pick
various random fonts for CJK characters (e.g., Sazanami for japanese).

Is there a better way to do this, which works in the current Emacs?

Thanks,

-Miles

-- 
Patience, n. A minor form of despair, disguised as a virtue.





reply via email to

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