3
0
Fork 0
forked from mirrors/nixpkgs
Commit graph

103087 commits

Author SHA1 Message Date
Thomas Tuegel d458b5401a
nixos/fontconfig: add Changelog message about FreeType update 2017-03-20 10:39:48 -05:00
Thomas Tuegel a6fce585e4
nixos/fontconfig: set rendering defaults, not overrides 2017-03-17 13:50:10 -05:00
Thomas Tuegel 354ea69ae4
fontconfig-penultimate: init at 0.2
Also provides a NixOS module.
2017-03-17 13:50:05 -05:00
Thomas Tuegel 65592837b6
freetype: 2.6.5 -> 2.7.1
The Infinality bytecode interpreter is removed in favor of the new v40 TrueType
interpreter. In the past, the Infinality interpreter provided support for
ClearType-style hinting instructions while the default interpreter (then v35)
provided support only for original TrueType-style instructions. The v40
interpreter corrects this deficiency, so the Infinality interpreter is no longer
necessary.

To understand why the Infinality interpreter is no longer necessary, we should
understand how ClearType differs from TrueType and how the v40 interpreter
works. The following is a summary of information available on the FreeType
website [1] mixed with my own editorializing.

TrueType instructions use horizontal and vertical hints to improve glyph
rendering. Before TrueType, fonts were only vertically hinted; horizontal hints
improved rendering by snapping stems to pixel boundaries. Horizontal hinting is
a risk because it can significantly distort glyph shapes and kerning. Extensive
testing at different resolutions is needed to perfect the TrueType
hints. Microsoft invested significant effort to do this with its "Core fonts for
the Web" project, but few other typefaces have seen this level of attention.

With the advent of subpixel rendering, the effective horizontal resolution of
most displays increased significantly. ClearType eschews horizontal hinting in
favor of horizontal supersampling. Most fonts are designed for the Microsoft
bytecode interpreter, which implements a compatibility mode with
TrueType-style (horizontal and vertical) instructions. However, applying the
full horizontal hints to subpixel-rendered fonts leads to color fringes and
inconsistent stem widths. The Infinality interpreter implements several
techniques to mitigate these problems, going so far as to embed font- and
glyph-specific hacks in the interpreter. On the other hand, the v40 interpreter
ignores the horizontal hinting instructions so that glyphs render as they are
intended to on the Microsoft interpreter. Without the horizontal hints, the
problems of glyph and kerning distortion, color fringes, and inconsistent stem
widths--the problems the Infinality interpreter was created to solve--simply
don't occur in the first place.

There are also security concerns which motivate removing the Infinality patches.
Although there is an updated version of the Infinality interpreter for FreeType
2.7, the lack of a consistent upstream maintainer is a security concern. The
interpreter is a Turing-complete virtual machine which has had security
vulnerabilities in the past. While the default interpreter is used in billions
of devices and is maintained by an active developer, the Infinality interpreter
is neither scrutinized nor maintained. We will probably never know if there are
defects in the Infinality interpreter, and if they were discovered they would
likely never be fixed. I do not think that is an acceptable situtation for a
core library like FreeType.

Dropping the Infinality patches means that font rendering will be less
customizable. I think this is an acceptable trade-off. The Infinality
interpreter made many compromises to mitigate the problems with horizontal
hinting; the main purpose of customization is to tailor these compromises to the
user's preferences. The new interpreter does not have to make these compromises
because it renders fonts as their designers intended, so this level of
customization is not necessary.

The Infinality-associated patches are also removed from cairo. These patches
only set the default rendering options in case they aren't set though
Fontconfig. On NixOS, the rendering options are always set in Fontconfig, so
these patches never actually did anything for us!

The Fontconfig test suite is patched to account for a quirk in the way PCF fonts
are named.

The fontconfig option `hintstyle` is no longer configurable in NixOS. This
option selects the TrueType interpreter; the v40 interpreter is `hintslight` and
the older v35 interpreter is `hintmedium` or `hintfull` (which have actually
always been the same thing). The setting may still be changed through the
`localConf` option or by creating a user Fontconfig file.

Users with HiDPI displays should probably disable hinting and antialiasing: at
best they have no visible effect.

The fontconfig-ultimate settings are still available in NixOS, but they are no
longer the default. They still work, but their main purpose is to set rendering
quirks which are no longer necessary and may actually be
detrimental (e.g. setting `hintfull` for some fonts). Also, the vast array of
font substitutions provided is not an appropriate default; the default setting
should be to give the user the font they asked for.

