Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] Font rendering issues since update
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Wicla
n00b
n00b


Joined: 22 Aug 2004
Posts: 15
Location: Sweden

PostPosted: Wed Mar 21, 2018 8:11 pm    Post subject: [Solved] Font rendering issues since update Reply with quote

Hi,

I'm having trouble that font is being rendered horribly since I updated my system on the 11th of March. I was using freetype with infinality use flag previously to get a good font but after my font stopped working properly I thought it was time to move over to freetype only since as far as I know infinality isn't really maintained. Font does render OK in some applications (like Steam, Teamspeak, Spotify, keepassx) and other applications really bad (Firefox, Chrome, Thunderbird and ESPECIALLY bad in Discord where it's barely working. However in Discord it didn't work very well before this happened either. Text on some pages renders better than other pages though in Firefox. The gentoo forums page renders better as an example.

I'm not really sure what information is relevant for this.

Packages updated on the 10th of March:
Code:

     Sat Mar 10 21:33:44 2018 >>> net-misc/ethertypes-0
     Sat Mar 10 21:34:03 2018 >>> app-text/qpdf-8.0.2
     Sat Mar 10 21:35:37 2018 >>> dev-libs/libunistring-0.9.9
     Sat Mar 10 21:35:40 2018 >>> app-misc/ca-certificates-20170717.3.36
     Sat Mar 10 21:35:47 2018 >>> dev-perl/Text-CSV_XS-1.340.0
     Sat Mar 10 21:36:08 2018 >>> dev-libs/nspr-4.19
     Sat Mar 10 21:37:05 2018 >>> dev-libs/protobuf-3.5.2
     Sat Mar 10 21:37:08 2018 >>> sys-apps/sed-4.4-r1
     Sat Mar 10 21:37:17 2018 >>> dev-python/ply-3.11
     Sat Mar 10 21:37:24 2018 >>> dev-python/futures-3.2.0
     Sat Mar 10 21:37:27 2018 >>> net-firewall/ebtables-2.0.10.4-r2
     Sat Mar 10 21:37:32 2018 >>> dev-python/msgpack-0.5.6
     Sat Mar 10 21:37:59 2018 >>> sys-kernel/gentoo-sources-4.15.8
     Sat Mar 10 21:38:02 2018 >>> dev-python/pycparser-2.18-r1
     Sat Mar 10 21:38:05 2018 >>> x11-libs/libdrm-2.4.91
     Sat Mar 10 21:38:09 2018 >>> dev-vcs/mercurial-4.5.2
     Sat Mar 10 21:38:18 2018 >>> media-gfx/feh-2.25
     Sat Mar 10 21:38:21 2018 >>> dev-python/neovim-python-client-0.2.1-r1
     Sat Mar 10 21:38:38 2018 >>> sys-apps/gawk-4.2.1-r1
     Sat Mar 10 21:38:42 2018 >>> sys-libs/e2fsprogs-libs-1.44.0
     Sat Mar 10 21:38:48 2018 >>> x11-misc/util-macros-1.19.2
     Sat Mar 10 21:39:00 2018 >>> x11-proto/xcb-proto-1.13
     Sat Mar 10 21:39:30 2018 >>> x11-libs/libxcb-1.13
     Sat Mar 10 21:39:38 2018 >>> x11-apps/mkfontscale-1.1.3
     Sat Mar 10 21:39:44 2018 >>> dev-libs/libinput-1.10.2
     Sat Mar 10 21:39:59 2018 >>> sys-apps/portage-2.3.24-r1
     Sat Mar 10 21:40:09 2018 >>> x11-apps/iceauth-1.0.8
     Sat Mar 10 21:40:12 2018 >>> x11-misc/xbitmaps-1.1.2
     Sat Mar 10 21:40:17 2018 >>> x11-apps/xrdb-1.1.1
     Sat Mar 10 21:40:20 2018 >>> x11-apps/xkbcomp-1.4.1
     Sat Mar 10 21:40:24 2018 >>> x11-apps/xset-1.2.4
     Sat Mar 10 21:40:29 2018 >>> x11-apps/xprop-1.2.3
     Sat Mar 10 21:40:32 2018 >>> net-analyzer/vnstat-1.18
     Sat Mar 10 21:40:36 2018 >>> x11-libs/xpyb-1.3.1-r4
     Sat Mar 10 21:40:40 2018 >>> x11-apps/xinit-1.4.0
     Sat Mar 10 21:40:44 2018 >>> app-admin/logrotate-3.14.0
     Sat Mar 10 21:41:02 2018 >>> media-gfx/graphite2-1.3.11
     Sat Mar 10 21:41:06 2018 >>> app-antivirus/clamav-0.99.4
     Sat Mar 10 21:41:22 2018 >>> sys-libs/libomp-6.0.0
     Sat Mar 10 21:41:40 2018 >>> media-libs/harfbuzz-1.7.6
     Sat Mar 10 21:41:56 2018 >>> dev-python/pycairo-1.16.3
     Sat Mar 10 21:42:28 2018 >>> app-portage/eix-0.33.2
     Sat Mar 10 21:42:34 2018 >>> app-admin/keepassxc-2.3.1
     Sat Mar 10 21:43:26 2018 >>> dev-libs/nss-3.36
     Sat Mar 10 21:43:29 2018 >>> net-firewall/iptables-1.6.2-r2
     Sat Mar 10 21:43:32 2018 >>> app-editors/nano-2.9.4
     Sat Mar 10 21:43:36 2018 >>> sys-apps/util-linux-2.31.1-r1
     Sat Mar 10 21:44:15 2018 >>> media-libs/fontconfig-2.13.0
     Sat Mar 10 21:45:26 2018 >>> sys-apps/systemd-238
     Sat Mar 10 21:46:05 2018 >>> sys-apps/dbus-1.12.6
     Sat Mar 10 21:47:21 2018 >>> x11-base/xorg-server-1.19.5-r1
     Sat Mar 10 21:47:25 2018 >>> sys-fs/e2fsprogs-1.44.0
     Sat Mar 10 21:47:36 2018 >>> dev-java/icedtea-bin-3.7.0
     Sat Mar 10 21:47:43 2018 >>> net-misc/teamviewer-13.0.9865
     Sat Mar 10 21:47:49 2018 >>> sys-kernel/dracut-047
     Sat Mar 10 21:47:53 2018 >>> net-print/cups-filters-1.20.1
     Sat Mar 10 21:47:57 2018 >>> net-nds/rpcbind-0.2.4-r2
     Sat Mar 10 21:48:07 2018 >>> net-im/skypeforlinux-8.17.0.2
     Sat Mar 10 21:48:10 2018 >>> sys-fs/cryptsetup-2.0.2
     Sat Mar 10 21:48:14 2018 >>> www-client/google-chrome-65.0.3325.146
     Sat Mar 10 21:49:10 2018 >>> x11-drivers/nvidia-drivers-390.25
     Sat Mar 10 21:49:21 2018 >>> x11-drivers/xf86-input-libinput-0.26.0
     Sat Mar 10 21:55:44 2018 >>> sys-apps/systemd-238
     Sat Mar 10 21:57:20 2018 >>> x11-drivers/nvidia-drivers-390.25


Rendering in Firefox (when it's bad): https://screenshotscdn.firefoxusercontent.com/images/67cd7e4a-a0e6-4b70-8aed-3d36011ec54c.png
Rendering in Firefox (when it's better): https://screenshotscdn.firefoxusercontent.com/images/61214575-fd9f-41da-80b6-53a5dbca9cfc.png
Rendering in Discord: https://i.imgur.com/A8jCGpU.png

Use flags for freetype:
Code:
media-libs/freetype-2.9:2::gentoo  USE="X adobe-cff bzip2 png -bindist -cleartype_hinting -debug -doc -fontforge -harfbuzz -infinality -static-libs -utils" ABI_X86="32 (64) (-x32)"


Currently selected font configuration in `eselect fontconfig`. Yes a lot of stuff is enabled but I got desperate.
Code:

  [1]   10-autohint.conf
  [2]   10-hinting-full.conf
  [3]   10-hinting-medium.conf
  [4]   10-hinting-none.conf
  [5]   10-hinting-slight.conf
  [6]   10-no-sub-pixel.conf
  [7]   10-scale-bitmap-fonts.conf
  [8]   10-sub-pixel-bgr.conf
  [9]   10-sub-pixel-rgb.conf *
  [10]  10-sub-pixel-vbgr.conf
  [11]  10-sub-pixel-vrgb.conf
  [12]  10-unhinted.conf
  [13]  11-lcdfilter-default.conf *
  [14]  11-lcdfilter-legacy.conf
  [15]  11-lcdfilter-light.conf
  [16]  20-unhint-small-dejavu-sans.conf *
  [17]  20-unhint-small-dejavu-sans-mono.conf *
  [18]  20-unhint-small-dejavu-serif.conf *
  [19]  20-unhint-small-vera.conf *
  [20]  25-ttf-arphic-ukai-render.conf
  [21]  25-ttf-arphic-uming-bitmaps.conf
  [22]  25-ttf-arphic-uming-render.conf
  [23]  25-unhint-nonlatin.conf
  [24]  30-metric-aliases.conf
  [25]  31-cantarell.conf *
  [26]  35-ttf-arphic-ukai-aliases.conf *
  [27]  35-ttf-arphic-uming-aliases.conf *
  [28]  40-nonlatin.conf
  [29]  41-ttf-arphic-ukai.conf *
  [30]  41-ttf-arphic-uming.conf *
  [31]  42-luxi-mono.conf *
  [32]  43-wqy-zenhei-sharp.conf *
  [33]  44-wqy-zenhei.conf *
  [34]  45-generic.conf
  [35]  45-latin.conf *
  [36]  49-sansserif.conf *
  [37]  50-user.conf
  [38]  51-local.conf *
  [39]  57-dejavu-sans.conf *
  [40]  57-dejavu-sans-mono.conf *
  [41]  57-dejavu-serif.conf *
  [42]  59-google-droid-sans.conf *
  [43]  59-google-droid-sans-mono.conf *
  [44]  59-google-droid-serif.conf *
  [45]  60-generic.conf
  [46]  60-latin.conf *
  [47]  60-liberation.conf *
  [48]  63-source-pro.conf *
  [49]  64-ttf-arphic-uming.conf *
  [50]  65-fonts-persian.conf *
  [51]  65-khmer.conf *
  [52]  65-nonlatin.conf *
  [53]  66-ja-ipafonts.conf *
  [54]  66-takao-fonts.conf *
  [55]  69-unifont.conf *
  [56]  70-no-bitmaps.conf
  [57]  70-yes-bitmaps.conf
  [58]  75-ttf-arphic-ukai-select.conf *
  [59]  80-delicious.conf *
  [60]  90-synthetic.conf *
  [61]  90-ttf-arphic-ukai-embolden.conf *
  [62]  90-ttf-arphic-uming-embolden.conf *


Any suggestions are welcome.. I don't really know what to change to fix the issue. If any more information is needed please tell me.

Thanks.

[Moderator edit: changed [quote] tags to [code] tags to preserve output layout. -Hu]


Last edited by Wicla on Fri Mar 23, 2018 5:17 pm; edited 1 time in total
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Wed Mar 21, 2018 8:24 pm    Post subject: Reply with quote

You need at least some form of hinting turned on.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Wed Mar 21, 2018 8:48 pm    Post subject: Reply with quote

Enable USE flag 'cleartype-hinting' and enable '[5]10-hinting-slight.conf'. Should be much better.
Back to top
View user's profile Send private message
Wicla
n00b
n00b


Joined: 22 Aug 2004
Posts: 15
Location: Sweden

PostPosted: Wed Mar 21, 2018 9:05 pm    Post subject: Reply with quote

Hi,

Thanks for the suggestions. I enabled and USE flag cleartype_hinting for media-libs/freetype and enabled 10-hinting-slight.conf but it didn't help. Can't see any changes at all to be honest.

Does http://www.lagom.nl/lcd-test/subpixel.php work for anyone? For me it shows that I don't have any kind of subpixel-/greyscale-smoothing setup. It's like my configuration in eselect fontconfig is ignored (not sure if that's the case though).

https://screenshotscdn.firefoxusercontent.com/images/1bed63c9-b83c-4948-b489-562b1a4e3d1b.png
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Wed Mar 21, 2018 9:20 pm    Post subject: Reply with quote

Quote:
I enabled and USE flag cleartype_hinting for media-libs/freetype and enabled 10-hinting-slight.conf but it didn't help.

It's strange that nothing changed at all.

1) Probably a stupid question, but just to be sure: did you rebuild Freetype after you enabled USE flag cleartype_hinting and did you restart your desktop?

2) Since '51-local.conf' ist true: please look at the file '/etc/fonts/local.conf': are there any settings that override selections you made in fontconfig?
Back to top
View user's profile Send private message
Wicla
n00b
n00b


Joined: 22 Aug 2004
Posts: 15
Location: Sweden

PostPosted: Wed Mar 21, 2018 9:34 pm    Post subject: Reply with quote

mike155 wrote:
Quote:
I enabled and USE flag cleartype_hinting for media-libs/freetype and enabled 10-hinting-slight.conf but it didn't help.

It's strange that nothing changed at all.

1) Probably a stupid question, but just to be sure: did you rebuild Freetype after you enabled USE flag cleartype_hinting and did you restart your desktop?

