all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: James Cloos <cloos@jhcloos.com>
To: "Jan Djärv" <jan.h.d@swipnet.se>
Cc: 17792@debbugs.gnu.org
Subject: bug#17792: 24.3; hintstyle spewcified via fontconfig is ignored by Emacs
Date: Tue, 24 Jun 2014 18:01:52 -0400	[thread overview]
Message-ID: <m338euarva.fsf@carbon.jhcloos.org> (raw)
In-Reply-To: <E50C4E87-39F2-45C7-8F4E-BD0089858B5F@swipnet.se> ("Jan Djärv"'s message of "Sun, 22 Jun 2014 22:54:14 +0200")

>>>>> "JD" == Jan Djärv <jan.h.d@swipnet.se> writes:

JD> I don't know if cairo itself reads fonts.conf and/or X resources,
JD> but I suspect it does.

No.  It uses the fontconfig api.

This bug is a side effect of using xft to render fonts.  LibXft has a
routine which edits the font pattern before passing on to libfontconfig;
it adds pattern elements for each of:

  antialias autohint dpi embolden hinting hintstyle lcdfilter
  maxglyphmemory maxunreffonts minspace render rgba scale

based on what it finds in the X Resources.

It always adds a pattern entry for each of those, with a default value
if it doesn't find an explicit X resource.

Fontconfig is written to allow applications to override the default
values specified in/via fonts.conf, on the reasonable theories that users
should be able to tell apps to override them, and that some applications
SHOULD avoid things like hinting, and therefore need a way to do that.

By forcing its own set of defaults, xft blocks any ability to set those
via the xml.

Fixing this will either require changing libxft to avoid adding pattern
elements for which explicit X Resources do not exist, or changing Emacs
to use fontconfig, freetype and XRENDER directly, rather than via xft.

Handa-san's original code supported an fc: prefix for fonts, which was
defined to do the above, but the xft: won out.

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 0x997A9F17ED7DAEA6





  reply	other threads:[~2014-06-24 22:01 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <53A70B0B.3050300@swipnet.se>
2014-06-17  3:08 ` bug#17792: 24.3; hintstyle specified via fontconfig is ignored by Emacs yynyygy
2014-06-17 15:28   ` Jan Djärv
2014-06-18  4:44     ` Fangwen Yu
2014-06-22 20:54   ` bug#17792: 24.3; hintstyle spewcified " Jan Djärv
2014-06-24 22:01     ` James Cloos [this message]
2014-06-25  8:32       ` Jan Djärv
2019-09-26 14:10   ` bug#17792: 24.3; hintstyle specified " Stefan Kangas
2020-08-12 18:50     ` Stefan Kangas

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m338euarva.fsf@carbon.jhcloos.org \
    --to=cloos@jhcloos.com \
    --cc=17792@debbugs.gnu.org \
    --cc=jan.h.d@swipnet.se \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.