TW fontconfig 2.18 switch of default fonts to liberation-xyz [work-around]
David C Rankin <[email protected]>
| Newsgroups | gmane.linux.suse.general |
|---|---|
| Message-ID | <[email protected]> |
All,
If you are using TW or Slowroll and dup to the latest version that
pulls in fontconfig 2.18 (and libfontconfig1-2.18), you will likely
notice a change to your desktop fonts (in my case it wasn't for the better)
The fontconfig setup changed to ignore any MS fonts and instead
substitute the Liberation-{sans,sans-serif,mono} for what had been
configured. (I don't know the details of the "strong" preference switch
or what file does what)
Thanks to Joe Salmeri (and Michael Pujos) on the factory list, Joe
provided a workaround that restores the pre 2.18 behavior. Simply remove
the symlink to: /etc/fonts/conf.d/48-guessfamily.conf The effect is
immediate and no need to rebuild fc-cache.
You can even to a pre and post test with, e.g.
$ fc-match sans-serif
(or fc-match -v sans-serif for the gory details)
Example (before removing symlink):
$ fc-match serif
LiberationSerif-Regular.ttf: "Liberation Serif" "Regular"
(after removing 48-guessfamily.conf)
$ fc-match serif
times.ttf: "Times New Roman" "Regular"
I don't know why the change to font-selection in font-config was
made, but it is a prime, glowing example of "If it ain't broke DON'T FIX
IT!"
Thanks again to Joe!
cc: Joe
--
David C. Rankin, J.D.,P.E.