Re: Emacs fonts in F12

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2009-11-30 at 06:41 -0500, Neal Becker wrote: 
> Matthew Saltzman wrote:
> 
> > On Sun, 2009-11-29 at 18:35 -0500, Neal Becker wrote:
> >> 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.
> > 
> > Ah, you remind me that I had loaded emacs-23 in F11 from updates-
> testing
> > (for just this reason).  That's why I was able to use the gnome-
> terminal
> > fonts in the first place.

Here's another observation I've made.  In the GNOME font selector,
switching between Monospace and DejaVu Sans Mono has no effect on the
appearance of a gnome-terminal.  So my hypothesis is that Monospace is
in fact an alias for DejaVu Sans Mono, and Emacs has the correct font
designated but is somehow incorrectly getting a different font or is
rendering it differently.

Any ideas what to try next to debug?

> > 
> >> 
> >> Here are some suggestions:
> >> 1.
> >> (cond
> >>  ((display-graphic-p)
> >>   (set-face-attribute 'default                nil :font "DejaVu 
> Sans
> >> Mono-9" :slant 'normal :weight 'normal)))
> > 
> > In my .emacs file, I have
> > 
> >         (custom-set-faces
> >           ;; custom-set-faces was added by Custom.
> >           ;; If you edit it by hand, you could mess it up, so be 
> careful.
> >           ;; Your init file should contain only one such instance.
> >           ;; If there is more than one, they won't work right.
> >         '(default ((t (:inherit nil :stipple nil :background
> >         "lightgrey" :foreground "black" :inverse-video nil :box
> >         nil :strike-through nil :overline nil :underline nil :slant
> >         normal :weight normal :height 83 :width normal :foundry
> >         "unknown" :family "DejaVu Sans Mono")))))
> >         
> > I did add the :background setting by hand, but the rest is what was
> > saved by Emacs.  Does the fact that you have "DejaVu Sans Mono-9" 
> and I
> > have "DejaVu Sans Mono" make a difference?  If so, how did you get 
> that
> > string?
> 
> The -9 is the size.  You can pick another if you like.  As to how I 
> came up with it, I'm afraid I don't recall.
> 
> 
> 


-- 
                Matthew Saltzman

Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux