help-gnu-emacs
[Top][All Lists]
Advanced

[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 <address@hidden> 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:
> <https://www.kilobitspersecond.com/2009/04/17/ubuntu-font-hinting-you-a-cautionary-tale/>

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
persists.

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

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

Bye,
  Tassilo



reply via email to

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