Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 649296 - =media-libs/fontconfig-2.12.4 or =media-libs/fontconfig-2.12.6 - broken bitmap font rendering
Summary: =media-libs/fontconfig-2.12.4 or =media-libs/fontconfig-2.12.6 - broken bitma...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Fonts Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-01 23:28 UTC by Luke-Jr
Modified: 2021-04-11 20:04 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Luke-Jr 2018-03-01 23:28:50 UTC
I prefer a bitmap font for my fixed-width text. For some reason, fontconfig 2.12.4 and 2.12.6 break this. :/
Comment 1 Andreas Proteus 2018-03-08 14:38:25 UTC
Same problem with fontconfig-2.13.0
Comment 2 Luke-Jr 2018-03-15 17:21:24 UTC
polynomial-c@gentoo.org, could you please un-remove the last working version (2.11.1-r2)? Thanks...
Comment 3 Joonas Niilola gentoo-dev 2018-03-15 18:11:57 UTC
(In reply to Luke-Jr from comment #2)
> polynomial-c@gentoo.org, could you please un-remove the last working version
> (2.11.1-r2)? Thanks...

https://gitweb.gentoo.org/repo/gentoo.git/commit/media-libs/fontconfig?id=01d8b1b08bcc63d3cfe209ab11b2942f8a32dd1f

You can still put them in your local overlay and hope SRC_URI is accessible.
Comment 4 Kalin KOZHUHAROV 2018-03-20 12:31:12 UTC
I have been fighting (again, the usual) de-uglification war for a few days on my desktop, after most PDFs started rendering really badly... Today I dug a slightly out-of-date laptop and everything was fine there (same PDFs). Lots of diffing and I came to the conclusion that fontconfig is to blame.

Reverting to fontconfig-2.11.1-r2 (and some fixups) fixed the problem.
`rsync -HavP --delete that-laptop:/etc/fonts/ /etc/fonts` also fixes it.

So I guess the issue is with the default configuration.

I am not sure which is better, but given that I haven't played much with the files in /etc/fonts (i.e. they are in a default state), I decided to stay with the older fontconfig (haven't tried the keyworded 2.13 versions yet).

I updated the fontconfig package on the laptop and put the desktop configuration (rsynced all /etc/fonts), so both laptop and desktop work and I have the two variants running.

I my attempts to debug, I tried to use FC_DEBUG ( https://www.freedesktop.org/software/fontconfig/fontconfig-user.html#DEBUG436315 ), but it was too much info and also the following script to test various combinations:

(export LC_ALL=C; for F in "serif   " sans-serif monospace "fantasy  " "cursive  "; do echo -ne "$F\t-> "; fc-match $F; done); qpdfview /tmp/broken.pdf

If someone decides to go the old fontconfig way, have a look at my pkalin overlay, but note that media-libs/fontconfig-2.11.1-r2.ebuild doesn't compile for me (due to sys-devel/automake-1.15.1-r2 ??).
And read the commit comments: https://github.com/thinrope/pkalin/commit/6925858549847881276a910a393d6b8fc37c518f
Comment 5 Luke-Jr 2021-04-11 20:04:58 UTC
I no longer recall what the problem was, and my system seems to be using 2.13.1-r2 without any issues.

Closing this assuming FIXED, and dropping 2.11.1-r2 from my overlay. I can reopen if others still have an issue.