From: Peter Dyballa <Peter_Dyballa@Web.DE>
To: rusi <rustompmody@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: font problem from emacs 23.3 to 23.4???
Date: Fri, 27 Jul 2012 21:51:45 +0200 [thread overview]
Message-ID: <9C2DB52E-5A0C-48C5-9103-57B658C4C0F2@Web.DE> (raw)
In-Reply-To: <16d7bda4-fe0d-4fd2-86a7-22413a5749dc@d6g2000pbt.googlegroups.com>
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.
next prev parent reply other threads:[~2012-07-27 19:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-27 13:38 font problem from emacs 23.3 to 23.4??? rusi
2012-07-27 14:45 ` Peter Dyballa
[not found] ` <mailman.5758.1343400321.855.help-gnu-emacs@gnu.org>
2012-07-27 17:58 ` rusi
2012-07-27 19:51 ` Peter Dyballa [this message]
[not found] ` <mailman.5787.1343418712.855.help-gnu-emacs@gnu.org>
2012-07-28 2:35 ` rusi
2012-07-28 3:11 ` rusi
2012-07-28 9:14 ` Peter Dyballa
2012-07-28 8:18 ` Peter Dyballa
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=9C2DB52E-5A0C-48C5-9103-57B658C4C0F2@Web.DE \
--to=peter_dyballa@web.de \
--cc=help-gnu-emacs@gnu.org \
--cc=rustompmody@gmail.com \
/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.