unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* questions about `fontset-font'
@ 2009-03-11 14:52 Miles Bader
  0 siblings, 0 replies; only message in thread
From: Miles Bader @ 2009-03-11 14:52 UTC (permalink / raw)
  To: emacs-devel

Now that I see `t' can be used to mean "default fontset" (kinda?), I
tried using the `fontset-font' function; but sometimes the results
appear odd, and seem different than how emacs renders:

Again, my default font is "Droid Sans Mono", which has a fair number of
common character, but not CJK; I (now) use the following statement in my
.emacs to render various other chars in "Droid Sans Fallback":

    (set-fontset-font t 'unicode "Droid Sans Fallback")

I tried the following queries:

(fontset-font t ?a)
  => ("Droid Sans Fallback")
... but emacs renders "a" using the default font, "Droid Sans Mono"

(fontset-font t ?¥)
  => ("clearlyu" . "iso10646-1")
... but emacs again renders "¥" using the default font, "Droid Sans Mono"

(fontset-font t ?字)
  => ("clearlyu" . "iso10646-1")
... bizarre... emacs renders "字" using "Droid Sans Fallback", as per my
  instructions...

I don't know why it's returning "clearlyu" anyway, since it doesn't seem
to actually have any CJK characters...

What does `fontset-font' do, anyway?

-Miles

-- 
Learning, n. The kind of ignorance distinguishing the studious.




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-03-11 14:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-11 14:52 questions about `fontset-font' Miles Bader

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