[Top][All Lists]

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

Re: Emacs 28: Specific TTF font gets loaded with font-backend x instead

From: Tassilo Horn
Subject: Re: Emacs 28: Specific TTF font gets loaded with font-backend x instead of ftcrhb
Date: Wed, 05 Feb 2020 17:51:34 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Robert Pluim <> writes:

Hi Robert,

> Not that I know of, as far as I know it just does the moral equivalent
> of 'fc-cache' somewhere.

Seems so.  On my work computer I removed the system package and then
just copied the JetBrainsMono ttf files to /usr/share/fonts/TTF/, and
then it worked just fine...

>     Tassilo> Hm, another minor thing: when I compare the rendering of
>     Tassilo> the above paragraph in gedit and emacs, there are slight
>     Tassilo> differences for some glyphs.  For example, the F in TTF
>     Tassilo> is slightly higher than the Ts, and the y is slightly
>     Tassilo> lower than, e.g., an a or o.  In gedit, their height is
>     Tassilo> equal.
> That sounds like there are hinting differences. Cairo doesn╩╝t always
> obey the Gnome Tweaks hinting settings. The following might help:
> <>

Hm, I've tried creating the ~/.config/fontconfig/fonts.conf below which
looks like the equivalent of the GNOME settings (I tested with and
without the lcdfilter because that's not visible there) but the issue

--8<---------------cut here---------------start------------->8---
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
  <match target="font">
    <edit name="antialias" mode="assign">
    <edit name="hinting" mode="assign">
    <edit name="hintstyle" mode="assign">
    <edit name="rgba" mode="assign">
    <edit name="lcdfilter" mode="assign">

<!-- Local Variables: -->
<!-- mode: nxml -->
<!-- End: -->
--8<---------------cut here---------------end--------------->8---


reply via email to

[Prev in Thread] Current Thread [Next in Thread]