GNU bug report logs - #13584
24.2; Emacs ignores system-wide hinting settings

Previous Next

Package: emacs;

Reported by: Jarosław Rzeszótko <sztywny <at> gmail.com>

Date: Tue, 29 Jan 2013 16:05:02 UTC

Severity: normal

Tags: moreinfo

Found in version 24.2

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Jarosław Rzeszótko <sztywny <at> gmail.com>
Cc: 13584 <at> debbugs.gnu.org
Subject: Re: bug#13584: 24.2; Emacs ignores system-wide hinting settings
Date: Thu, 15 Aug 2019 00:23:46 -0700
Jarosław Rzeszótko <sztywny <at> gmail.com> writes:

> Emacs ignores system-wide hinting settings when displaying fonts, when
> using Gtk+3 and Linux (I didn't test Gtk+2, possibly there as well). I
> have hinting set up in both ~/.Xresources:
>
> Xft.hinting: true
> Xft.hintstyle: hintnone
>
> and in ~/.fonts.conf. All Gtk+3 and Gtk+2 respect those settings when
> rendering fonts. To get emacs use a different hinting than the
> "hintfull" style, I have to do the following in .Xresources:
>
> Emacs.font: Monospaced:hintstyle=hintnone

(I'm going through old bug reports that have unfortunately gotten no
responses yet.)

I haven't tested myself (because I don't really know what I'd look for
to reproduce this bug), but I had a look at the code, and there seems to
be code in there to heed the "hintnone" style:

          else if (strcmp (name, "Xft/HintStyle") == 0)
            {
              settings->seen |= SEEN_HINTSTYLE;
              if (strcmp (sval, "hintnone") == 0)
                settings->hintstyle = FC_HINT_NONE;
              else if (strcmp (sval, "hintslight") == 0)
                settings->hintstyle = FC_HINT_SLIGHT;

This code was added in 2009, though, which I think was before 24.2 was
released...  but there's been other changes in this area over the years
since this was reported.

Are you still seeing this problem on a modern Emacs, and if so, do you
have a recipe to reproduce (i.e., what should be we seeing if Emacs does
this wrong)?

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




This bug report was last modified 5 years and 220 days ago.

Previous Next


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