bohoomil / fontconfig-ultimate

freetype2-infinality run-time settings => infinality compatible fontconfig => infinality-bundle
454 stars 38 forks source link

Freetype 2.7.0 is out. Will be there infinality patch ? #171

Open perfect7gentleman opened 8 years ago

perfect7gentleman commented 8 years ago

Or is this the end of infinality?

RJVB commented 7 years ago

I'm jumping into discussion just now and still a bit lost.

Am I correct that @archfan has been keeping a fork up-to-date for Freetype >= 2.7 and that the existing other patches and things from bohoomil's repo still work for building from source? And that much of the ongoing discussion here is about getting things to work on Arch, so not really relevant for other systems? (I maintain a PPA for Ubuntu 14.04 and a set of MacPorts ports.)

CamilleScholtz commented 7 years ago

@RJVB Yup, I also provide Pkgfile's for CRUX, and I'm like 90% sure @archfan makes his own PKGBUILDs for Arch as well.

I don't see how it isn't relevant to other systems, there just aren't any packages for them yet.

RJVB commented 7 years ago

I think what I was trying to ask was something like "can I just grab archfan's" updated Freetype2 patches and use them with my own packaging stuff and Freetype 2.7.1? Or do I have to read through the whole thread because I'm bound to run into trouble if I don't?

Also, who actually maintains the patch set?

CamilleScholtz commented 7 years ago

It used to be @bohoomil, but he has been inactive lately, now @archfan forked it.

There isn't really much of a difference between the two patchsets besides the version. But I still suggest that you read through the old infinality PKGBUILD, and the PKGBUILDs created by @archfan just to see the differences. Since PKGBUILDs are basically build instructions in BASH that shouldn't be too hard.

Also since Ubuntu is a binary distro and has some old libraries you might run into incompatibilities, but I don't know. For example from the looks of this page it seems they are still on 2.6.3: https://launchpad.net/ubuntu/+source/freetype

RJVB commented 7 years ago

OK, so it's archfan's repo I'll have to follow, thanks. I've been doing my own packaging based on bohoomil's instructions for years now, so if the patchset changes only concern adapting to Freetype 2.7 I should be fine.

Freetype is written in C meaning there are no issues with runtimes, and it seems 2.7 ABI is backwards compatible with the 2.6 ABI. I grabbed the stock libfreetype2.so.6.13.0 file from my KaOS partition, put it alongside my Infinality libfreetype2.so.6.12.5 in Ubuntu's /usr/lib/x86_64 directory. Then I symlinked libfreetype2.so.6 to the newer library, and ran a few tests. No issues.

Surprisingly, not even a significantly decreased font quality, maybe an even slightly better quality, somewhat darker/sharper. Maybe I should read the whole thread here, because if indeed the main quality improvement comes from the fontconfig patches and the .conf files that means I might have 1 less package to maintain ... EDIT: forget it, a tricky font like Noverase looks a lot better WITH the Infinality patches.

RJVB commented 7 years ago

I have now built and tested Freetype 2.7.1 with archfan's latest patch, under XQuartz. Without changing anything to my environment I must say I don't see any difference with Freetype+Infinality 2.6.5, regardless of how I set the new FREETYPE_PROPERTIES env. variable. So far so good.

Allow me to ask: is there a package source somewhere that I can add to my KaOS test install? I'd rather keep that one as "stock" as possible.