2) Since '51-local.conf' ist true: please look at the file '/etc/fonts/local.conf': are there any settings that override selections you made in fontconfig?


1) I did indeed rebuild freetype with cleartype_hinting. After that enabled it using eselect. After that I exited to the login manager (slim) and logged in again. Will try to reboot just in case now though. -- didn't help :(

2) /etc/fonts/local.conf doesn't exist nor does 51-local.conf contain any specific configuration.

Quote:

% ls -l /etc/fonts/local.conf
ls: cannot access '/etc/fonts/local.conf': No such file or directory

% cat /etc/fonts/conf.d/51-local.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Load local system customization file -->
<include ignore_missing="yes">local.conf</include>
</fontconfig>


Just to make sure I don't have any local configuration for my user. I do have ~/.fontconfig and ~/.config/fontconfig but both are empty. Can't find anything else font related in my home directory.

Thanks for all suggestions so far!
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Wed Mar 21, 2018 9:49 pm    Post subject: Reply with quote

Do you know fc-match? It shows how a font will be rendered.

Please show us the output of fc-match for one of the fonts you use and that looks ugly.

Here is the (shortened) output of 'fc-match Arial' on my computer:
Code:
family: "Arial"(s)
fullname: "Arial"(s)
slant: 0(i)(s)
weight: 80(i)(s)
width: 100(i)(s)
size: 12(f)(s)
pixelsize: 16(f)(s)
antialias: True(w)        <------
hintstyle: 1(i)(w)        <------
hinting: True(w)          <------
verticallayout: False(s)
autohint: False(w)        <------
index: 0(i)(w)
outline: True(w)
scalable: True(w)
dpi: 96(f)(s)
rgba: 5(i)(w)             <------
scale: 1(f)(s)
fontformat: "TrueType"(w)
embeddedbitmap: False(w)  <------
decorative: False(s)
lcdfilter: 1(i)(w)        <------
color: False(w)
symbol: False(s)
Back to top
View user's profile Send private message
Wicla
n00b
n00b


