Commit graph

21553 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 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 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
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 7eb9a85b90 qt5.qtwebengine: fix library paths
Without this it would try to find files in qtbase.
2017-03-09 15:38:10 +03:00
Robin Gloster 32bcda741a
Merge pr/23635, pr/23634 and pr/23633 to fix firefox 2017-03-08 17:51:18 +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
Alexey Shmalko cb670556c5
nss: 3.28.1 -> 3.28.3
This should fix firefox build, which fails due to nss being too old.
2017-03-08 13:27:16 +02:00
Vladimír Čunát b86b7c04a3
Merge branch 'master' into staging 2017-03-07 21:59:32 +01:00
Vladimír Čunát 17b64e8929
mesa: maintenance 17.0.0 -> 17.0.1 2017-03-07 21:48:18 +01:00
Peter Simons e7b68767a8 nlopt: rescue build by dropping support for Octave 2017-03-07 14:56:46 +01:00
Joachim Fasting 9632cc221a
zimlib: 20150710 -> 1.4 2017-03-07 14:06:09 +01:00
Will Dietz 5013998b0e
ustr: Remove unhelpful 'buildTargets' value.
mkDerivation doesn't do anything with this,
and while it does become an environment variable
AFAICT that was never the intention and isn't helpful here.
2017-03-06 19:34:07 -05:00
Franz Pletz d102115101 Merge pull request #23573 from LnL7/darwin-gss
gss: don't build with shishi on darwin
2017-03-07 00:31:04 +01:00
Graham Christensen 5054035c18 Merge pull request #23571 from rycee/remove/javasvn
javasvn: remove
2017-03-06 17:27:53 -05:00
Robert Helgesson a3e6b41d36
javasvn: remove
Upstream URL is invalid and the package has not had direct attention
since June 2006.
2017-03-06 23:07:11 +01:00
Daiderd Jordan a5fcca2004
gss: don't build with shishi on darwin 2017-03-06 22:57:54 +01:00
mimadrid eba71df6bc
sqlite3_analyzer: 3.8.10.1 -> 3.17.0
fixes #23479
2017-03-06 20:53:34 +01:00
Jörg Thalheim b10fb4624b
xapian-ruby: link against correct xapian 2017-03-06 20:24:07 +01:00
AndersonTorres 1205b27b24
wxSVG: init at 1.5.11 2017-03-06 17:36:20 +01:00
Graham Christensen 33b738be44 Merge pull request #23386 from lsix/update_gnupg21
gnupg21: 2.1.18 -> 2.1.19
2017-03-06 09:03:18 -05:00
Benno Fünfstück 128901e09f phonon-backend-gstreamer: don't create $out/$out/share/icons
The build system tries to update the mtime of the icons directory if
`DESTDIR` is unset. That code has bug though that does not deal well
with absolute `CMAKE_SHARE_PREFIX` resulting a double prefix bug.

Setting `DESTDIR=/` (should be a no-op) fixes this.
2017-03-06 13:25:12 +01:00
Renaud f39e718cab
uriparser: 0.8.2 -> 0.8.4
Fixed the Makefile for the doc : there is no .map files to install in
this release since dot outputs images in PNG and SVG

fixes #23456
2017-03-06 08:41:47 +01:00
Thomas Tuegel 2a38551651
qtwebengine: update build system paths for Qt 5.8 2017-03-05 17:05:33 -06:00
Thomas Tuegel 923224ab2e
qtstyleplugins: mark broken with Qt 5.8 2017-03-05 17:05:17 -06:00
Thomas Tuegel 869037812c
qttools: update cmake paths for Qt 5.8 2017-03-05 17:04:53 -06:00
Tomas Hlavaty 079c306c6e openshot-qt: remove myself from the maintainer list 2017-03-05 20:47:24 +01:00
Vladimír Čunát 2fd787ddd1
libuv: disable another flaky test on Darwin
I really want to avoid debugging these on Darwin.
2017-03-05 12:38:20 +01:00
Vladimír Čunát 2839b101f9
Merge commit older staging
No new failures on Hydra.
2017-03-05 08:00:42 +01:00
Michael Raskin 3f817d09b9 Merge pull request #23430 from rnhmjoj/libchop
libchop: fix package
2017-03-04 23:43:55 +00:00
Bjørn Forsman f5d460a7a0
qt5.qtbase: fix host_bins= path in pkg-config file
So that pkg-config can be used to find 'moc' etc. (Currently it points
to a non-existing path.)

Fixes #22945 ('Linux kbuild incompatible with "nix-shell -p qt5.full"').
2017-03-04 15:08:47 -06:00
Thomas Tuegel 8ec7f51167
phonon: 4.9.0 -> 4.9.1
Fix build failure with Qt 5.8.0
2017-03-04 15:08:47 -06:00
Thomas Tuegel cd7d8a60b4
qt58: init at 5.8.0
Qt 5.8 is now the default version.
2017-03-04 15:08:47 -06:00
Thomas Tuegel a368a80c90
libxkbcommon: add ttuegel to maintainers 2017-03-04 15:08:47 -06:00
Thomas Tuegel a909329bed
libxkbcommon: 0.6.1 -> 0.7.1 2017-03-04 15:08:46 -06:00
Thomas Tuegel ff8f2b87e8 Merge pull request #23451 from ttuegel/mesa-drivers
mesa: allow overriding driver compilation
2017-03-04 15:05:30 -06:00