FS#52502 - [freetype2] Terminus font is not available
Attached to Project:
Arch Linux
Opened by Dmytro Bagrii (dimich) - Wednesday, 11 January 2017, 23:29 GMT
Last edited by Jan Alexander Steffens (heftig) - Wednesday, 21 February 2018, 09:33 GMT
Opened by Dmytro Bagrii (dimich) - Wednesday, 11 January 2017, 23:29 GMT
Last edited by Jan Alexander Steffens (heftig) - Wednesday, 21 February 2018, 09:33 GMT
|
Details
Terminus font is not available.
All applications which use this font become to look ugly: rxvt-unicode, tilda etc. Probably it happens after fontconfig and/or xorg-mkfontdir upgrade, but downgrading them to previous versions doesn't help. Package versions: terminus-font: 4.40-2 fontconfig: 2.12.1-4 xorg-mkfontdir: 1.0.7-5 |
This task depends upon
Closed by Jan Alexander Steffens (heftig)
Wednesday, 21 February 2018, 09:33 GMT
Reason for closing: Not a bug
Wednesday, 21 February 2018, 09:33 GMT
Reason for closing: Not a bug
I see no need to bring back the old unwanted behavior.
I'm even not sure if we should allow users to fall back and configure this at run time using
http://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=08fd250e1af0aa16d18012d39462e6ca9bbc6e90
Applying this single commit didn't make any change enabling/disabling pcf:no-long-family-names=1/0 for me. Maybe more commits are needed.
Next release will fix the issue.
Note to maintainers here: I would take an extra look at freetype2 releases in the future, upstream has made
it clear that their way of looking at version numbers does _not_ include effects for end users (I had a discussion
with Werner from freetype2).
A quote snippet from Werner: "[...] since
FreeType uses libtool, it [the version number] relates to DLL versions and *not* to the
tarball versions."
I personally strongly disagree with their way of versioning as I think it's very wrong and makes it hard for
users/distro maintainers to know when its safe and when its not safe to include a new package version.
<patelt name="family"><string>Terminus</string></patelt>
needs updating to
<patelt name="family"><string>xos4 Terminus</string></patelt>
I reported this upstream, but I guess it's not going to change anytime soon as each distro can now choose whether to enable this 'feature' or not!
I changed it here from
URxvt*font: xft:Fixed:pixelsize=12
to
URxvt*font: xft:Misc Fixed:pixelsize=12
Arch follows upstream - that's our rule. Why not here?
I think that the most pressing issue is that users will need to revert their changes when the next FreeType release disables the long family names again.
We should ask upstream whether the setting will be on by default in some future release. If so, we should keep it on by default until then with a downstream patch. That way users won't have to adapt their configuration thrice.
Sorry I wasn't clear I meant I reported it upstream to the terminus developer (since 75-yes-terminus.conf is part of terminus package) - but since each linux distro can choose whether to enable fontconfigs new naming scheme or not it's unlikely he will change the file, especially now that fontconfig is going to default to the old behaviour as stated above. I agree completely with the philosophy of following upstream!
FS#54866yesterday which has been closed as a duplicate of this issue. (I'm not sure if it can be truly considered a duplicate, as it is a different problem with different symptoms, workarounds, and affecting different code paths, just brought on by the same change. JGC hasn't replied to my question about this.) Anyway, I'll repost it here so it doesn't get lost:-----
Hello,
I noticed that 0004-Enable-long-PCF-family-names.patch is breaking certain programs under certain conditions. Specifically, it becomes impossible to select certain fonts from the Fixed family with the patch applied.
Steps to reproduce:
1. Open Kolourpaint
2. Select the text tool, and add some text to the canvas.
3. Select the "Fixed" font family. Without the patch, it will be listed as "Fixed [Misc]". With the patch, it will be listed as "Misc Fixed".
4. Select size 10.
Expected result:
https://dump.thecybershadow.net/5996b3b2c59570d76944c92297e7fa7e/02%3A58%3A35-upload.png
Actual result:
https://dump.thecybershadow.net/2ae508861ded4f33bc440f3fff935474/03%3A00%3A57-upload.png
Also note that no matter which settings are chosen, it is no longer possible to select the exact font as shown in the "Expected" screenshot.
As such, please consider dropping the patch.
Finally figured out why this doesn't work.
Make sure the environment variable is set at fc-cache execution time. For example:
sudo sh -c 'FREETYPE_PROPERTIES="pcf:no-long-family-names=1" fc-cache -rvf' ; FREETYPE_PROPERTIES="pcf:no-long-family-names=1" fc-cache -rvf