[1]. https://www.freetype.org/freetype2/docs/subpixel-hinting.html
2017-03-12 17:31:33 -05:00
Vladimír Čunát 45115b1937
Merge: cups improvements (update, split $lib)
Fixes #23793.  /cc maintainer @jgeerds.
2017-03-12 18:46:22 +01:00
Vladimír Čunát 50fadc8b18
cups: split the $lib output
This saves > 10 MB from most closures.
Printing test succeeds on x86_64-linux.
2017-03-12 18:36:30 +01:00
Vladimír Čunát 2e4c5711a2
cups: minor expression refactoring 2017-03-12 16:43:26 +01:00
Vladimír Čunát b8685ddf68
cups: 2.1.4 -> 2.2.2
The changelog seems safe, test succeeds on x86_64-linux.
2017-03-12 16:43:02 +01:00
Thomas Tuegel e24261ed16
qtbase: fix sed syntax in .pc file fixup 2017-03-11 16:25:48 -06:00
Franz Pletz bf6c90ed67
libarchive: 3.2.2 -> 3.3.1 2017-03-11 10:25:34 +01:00
Shea Levy fb4c43dd8a curl: Use CA bundle in nix default profile by default 2017-03-10 14:56:22 -05:00
Thomas Tuegel 66bc2135f6
qtbase: don't patch non-existent .pc files on Darwin 2017-03-10 09:23:05 -06:00
Vladimír Čunát 1b73890f5b
Merge #23675: coreutils: 8.26 -> 8.27 2017-03-09 23:25:02 +01:00
Vladimír Čunát e279358565
Merge #23591: binutils: 2.27 -> 2.28 2017-03-09 23:24:30 +01:00
Vladimír Čunát ed4a79c65e
Merge branch 'master' into staging
... to fix an evaluation problem in dogecoin.
2017-03-09 23:14:19 +01:00
Vladimír Čunát 6211765676
qtstyleplugins: fix eval of meta 2017-03-09 23:09:32 +01:00
ndowens d94acf8519 coreutils: 8.26 -> 8.27 2017-03-09 14:42:26 -06:00
Vladimír Čunát 74f92e9556
knot-resolver: maintenance 1.2.3 -> 1.2.4 2017-03-09 21:25:45 +01:00
Dan Peebles 0b0b3b8021 pythonPackages.webcolors: enable on Darwin and other unixes
Seemed to work fine on Darwin
2017-03-09 15:12:33 -05:00
Dan Peebles a4f8b67783 pythonPackages.funcparserlib: enable on Darwin and other unixes
Seemed to work fine on Darwin
2017-03-09 15:12:32 -05:00
Dan Peebles cdfa92184d pythonPackages.blockdiag: enable on Darwin and other unixes
Seemed to work fine on Darwin
2017-03-09 15:12:32 -05:00
rnhmjoj 1665102688 ostinato: refactor 2017-03-09 22:08:33 +02:00
rnhmjoj 4c33ea35b7 libpcap: fix missing remote-ext.h error 2017-03-09 22:08:33 +02:00
Michael Raskin 665a89c4a4 Merge pull request #23671 from Mic92/gajim
gajim: 0.16.6 -> 0.16.7
2017-03-09 18:33:19 +00:00
Michael Raskin 6fad14b66e libreoffice-still: 5.2.5.1 -> 5.2.6.2 2017-03-09 18:59:31 +01:00
Michael Raskin 308f13ce60 libre: 0.5.0 -> 0.5.1 2017-03-09 18:59:31 +01:00
Michael Raskin eaf8cf2f75 harfbuzz: 1.4.2 -> 1.4.4 2017-03-09 18:59:31 +01:00
Michael Raskin 6de1b73db1 eigen: 3.2.5 -> 3.2.10 2017-03-09 18:59:30 +01:00
Jörg Thalheim d90e6c7ee6
gajim: 0.16.6 -> 0.16.7 2017-03-09 18:51:20 +01:00
Michael Raskin ccebeca500 libreoffice-still: use icu_57 2017-03-09 18:47:38 +01:00
Michael Raskin b5485da2cd icu_57: init at 57.1 for LibreOffice Still 2017-03-09 18:47:38 +01:00
Michael Raskin 8a91ac56b4 eigen3_3: 3.3.1 -> 3.3.3 2017-03-09 18:47:38 +01:00
Michael Raskin bf514e4412 sbcl: 1.3.14 -> 1.3.15 2017-03-09 18:47:38 +01:00
Michael Raskin 1fc3486154 glusterfs: 3.9.1 -> 3.10.0 2017-03-09 18:47:38 +01:00
Michael Raskin 30b9da628a fuseki: 2.4.1 -> 2.5.0 2017-03-09 18:47:37 +01:00
Michael Raskin c798e3f94a apache-jena: 3.1.1 -> 3.2.0 2017-03-09 18:47:37 +01:00
Michael Raskin 4d44ed9d90 ipmiutil: 3.0.1 -> 3.0.2 2017-03-09 18:47:37 +01:00
Michael Raskin 3589e08ac5 mpir: 2.7.2 -> 3.0.0 2017-03-09 18:47:37 +01:00
Michael Raskin a7945a8cab sgt-puzzles: 20161228.7cae89f -> 20170228.1f613ba 2017-03-09 18:47:37 +01:00
Michael Raskin 1c8c795a20 asymptote: 2.39 -> 2.40 2017-03-09 18:47:37 +01:00
Michael Raskin 5daf9c3e76 baresip: 0.5.0 -> 0.5.1 2017-03-09 18:47:37 +01:00
Michael Raskin 1a665f4850 mc: 4.8.18 -> 4.8.19 2017-03-09 18:47:37 +01:00
Michael Raskin 6962e84b8d botan2: init at 2.0.1 2017-03-09 18:47:37 +01:00
Dan Peebles c3939cbcf5 buildbot modules: don't put BB users in nixbld group
The nixbld group belongs to nix-daemon and you really don't want to be
in it. If you are in it, nix-daemon will kill your processes when you
least expect it :)
2017-03-09 11:46:26 -05:00
Frederik Rietdijk 583c50ddce Merge pull request #23666 from lsix/update_qgis
qgis: 2.18.3 -> 2.18.4
2017-03-09 16:49:17 +01:00
Arseniy Seroka de80db01cb Merge pull request #23668 from pngwjpgh/das_watchdog
das_watchdog: fix service type
2017-03-09 18:22:48 +03:00
Gregor Kleen 899fd868ea das_watchdog: fix service type 2017-03-09 16:14:17 +01:00
Jörg Thalheim 4d13b5d201 Merge pull request #23631 from edef1c/verilator-shebang
verilator: fix Perl shebangs
2017-03-09 15:05:40 +01:00
Jörg Thalheim 3c170e505c Merge pull request #23659 from lheckemann/nltk
nltk: init at 3.2.2
2017-03-09 14:51:09 +01:00
Orivej Desh 838051e9cd nixos/iso-image: support boot from USB disks 2017-03-09 15:35:30 +02:00