Re: [Nix-dev] How to downgrade or patch freetype-2.7 ?

2017-06-24 Thread Linus Heckemann
On 24/06/17 01:52, Volth wrote: > There are still at least one place where > "environment.sessionVariables.LD_LIBRARY_PATH = ..." does not replace > freetype with a custom-built version: in cgi-scripts run under > lighttpd service: > > RRD rendered with stock freetype-2.7.1

Re: [Nix-dev] How to downgrade or patch freetype-2.7 ?

2017-06-23 Thread Volth
There are still at least one place where "environment.sessionVariables.LD_LIBRARY_PATH = ..." does not replace freetype with a custom-built version: in cgi-scripts run under lighttpd service: RRD rendered with stock freetype-2.7.1 http://i.imgur.com/HVZ5iPa.png RRD rendered with freetype-2.7.1

Re: [Nix-dev] How to downgrade or patch freetype-2.7 ?

2017-04-20 Thread Volth
On 4/20/17, Thomas Tuegel wrote: > Volth writes: > >> The second (http://imgur.com/MDiydzS) is what we get with these >> fontconfig rules on NixOS-17.09 (freetype-2.7.1) with default v40. >> Antialias is off, but hinting is not in action. > > Did you

Re: [Nix-dev] How to downgrade or patch freetype-2.7 ?

2017-04-20 Thread Thomas Tuegel
Volth writes: > The second (http://imgur.com/MDiydzS) is what we get with these > fontconfig rules on NixOS-17.09 (freetype-2.7.1) with default v40. > Antialias is off, but hinting is not in action. Did you intentionally turn off hinting in that sample, or is it just not

Re: [Nix-dev] How to downgrade or patch freetype-2.7 ?

2017-04-19 Thread Volth
Unfortunately, $FREETYPE_PROPERTIES is censored by sudo and chrome sandbox (and the bug is WONTFIX in both freetype and chrome) On 4/19/17, Vladimír Čunát wrote: > Just my two cents. > > On 04/19/2017 01:25 PM, Volth wrote: >> There is upstream-recommended way to "globally" set

Re: [Nix-dev] How to downgrade or patch freetype-2.7 ?

2017-04-19 Thread Volth
Better to show: http://imgur.com/a/a5XpN The first image (http://imgur.com/zOyxMh7) is with the default NixOS-17.09 (freetype-2.7.1) settings. Approximately the same is on 17.03 with its defaults. Fonts are blurry, width of cells is wrongly calculated. This could be fixed with fonconfig, and I

Re: [Nix-dev] How to downgrade or patch freetype-2.7 ?

2017-04-19 Thread Vladimír Čunát
Just my two cents. On 04/19/2017 01:25 PM, Volth wrote: > There is upstream-recommended way to "globally" set old interpreted > version via environment variable FREETYPE_PROPERTIES, which is not a > solution obviously: many processes do not inherit parent environment > (sudo, browser renderers

Re: [Nix-dev] How to downgrade or patch freetype-2.7 ?

2017-04-19 Thread Volth
Oh, LD_LIBRARY_PATH advice is very helpful. Some minor issues left (including one of how how to concatenate my LD_LIBRARY_PATH and OpenGL's), but it solved the mass-rebuild problem. Now I could patch the library or even use the good old 2.6. Fontconfig does not help here. The problem is with all

Re: [Nix-dev] How to downgrade or patch freetype-2.7 ?

2017-04-19 Thread Thomas Tuegel
Volth writes: > Freetype changed defaults in 2.7, the truetype interpreter became v40 > instead of v35. > The new defaults are incomatible in a weird way with some old fonts > (notably PragmataPro). > But on NixOS this - flipping one bit in libfreetype.so - means either > to

[Nix-dev] How to downgrade or patch freetype-2.7 ?

2017-04-19 Thread Volth
Hi Freetype changed defaults in 2.7, the truetype interpreter became v40 instead of v35. The new defaults are incomatible in a weird way with some old fonts (notably PragmataPro). There is upstream-recommended way to "globally" set old interpreted version via environment variable