Joined: 22 Aug 2004
Posts: 15
Location: Sweden

PostPosted: Thu Mar 22, 2018 4:23 pm    Post subject: Reply with quote

Hi again,

Sorry for late response (sleep + work).

I'm not sure I understand `fc-match`.
Code:

% fc-match Arial
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"

% fc-match -v Arial
Pattern has 37 elts (size 48)
        family: "Liberation Sans"(s)
        familylang: "en"(s)
        style: "Regular"(s)
        stylelang: "en"(s)
        fullname: "Liberation Sans"(s)
        fullnamelang: "en"(s)
        slant: 0(i)(s)
        weight: 80(i)(s)
        width: 100(i)(s)
        size: 12(f)(s)
        pixelsize: 12.5(f)(s)
        foundry: "1ASC"(w)
        hintstyle: 1(i)(w)
        hinting: True(s)
        verticallayout: False(s)
        autohint: False(s)
        globaladvance: True(s)
        file: "/usr/share/fonts/liberation-fonts/LiberationSans-Regular.ttf"(w)
        index: 0(i)(w)
        outline: True(w)
        scalable: True(w)
        dpi: 75(f)(s)
        rgba: 1(i)(w)
        scale: 1(f)(s)
        charset:
        ....
(w)
        lang: aa|ab|af|ast|av|ay|az-az|ba|bm|be|bg|bi|bin|br|bs|bua|ca|ce|ch|chm|co|cs|cu|cv|cy|da|de|el|en|eo|es|et|eu|fi|fj|fo|fr|ff|fur|fy|ga|gd|gl|gn|gv|ha|haw|he|ho|hr|hu|ia| ig|id|ie|ik|io|is|it|kaa|ki|kk|kl|ku-am|kum|kv|kw|ky|la|lb|lez|ln|lt|lv|mg|mh|mi|mk|mo|mt|nb|nds|nl|nn|no|nr|nso|ny|oc|om|os|pl|pt|rm|ro|ru|sah|sco|se|sel|sh|shs|sk|sl|sm|sma |smj|smn|sms|so|sq|sr|ss|st|sv|sw|tg|tk|tl|tn|to|tr|ts|tt|tw|tyv|uk|uz|ve|vi|vo|vot|wa|wen|wo|xh|yap|yi|yo|zu|ak|an|ber-dz|crh|csb|ee|fat|fil|hsb|ht|hz|jv|kab|kj|kr|ku-tr|kwm|lg|li|mn-mn|ms|na|ng|nv|pap-an|pap-aw|qu|quz|rn|rw|sc|sg|sn|su|ty|za(s)
        fontversion: 131072(i)(s)
        capability: "otlayout:cyrl otlayout:grek otlayout:hebr otlayout:latn"(w)
        fontformat: "TrueType"(w)
        embeddedbitmap: True(s)
        decorative: False(s)
        lcdfilter: 1(i)(w)
        namelang: "en"(s)
        prgname: "fc-match"(s)
        postscriptname: "LiberationSans"(w)
        color: False(w)
        symbol: False(s)



