https://bugs.kde.org/show_bug.cgi?id=416001

Matt Whitlock <k...@mattwhitlock.name> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |k...@mattwhitlock.name

--- Comment #5 from Matt Whitlock <k...@mattwhitlock.name> ---
Created attachment 125011
  --> https://bugs.kde.org/attachment.cgi?id=125011&action=edit
hinting_comparison_among_apps.png

I just rebooted my system after some updates, and now I too am seeing that
Konsole no longer respects my hinting configuration for DejaVu Sans Mono.

I have hinting disabled system-wide except for small sizes of DejaVu Sans Mono.


Here is my ~/.config/fontconfig/fonts.conf:

<?xml version='1.0'?>
<!DOCTYPE fontconfig SYSTEM 'fonts.dtd'>
<fontconfig>
 <dir>~/.fonts</dir>
 <match target="font">
  <edit mode="assign" name="embeddedbitmap">
   <bool>false</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="rgba">
   <const>rgb</const>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hinting">
   <bool>false</bool>
  </edit>
 </match>
 <match target="font">
  <edit mode="assign" name="hintstyle">
   <const>hintnone</const>
  </edit>
 </match>
 <match target="font">
  <test name="family">
   <string>DejaVu Sans Mono</string>
  </test>
  <test compare="less_eq" name="weight">
   <const>normal</const>
  </test>
  <test compare="less_eq" name="size">
   <double>15</double>
  </test>
  <edit mode="assign" name="hinting">
   <bool>true</bool>
  </edit>
  <edit mode="assign" name="hintstyle">
   <const>hintfull</const>
  </edit>
 </match>
</fontconfig>


Fontconfig definitely picks up my override:

$ fc-match -v 'Consolas' | fgrep -e hint -e file
        hintstyle: 0(i)(w)
        hinting: False(w)
        autohint: False(s)
        file: "/usr/local/share/fonts/win10/consola.ttf"(w)
$ fc-match -v 'Noto Sans Mono' | fgrep -e hint -e file
        hintstyle: 0(i)(w)
        hinting: False(w)
        autohint: False(s)
        file: "/usr/share/fonts/noto/NotoSansMono-Regular.ttf"(w)
$ fc-match -v 'DejaVu Sans Mono' | fgrep -e hint -e file
        hintstyle: 3(i)(w)
        hinting: True(w)
        autohint: False(s)
        file: "/usr/share/fonts/dejavu/DejaVuSansMono.ttf"(w)


But Konsole ignores my override and renders DejaVu Sans Mono without hinting.

Some other KDE applications, such as KCharSelect, do respect my hinting
override, but others, such as Kate, do not. Chromium does. See my attached
screen shot for comparisons.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to