all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: getting unicode chars to show on Windows
Date: Fri, 28 Aug 2009 07:00:57 -0700 (PDT)	[thread overview]
Message-ID: <bc0c36da-20e1-49e9-9d2e-2e8e6f94039e@o9g2000prg.googlegroups.com> (raw)
In-Reply-To: mailman.5571.1251456046.2239.help-gnu-emacs@gnu.org

Hi Florian,

thank for your info. I'll need to study it more... getting any unicode
char to display ... also wished to understand emacs fontset in some
detail, so am a bit slow and taking it easy. There are several posts
on this font issue recently... i think Peter? posted a fonset code
that supposed to make all unicode display... (saved to be studied
later) A complication with emacs/fonts is that different OS comes with
different sets of fonts, and for particular platform emacs also deals
font differently ...

Though, right now there's this one thing i need. How do i set a font
for the current frame?
What i want is a toggle-font code so that i can press a key and have
the font set to either a monospaced or variable-spaced one, and just
for the current frame. More specifically:

• what's the elisp function that makes the current frame use Courier
New? (i'll also need to know the full string or whatever that emacs
uses for what Windows calls the Courier New font.)

Thanks.

 Xah

On Aug 28, 3:40 am, Florian Beck <abstrakt...@t-online.de> wrote:
> > Thanks. Spent a couple of hours reading about emacs fonts... am still
> > pretty much nowhere.... agh emacs.
>
> Not sure what exactly your problem is, but here are a couple of pointers:
>
> To figure out what character ranges, fonts, etc I need, I use this site:
>
> http://www.alanwood.net/unicode/fontsbyrange.html
>
> Then you simply specify the font you want for specific characters (like
> Jason wrote), e.g.
>
> (set-fontset-font t 'cherokee
>   (font-spec :family "MPH 2B Damase" :size 24))
>
> Instead of the script name 'cherokee you can also use a range '(5024 .
> 5119) or '(#x13A0 . #x13FF) or specify the first and last character '(?Ꭰ
> . ?᏿).
>
> After you have done this for the most important characters you can use
> something like
>
> (set-fontset-font t nil (font-spec :family "Code2000") nil 'prepend)
>
> Called with 'prepend, set-fontset-font will only affect characters that
> had no font previously, so you can use Code2000 as a fallback.
>
> If you want to use several fontsets or start from scratch, the easiest
> way is to define a fontset
>
> (create-fontset-from-fontset-spec
>   "-*-DejaVu Sans Mono-medium-r-normal-*-14-*-*-*-*-*-fontset-mono")
>
> This fontset will be called fontset-mono, so you would use
>
> (set-fontset-font "fontset-mono" 'cherokee
>   (font-spec :family "MPH 2B Damase" :size 24))
>
> to modify it.
>
> Hope that helps.
>
> --
> Florian Beck


  parent reply	other threads:[~2009-08-28 14:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-25  6:20 getting unicode chars to show on Windows Xah Lee
2009-08-25 17:16 ` B. T. Raven
2009-08-25 18:31 ` Eli Zaretskii
2009-08-26  5:48   ` AW: " Christian.Strobl
2009-08-26  5:50   ` Christian.Strobl
     [not found] ` <mailman.5342.1251225106.2239.help-gnu-emacs@gnu.org>
2009-08-25 22:38   ` B. T. Raven
2009-08-25 22:42     ` B. T. Raven
2009-08-26  3:21     ` Eli Zaretskii
     [not found]     ` <mailman.5389.1251256888.2239.help-gnu-emacs@gnu.org>
2009-08-26 11:35       ` Xah Lee
2009-08-26 22:09         ` Jason Rumney
2009-08-27 18:36           ` Xah Lee
2009-08-28 10:40             ` Florian Beck
     [not found]             ` <mailman.5571.1251456046.2239.help-gnu-emacs@gnu.org>
2009-08-28 14:00               ` Xah Lee [this message]
2009-08-28 23:40                 ` Florian Beck
2009-08-29  0:20                 ` Drew Adams
     [not found]                 ` <mailman.5608.1251505221.2239.help-gnu-emacs@gnu.org>
2009-08-29 16:22                   ` Xah Lee
2009-08-30 17:38                     ` Jason Rumney
2009-08-31 15:23                     ` Drew Adams
2009-08-27  3:22         ` 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=bc0c36da-20e1-49e9-9d2e-2e8e6f94039e@o9g2000prg.googlegroups.com \
    --to=xahlee@gmail.com \
    --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.