I do have corefonts installed which should provide Arial? If I do `fc-match inconsolata` it returns that font as the result though.

How do I figure out what fonts are being shown? When I press F12 and go to Inspector in Firefox for https://wiki.gentoo.org/wiki/Fontconfig it shows:
font-family:
Quote:

"Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
body: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif
html: sans-serif


Code:

% fc-match sans-serif  -v                                                                                                                                                                                                                                                                                                                                                                                     
Pattern has 37 elts (size 48)
        family: "DejaVu Sans"(s)
        familylang: "en"(s)
        style: "Book"(s)
        stylelang: "en"(s)
        fullname: "DejaVu Sans"(s)
        fullnamelang: "en"(s)
        slant: 0(i)(s)
        weight: 80(i)(s)
        width: 100(i)(s)
        size: 12(f)(s)
        pixelsize: 12.5(f)(s)
        foundry: "PfEd"(w)
        hintstyle: 1(i)(w)
        hinting: True(s)
        verticallayout: False(s)
        autohint: False(s)
        globaladvance: True(s)
        file: "/usr/share/fonts/dejavu/DejaVuSans.ttf"(w)
        index: 0(i)(w)
        outline: True(w)
        scalable: True(w)
        dpi: 75(f)(s)
        rgba: 1(i)(w)
        scale: 1(f)(s)
        charset:
        ...
        lang: aa|ab|af|ar|ast|av|ay|az-az|az-ir|ba|bm|be|bg|bi|bin|br|bs|bua|ca|ce|ch|chm|co|cs|cu|cv|cy|da|de|el|en|eo|es|et|eu|fa|fi|fj|fo|fr|ff|fur|fy|ga|gd|gl|gn|gv|ha|haw|he|ho|hr| hu|hy|ia|ig|id|ie|ik|io|is|it
