From: Jambunathan K <kjambunathan@gmail.com>
To: "François Patte" <francois.patte@mi.parisdescartes.fr>
Cc: help-gnu-emacs@gnu.org
Subject: Re: how to set fonts for a language
Date: Fri, 27 Dec 2013 09:27:50 +0530 [thread overview]
Message-ID: <87ha9vkksh.fsf@gmail.com> (raw)
In-Reply-To: <l9i869$19t0$1@talisker.lacave.net> ("François Patte"'s message of "Thu, 26 Dec 2013 22:46:15 +0100")
This is what I have for Tamil. C-\ will toggle between English and
Tamil for me. Script in your case will be 'bengali.
(set-face-font 'default "fontset-default")
(set-fontset-font "fontset-default" 'tamil "Lohit Tamil")
(set-language-environment "Tamil")
(add-hook 'set-language-environment-hook
(lambda nil
(when (equal current-language-environment "Tamil")
(setq default-input-method "tamil-itrans"))))
kjambunathan@debian-6:~$ fc-list :lang=ta
TSCu_Paranar:style=Bold
TSCu_Times:style=Normal
TAMu_Maduram:style=Normal
FreeSerif:style=Medium,Mittel,µεσαία,Normal,Gemiddeld,navadno
TSCu_Comic:style=Normal
TAMu_Kadambri:style=Regular
TAMu_Kalyani:style=Regular
Lohit Tamil:style=Regular
unifont:style=Medium
TSCu_Paranar:style=Regular
kjambunathan@debian-6:~$ dpkg -l | grep indic
ii ttf-indic-fonts 1:0.5.11 Metapackage for free Indian language fonts
François Patte <francois.patte@mi.parisdescartes.fr> writes:
> Bonjour,
>
> I use emacs to publish multilingual texts with xelatex. I have
> customized some keys in order to switch from a script to another one,
> like this:
>
> (global-set-key [f12]
> (lambda () (interactive) (set-input-method "bengali-itrans")))
>
> So far, it works perfectly, emacs uses some Bengali fonts installed on
> debian sid.
>
> I want now to use some special otf/ttf fonts in association with this
> switch: when I press f12 key, I want that emacs use these fonts for
> displaying the text. Is that possible and how.
>
>
> Thanks for any help.
next prev parent reply other threads:[~2013-12-27 3:57 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-26 21:46 how to set fonts for a language François Patte
2013-12-27 3:57 ` Jambunathan K [this message]
[not found] ` <mailman.10486.1388116750.10748.help-gnu-emacs@gnu.org>
2013-12-27 12:33 ` François Patte
2013-12-27 13:42 ` Jambunathan K
2013-12-27 13:47 ` Jambunathan K
2013-12-27 15:17 ` Eli Zaretskii
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=87ha9vkksh.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=francois.patte@mi.parisdescartes.fr \
--cc=help-gnu-emacs@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.