Emacs fonts in F12

Neal Becker ndbecker2 at gmail.com
Sun Nov 29 23:35:46 UTC 2009


Matthew Saltzman wrote:

> In F11, selecting the same font in Emacs as the system monospace 
font
> (in my case, Monospace Regular 7-point) resulted in an Emacs window 
with
> a typeface that looked the same as the one in a gnome-terminal.  In 
F21,
> the same font looks (a) much smaller and (b) more widely spaced than 
the
> gnome-terminal font (which looks the same as it did in F11).
> 
> Any idea what changed in Emacs and how I can get the font I want?
> 
> TIA.
> 
emacs-23 happened.  Fonts are MUCH better.  Emacs can now use non-
bitmapped fonts.

Here are some suggestions:
1.
(cond 
 ((display-graphic-p)
  (set-face-attribute 'default                nil :font "DejaVu Sans 
Mono-9" :slant 'normal :weight 'normal)))

2. If you'd like to adjust font size using Ctrl-mouse wheel (like many 
other apps):

 (require 'zoom-frm)
(global-set-key (kbd "<C-mouse-5>") 'zoom-in)
(global-set-key (kbd "<C-mouse-4>") 'zoom-out)

For this you'll need:
zoom-frm.el
frame-fns.el
frame-cmds.el
You can find them all here: (e.g.)
http://www.emacswiki.org/emacs/zoom-frm.el




More information about the fedora-list mailing list