all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Miles Bader <miles@gnu.org>
To: emacs-devel@gnu.org
Subject: fontset/font change
Date: Wed, 11 Mar 2009 22:50:26 +0900	[thread overview]
Message-ID: <87ljrcb23h.fsf@catnip.gol.com> (raw)

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	other threads:[~2009-03-11 13:50 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-11 13:50 Miles Bader [this message]
2009-03-11 14:05 ` fontset/font change 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

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ljrcb23h.fsf@catnip.gol.com \
    --to=miles@gnu.org \
    --cc=emacs-devel@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.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.