|iu|ka|kaa|ki|kk|kl|ku-am|ku-ir|kum|kv|kw|ky|la|lb|lez|ln|lo|lt|lv|mg|mh|mi|mk|mo|mt|nb|nds|nl|nn|no|nr|nso|ny|oc|om|os|pl|pt|rm|ro|ru|sah|sco|se|sel|sh|shs|sk|sl|sm| sma|smj|smn|sms|so|sq|sr|ss|st|sv|sw|tg|tk|tl|tn
|to|tr|ts|tt|tw|tyv|ug|uk|uz|ve|vi|vo|vot|wa|wen|wo|xh|yap|yi|yo|zu|ak|an|ber-dz|ber-ma|crh|csb|ee|fat|fil|hsb|ht|hz|jv|kab|kj|kr|ku-iq|ku-tr|kwm|lg|li|mn-mn|ms|na|ng|nv|ota|pap-an|pap-aw|qu|quz|rn|rw|sc|sd|sg|sn|s
u|ty|za(s)
        fontversion: 155320(i)(s)
        capability: "otlayout:DFLT otlayout:arab otlayout:armn otlayout:brai otlayout:cans otlayout:cher otlayout:cyrl otlayout:geor otlayout:grek otlayout:hani otlayout:hebr otlayout:kana otlayout:lao  otlayout:la
