[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Changing the default font on the fly
From: |
Bill White |
Subject: |
Re: Changing the default font on the fly |
Date: |
Sat, 23 Jun 2012 18:17:29 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) |
On Sat Jun 23 2012 at 16:18, Eddie <penguinismo@almostconnecticut.net> wrote:
> I would like to get a hunk of code that is the functional equivalent
> to Options | Set Default Font | Droid Sans Regular 12.
I do this:
,----[ ~/.emacs ]
| (set-default-font "-unknown-DejaVu Sans
Mono-normal-normal-normal-*-14-*-*-*-m-0-iso10646-1")
`----
To get that long crazy string that describes the font, I tried lots of
fonts via Set Default Font til I found one I liked, then put the cursor
on one of its characters and typed C-u C-x = to get this information
(the string you need is after "xft:" and does not include the mysterious
stuff in parens on that line):
,----
| position: 853 of 1002 (85%), restriction: <0-144>, column: 1003
| character: o (displayed as o) (codepoint 111, #o157, #x6f)
| preferred charset: ascii (ASCII (ISO646 IRV))
| code point in charset: 0x6F
| syntax: w which means: word
| category: .:Base, L:Left-to-right (strong), a:ASCII, l:Latin,
r:Roman
| buffer code: #x6F
| file code: #x6F (encoded by coding system utf-8-emacs-unix)
| display: by this font (glyph code)
| xft:-unknown-DejaVu Sans
Mono-normal-normal-normal-*-14-*-*-*-m-0-iso10646-1 (#x52)
|
| Character code properties: customize what to show
| name: LATIN SMALL LETTER O
| general-category: Ll (Letter, Lowercase)
| canonical-combining-class: 0 (Spacing, split, enclosing, reordrant, and
Tibetan subjoined)
| bidi-class: L (Left-to-Right)
| decomposition: (111) ('o')
| mirrored: N
| uppercase: 79 (O)
| titlecase: 79 (O)
|
| There are text properties here:
| fontified t
|
| [back]
`----
Cheers -
bw
--
Bill White . billw@wolfram.com
"No ma'am, we're musicians."