From 5b1dece2f7c8ff3bc3145ea456ef9934cb8846ae Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Sat, 24 Sep 2022 14:01:15 +0200 Subject: Jot down some notes about Emacs's low-level font management --- itches/emacs/tracker.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'itches/emacs/tracker.org') diff --git a/itches/emacs/tracker.org b/itches/emacs/tracker.org index 0c1ec57..2e57fe6 100644 --- a/itches/emacs/tracker.org +++ b/itches/emacs/tracker.org @@ -43,6 +43,18 @@ Fixed by Yamamoto Mitsuharu. :Role: author :END: Fixed by Yamamoto Mitsuharu. +**** Fonts +***** TODO Rank candidate fonts consistently wrt. their version field +I sometimes have two versions of a font installed, e.g. the +distro-provided one, plus an upstream one tucked in =~/.local=. + +Emacs seems to not use the same heuristics as fontconfig's ~fc-match~, +and sometimes picks the older version. + +No bug filed yet; discussed first on [[https://lists.gnu.org/archive/html/help-gnu-emacs/2022-01/msg00042.html][help-gnu-emacs]] and [[https://lists.gnu.org/archive/html/emacs-devel/2022-01/msg00725.html][emacs-devel]], +then brought up on the [[https://lists.freedesktop.org/archives/fontconfig/2022-January/006859.html][fontconfig mailing list]]. Tentative conclusion: +fontconfig's ~fc-match~ seems to take =FC_FONTVERSION= into account +when ranking fonts; it'd be nice if Emacs's ~find-font~ did so too. **** "Pure GTK" port ***** DONE [[https://lists.gnu.org/archive/html/emacs-devel/2021-12/msg01845.html][emacs-devel:<87wnk0wyi7.fsf@gmail.com>]] Let =--with-webp= work with =--with-pgtk= :PROPERTIES: -- cgit v1.2.3