tn otlayout:math otlayout:nko  otlayout:ogam otlayout:runr otlayout:tfng otlayout:thai"(w)
        fontformat: "TrueType"(w)
        embeddedbitmap: True(s)
        decorative: False(s)
        lcdfilter: 1(i)(w)
        namelang: "en"(s)
        prgname: "fc-match"(s)
        postscriptname: "DejaVuSans"(w)
        color: False(w)
        symbol: False(s)

% fc-match helvetica
DejaVuSans.ttf: "DejaVu Sans" "Book"
% fc-match arial
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"
Mod edit: Long lines split to preserve Forum formatting. — JRG
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Thu Mar 22, 2018 5:09 pm    Post subject: Reply with quote

Hi Wicla,

thanks for the data.

One crucial attribute is missing in your output of fc-match: 'antialias'. Please compare your output to the the output on my computer which I posted earlier.

If I look at the screenshots in your first post, I think that's exactly the problem: anti-aliasing in missing.

Let's try to find out why anti-aliasing doesn't work on your computer. Please try "fc-match -v" for other fonts. Does 'fc-match -v' show the attribute 'antialias' for any font?
Back to top
View user's profile Send private message
Wicla
n00b
n00b


Joined: 22 Aug 2004
Posts: 15
Location: Sweden

PostPosted: Thu Mar 22, 2018 5:15 pm    Post subject: Reply with quote

Hi,

You seem to be correct. Doesn't seem like antialiasing is working correctly. Can't find any font which proper anti-aliasing support.

Thanks.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Thu Mar 22, 2018 5:24 pm    Post subject: Reply with quote

Quote:
fc-match Arial
LiberationSans-Regular.ttf: "Liberation Sans" "Regular"

That's because '60-liberation.conf *' is enabled it on your computer. It maps Arial to LiberationSans. Disable '60-liberation.conf' and you will get Arial if you select Arial. 60-liberation.conf is useful only if Arial is NOT installed on your computer.

Side note: that's exactly the reason why I hate fontconfig. It changes the font system in a way no one expects. For that reason, I disable all fontconfig items except 50-user.conf and 51-local.conf. I use /etc/fonts/local.conf to configure the font system. Here is an introduction. But that's clearly another topic, which has nothing to to with your anti-aliasing problem.
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Thu Mar 22, 2018 5:28 pm    Post subject: Reply with quote

Quote:
Doesn't seem like antialiasing is working correctly.


That's strange. I have never heard that before. I'll dig into that deeper tomorrow - I don't have time today. Maybe someone else knows this problem and can offer a solution.
Back to top
View user's profile Send private message
Wicla
n00b
n00b


Joined: 22 Aug 2004
Posts: 15
Location: Sweden

PostPosted: Thu Mar 22, 2018 5:44 pm    Post subject: Reply with quote

mike155 wrote:
Quote:
Doesn't seem like antialiasing is working correctly.


That's strange. I have never heard that before. I'll dig into that deeper tomorrow - I don't have time today. Maybe someone else knows this problem and can offer a solution.


No problem. I'm grateful for all the help so far!

