Commit Graph

35637 Commits

Author SHA1 Message Date
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
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
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
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
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
rnhmjoj
4c33ea35b7 libpcap: fix missing remote-ext.h error 2017-03-09 22:08:33 +02: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
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
3589e08ac5 mpir: 2.7.2 -> 3.0.0 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
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
Linus Heckemann
1fa6ecb48d nltk: init at 3.2.2 2017-03-09 12:46:34 +00:00
Dan Peebles
15a1743d87 libuv: disable tests (temporarily) on Darwin
They're flaky, break Hydra builds regularly, and lots of stuff depends
transitively on libuv.
2017-03-09 07:45:50 -05:00
Nikolay Amiantov
a0f3590c5b pyqt4: 4.11.3 -> 4.12 2017-03-09 15:38:10 +03:00
Nikolay Amiantov
7eb9a85b90 qt5.qtwebengine: fix library paths
Without this it would try to find files in qtbase.
2017-03-09 15:38:10 +03:00
Nikolay Amiantov
6631000bd3 pythonPackages.pyqt5: 5.8 -> 5.8.1 2017-03-09 15:38:10 +03:00
Nick Hu
e7a432db1e python-PyQt: 5.6 -> 5.8 2017-03-09 15:38:10 +03:00
Nick Hu
0a3b7f994e python-sip: 4.18.1 -> 4.19.1 2017-03-09 15:38:10 +03:00
Jörg Thalheim
9ce5fb002a Merge pull request #23649 from teh/pyrax
pyrax: 1.8.2 -> 1.9.8
2017-03-09 11:06:21 +01:00
Jörg Thalheim
d639498ed9
pythonPackges.pyrax: enable tests 2017-03-09 11:01:58 +01:00
Tom Hunger
a9aeb1039a pyrax: 1.8.2 -> 1.9.8 2017-03-09 09:22:46 +00:00
Tom Hunger
f2480bdb0a rackspace-novaclient: init at 2.1
Note that I package a number of dependencies that make no sense
outside of rackspace-novaclient. I don't want to pollute the main
namespace with those packages.
2017-03-09 09:22:45 +00:00
Jörg Thalheim
d75cec39d0 Merge pull request #23644 from dtzWill/update/llvm-rc4-and-tests
llvm4: rc3 -> rc4, enable tests
2017-03-09 07:53:29 +01:00
Jörg Thalheim
f3850a0a37 Merge pull request #23613 from henrytill/racket-add-libedit
racket: add readline support
2017-03-09 07:49:57 +01:00
Dan Peebles
7c3699b0f6 fsharp: enable on Darwin
Seems to work just fine based on my simple tests
2017-03-08 23:39:56 -05:00
Tuomas Tynkkynen
1508945755 treewide: Fix eval-release.nix for aarch64 2017-03-09 03:38:04 +02:00
Renaud
80dbc4df36 sqlitebrowser: 3.8.0 -> 3.9.1
Now uses Qt5
The file CMakeLists.txt needs patching - known issue upstream
2017-03-09 00:58:00 +01:00
Daniel Peebles
9dc3c904de Merge pull request #23646 from copumpkin/buildbot-cleanup-take-2
buildbot: fix .withPlugins to propagate inputs
2017-03-08 13:19:45 -05:00
Tuomas Tynkkynen
a3a21a7245 delve: Disable on i686 2017-03-08 20:10:06 +02:00
Dan Peebles
ca5a1d927f buildbot: fix .withPlugins to propagate inputs
Before I was just grabbing the immediate dependencies. I _think_ this
will do the right thing by using the pre-existing setup hook to avoid
having to compute the transitive closure myself.
2017-03-08 12:39:44 -05:00
Robin Gloster
32bcda741a
Merge pr/23635, pr/23634 and pr/23633 to fix firefox 2017-03-08 17:51:18 +01:00
Daniel Peebles
a53d5cfaba Merge pull request #23642 from copumpkin/buildbot-cleanup
buildbot: assorted cleanups
2017-03-08 11:29:22 -05:00
Dan Peebles
49b20e5569 buildbot: assorted cleanups
Some changes to be more idiomatic and use stdenv building blocks more.
I also added a `buildbot.withPlugins` instead of the current plugins
mechanism, which forces an unnecessary rebuild of the package and reruns
all the tests. This should be equivalent and more pleasant to use in
practice.
2017-03-08 11:28:44 -05:00
Rickard Nilsson
fb5369dbe9 haskellPackages.streaming-eversion: dontCheck 2017-03-08 17:18:18 +01:00
Will Dietz
8d10f1dc5b llvm4: rc3 -> rc4 2017-03-08 09:57:41 -06:00
Will Dietz
3bc5a68a63 llvm4: enable tests 2017-03-08 09:50:04 -06:00
Michael Alan Dorman
763e21e982 haskell-gi-base: propagate gobjectIntrospection dependency
So the thinking is: anything that needs `haskell-gi-base` is going to
need `gobjectIntrospection` in order to work correctly; by adding this
one `buildDepends` (which therefore gets propagated), we put ourselves
in a position to simplify away a bunch of code in `cabal2nix`.
2017-03-08 15:17:39 +01:00
Michael Alan Dorman
d7496b560e gi-webkit2: fix gi-javascriptcore dependency
This actually depends on the specially-versioned gi-javascriptcore
package.
2017-03-08 15:17:39 +01:00
Peter Simons
c71d1e72b2 LTS Haskell 8.4 2017-03-08 15:17:39 +01:00
Peter Simons
9d9cc7ba5f hackage-packages.nix: automatic Haskell package set update
This update was generated by hackage2nix v2.1-2-g3de0b84 from Hackage revision
e5e1058cde.
2017-03-08 15:17:39 +01:00
Tuomas Tynkkynen
c8402dde15 libp11: Fetch src from GitHub 2017-03-08 15:31:34 +02:00
Alexey Shmalko
28598c01e7
icu: 57.1 -> 58.2
Firefox requires new version of the icu to build:
```
checking for icu-i18n >= 58.1... Requested 'icu-i18n >= 58.1' but version of icu-i18n is 57.1
configure: error: Library requirements (icu-i18n >= 58.1) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
```
2017-03-08 14:01:39 +02:00
Alexey Shmalko
d4bb1c786f
sqlite: 3.16.2 -> 3.17.0
Firefox requires the latest sqlite to build:
```
checking for sqlite3 >= 3.17.0... Requested 'sqlite3 >= 3.17.0' but version of SQLite is 3.16.2
configure: error: Library requirements (sqlite3 >= 3.17.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.
```
2017-03-08 13:39:40 +02:00