GNU bug report logs - #19889
tex-verbatim face: don't specify :family?

Previous Next

Package: emacs;

Reported by: Glenn Morris <rgm <at> gnu.org>

Date: Tue, 17 Feb 2015 20:40:02 UTC

Severity: normal

Found in version 24.4

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #44 received at 19889 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: 19889 <at> debbugs.gnu.org, rgm <at> gnu.org
Subject: Re: bug#19889: bug#22207: emacs-25 mishandles info code text on
 Fedora 23
Date: Fri, 06 May 2016 09:49:32 +0300
> From: Paul Eggert <eggert <at> cs.ucla.edu>
> Date: Thu, 5 May 2016 15:54:39 -0700
> 
> On 05/05/2016 02:29 PM, Glenn Morris wrote:
> > Info-quoted and tex-verbatim faces
> > continue to look poor on RHEL 7, so I unmerged and reopened my own
> > #19889.
> >
> Please try the attached patch against Emacs 25. It attempts to implement 
> Stefan's suggestions in Bug#19889, and this improved things for me on 
> Fedora 23, when I ran 'emacs -Q'.
> 
> Although this patch makes things worse when I run emacs without -Q, that 
> is because I have this in my ~/.Xresources:
> 
> Emacs.font: -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
> 
> which is an old-timer expert setting that I should really fix one of 
> these days, so I wouldn't put too much weight on my glitch.

If we are going to use such kludges, why not specify fonts explicitly
in the defface to begin with?  After all, that's what your patch
attempts to do, albeit indirectly, right?

In general, I find the family specification to be too fragile for any
reliable specification of typefaces: the results are inconsistent
across different systems and tend to depend too much on local setup.
Unfortunately, we don't have a font expert on board who could point
out how to do that better, or how to improve the current font
selection machinery to produce more reliable results.  (My impression
is that all the font-related attributes are not perceived as mandatory
enough, and the font selection code tries very hard to find _some_
font, even if it doesn't fit the constraints.  But I have no proof for
this impression.)




This bug report was last modified 9 years and 11 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.