Tried to create ~/.fonts.conf with the contents below (hopefully it's correct.. found example and modified it a bit) and then run `fc-cache`. Relogged but still antialias doesn't show up when I do `fc-match -v Arial`. From what I've found when googling it should be the default for any font though?
Code:

<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">

<fontconfig>
<match target="pattern">
        <test qual="any" name="family">
                <string>Arial</string>
        </test>
        <edit name="antialias" mode="assign">
                <bool>true</bool>
        </edit>
</match>
</fontconfig>
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Thu Mar 22, 2018 11:47 pm    Post subject: Reply with quote

Text deleted, since it was wrong... Sorry!

Last edited by mike155 on Fri Mar 23, 2018 9:06 am; edited 1 time in total
Back to top
View user's profile Send private message
mike155
Advocate
Advocate


Joined: 17 Sep 2010
Posts: 4438
Location: Frankfurt, Germany

PostPosted: Fri Mar 23, 2018 9:05 am    Post subject: Reply with quote

I think I was wrong regarding the antialias parameter. The default is that it is NOT shown in the output of 'fc-match -v'. Your output is correct.
Back to top
View user's profile Send private message
Kron4ek
n00b
n00b


Joined: 23 Mar 2018
Posts: 10
Location: /dev/city

PostPosted: Fri Mar 23, 2018 9:16 am    Post subject: Reply with quote

Try tro build freetype with cleartype_hinting use flag. Also enable these configs with eselect fontconfig:
Code:
10-hinting-full.conf
70-no-bitmaps.conf

And remove (or better rename, to keep them just in case) any user-specific fonts configuration (such as ~/.config/fontconfig/fonts.conf, ~/fonts.conf etc.) from home directory. Create .Xresources and .Xdefaults files in home dir with such content:
Code:
Xft.dpi: 96
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb

After these steps, update your fonts cache:
Code:
$ fc-cache -r
Back to top
View user's profile Send private message
Wicla
n00b
n00b


Joined: 22 Aug 2004
Posts: 15
Location: Sweden

PostPosted: Fri Mar 23, 2018 5:17 pm    Post subject: [Solved] Font rendering issues since update Reply with quote

Kron4ek wrote:
Try tro build freetype with cleartype_hinting use flag. Also enable these configs with eselect fontconfig:
Code:
10-hinting-full.conf
70-no-bitmaps.conf

And remove (or better rename, to keep them just in case) any user-specific fonts configuration (such as ~/.config/fontconfig/fonts.conf, ~/fonts.conf etc.) from home directory. Create .Xresources and .Xdefaults files in home dir with such content:
Code:
Xft.dpi: 96
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb

After these steps, update your fonts cache:
Code:
$ fc-cache -r


Thanks! You are completely right with ~/.Xdefaults.... That's probably where the problem was all along.. I had this in my .Xdefaults:
Code:

Xft.dpi:                    96
Xft.antialias:              false
Xft.rgba:                   rgb
Xft.hinting:                true
Xft.hintstyle:              hintslight


Looking at the file it looks like I took the base .Xdefaults from somewhere and it contained these lines. I wonder why I didn't hit this problem until on the 10th of March. Maybe something changed, I don't know.

The font rendering on my system looks much better again. Thanks!
Back to top
View user's profile Send private message
Kron4ek
n00b
n00b


Joined: 23 Mar 2018
Posts: 10
Location: /dev/city

PostPosted: Fri Mar 23, 2018 5:38 pm    Post subject: Re: [Solved] Font rendering issues since update Reply with quote

Wicla wrote:
The font rendering on my system looks much better again. Thanks!

You're welcome!
Back to top
View user's profile Send private message
DrakeHeyman
n00b
n00b


Joined: 08 Feb 2021
Posts: 1

PostPosted: Mon Feb 08, 2021 2:23 am    Post subject: Reply with quote

I recently had the same problem with this font, thank you all. I have always installed non-standard fonts for myself, both for work and for everyday use, for example, I recently installed overwatch font and was very happy with the quality. Quite often I came across the fact that after major updates in windows, fonts began to display incorrectly. I had to completely reinstall the fonts and it took quite a long time, which really annoyed me. It's good that this has not happened recently after updates. I hope this will not happen in the future.
Back to top
View user's profile Send private message
gauge-symmetrical
n00b
n00b


Joined: 03 Dec 2017
Posts: 25

PostPosted: Sat Apr 03, 2021 12:17 pm    Post subject: Reply with quote

Kron4ek wrote:
Try tro build freetype with cleartype_hinting use flag. Also enable these configs with eselect fontconfig:
Code:
10-hinting-full.conf
70-no-bitmaps.conf

And remove (or better rename, to keep them just in case) any user-specific fonts configuration (such as ~/.config/fontconfig/fonts.conf, ~/fonts.conf etc.) from home directory. Create .Xresources and .Xdefaults files in home dir with such content:
Code:
Xft.dpi: 96
Xft.autohint: 0
Xft.lcdfilter: lcddefault
Xft.hintstyle: hintfull
Xft.hinting: 1
Xft.antialias: 1
Xft.rgba: rgb

After these steps, update your fonts cache:
Code:
$ fc-cache -r

After infinality's been masked by portage, this saved my life.
However, Asian fonts (Japanese/Chinese) still not quite recovered...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum