After upgrading a few packages, font on firefox looks much worse.
Possible packages that caused it:
Upgrading font-alias (1.0.1-r1 -> 1.0.3-r0)
Upgrading mkfontscale (1.0.7-r2 -> 1.1.2-r0)
Upgrading mkfontdir (1.0.5-r1 -> 1.0.7-r0)
Upgrading ttf-dejavu (2.35-r0 -> 2.37-r0)
I think it maybe has to do with this -
But could also be something else…
#2 Updated by anta almost 2 years ago
I figured this has nothing to do with ttf-dejavu.
Even with dejavu uninstalled and using other fonts this issue remains.
Here are the most likely commits that caused this problem.
Can anyone reproduce?
#3 Updated by anta almost 2 years ago
I did more investigation and discovered the packages that are problematic.
Interaction of freetype AND font-alias.
If you're on edge and downgrade freetype OR font-alias, you solve the issue.
In the same way, if you are on 3.6.2 and upgrade freetype AND font-alias to edge, you get this font issue.
#4 Updated by anta almost 2 years ago
I think I found the issue!
Clandmeter added the patches but didn't bump pkgrel so freetype didn't get rebuilt.
Someone please bump pkgrel!
#5 Updated by anta almost 2 years ago
Another possible issue!
configure: WARNING: unrecognized options: --with-font-rootdir
That was changed by ncopa on latest font-alias update.
The correct option is --with-fontrootdir.
#8 Updated by anta almost 2 years ago
#9 Updated by anta almost 2 years ago
I found the problem.
fc-list gives different results in 3.6 and edge!
The font names changed but Alpine didn't update to that.
That's because freetype 2.7.1 had a PCF change to show more `colourful' family names and that behavior was disabled on freetype 2.8
How do we fix this?
#10 Updated by anta almost 2 years ago
In freetype 2.7.1 it was Adobe Utopia but in freetype 2.8 it is Utopia
In freetype 2.7.1 it was Adobe Courier but in freetype 2.8 it is Courier
In freetype 2.7.1 it was Adobe Helvetica but in freetype 2.8 it is Helvetica
In freetype 2.7.1 it was Misc Fixed but in freetype 2.8 it is Fixed
In freetype 2.7.1 it was xos4 Terminus but in freetype 2.8 it is Terminus
And many more.
PCF_CONFIG_OPTION_LONG_FAMILY_NAMES was enabled for the first time on freetype 2.7.1.
But they later thought it was too radical and disabled on 2.8.
Alpine must enable PCF_CONFIG_OPTION_LONG_FAMILY_NAMES at compile time or fix the current system to recognize short font names.
#11 Updated by Carlo Landmeter almost 2 years ago
can you check if https://git.alpinelinux.org/cgit/aports/commit/?id=979d076e works?
#12 Updated by anta almost 2 years ago
Upgrading to freetype 2.8-1 (with 0004-Enable-long-PCF-family-names.patch) didn't work.
fc-list keeps showing short names.
But then I did apk fix font-alias and now it's fixed!
I don't know if it's because of font-alias itself or because font-alias triggered some stuff...
(1/1) Reinstalling font-alias (1.0.3-r1)
This should be automated so when people upgrade they get it fixed.
Thanks for the fast commit.