unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* fontset/font change
@ 2009-03-11 13:50 Miles Bader
  2009-03-11 14:05 ` Jason Rumney
  2009-03-12  0:57 ` Kenichi Handa
  0 siblings, 2 replies; 14+ messages in thread
From: Miles Bader @ 2009-03-11 13:50 UTC (permalink / raw
  To: emacs-devel

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.





^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-03-13  5:18 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11 13:50 fontset/font change Miles Bader
2009-03-11 14:05 ` Jason Rumney
2009-03-11 14:36   ` Miles Bader
2009-03-12  1:16   ` Kenichi Handa
2009-03-12 13:19     ` Jason Rumney
2009-03-13  5:18       ` Kenichi Handa
2009-03-12  0:57 ` Kenichi Handa
2009-03-12  1:05   ` Miles Bader
2009-03-12  2:53     ` Kenichi Handa
2009-03-12  4:01       ` Miles Bader
2009-03-12  4:10       ` Chong Yidong
2009-03-12  6:40         ` Kenichi Handa
2009-03-12 13:39           ` Chong Yidong
2009-03-13  5:10             ` Kenichi Handa

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).