| Commit message (Collapse) | Author | Age |
|\ |
|
| | |
|
| |\
| | |
| | |
| | | |
lib-platform-simplify
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
HFS+ (still common on macOS machines) only has a
date resolution of 1 second. This change makes sure that
`fcobjshash.h` gets a newer timestamp than `fcobjshash.gperf`.
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The hack of using `crossConfig` to enforce stricter handling of
dependencies is replaced with a dedicated `strictDeps` for that purpose.
(Experience has shown that my punning was a terrible idea that made more
difficult and embarrising to teach teach.)
Now that is is clear, a few packages now use `strictDeps`, to fix
various bugs:
- bintools-wrapper and cc-wrapper
|
|/
|
|
| |
Use `parsed.cpu.name` or `platform.gcc.arch` instead.
|
|
|
|
|
|
|
|
|
|
| |
A CACHEDIR.TAG file indicates that the contents can be automatically
re-generated. This is not really true for Nix store paths. (Well _Nix_
can recreate them, but that's different.)
I noticed this issue as I was restoring full system backup that "for
some reason" always missed /nix/store/*-fc-cache (found by `nix-store
--verify --repair`). Turns out I was excluding caches from my backup...
|
|
|
|
| |
Only acts on one-line dependency lists.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
Commit 9b049849bfc385604f240157e129f7a8e3530d7f deleted the patch file
(and reference to it from fontconfig default.nix), but left the one in
2.10.nix which break evaluation.
As the package seems to build fine without the patch, just remove the
reference.
cc @ttuegel in case this was not the correct thing to do.
|
|
|
|
|
| |
Backported several patches from upstream. The test suite patch for Fontconfig is
no longer necessary.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
This reverts commit 55cc7700e968001c9ac79190fbcf25ed3620680a.
I hope most problems have been solved. /cc #22874.
|
|
|
|
|
|
|
|
|
| |
This reverts commit 1daf2e26d221712dfbe72f9f6d2f73ef230cc43c, reversing
changes made to c0c50dfcb70d48e5b79c4ae9f1aa9d339af860b4.
It seems this is what has been causing all the reliability problems
on Hydra. I'm currently unable to find why it happens, so I'm forced
to revert the update for now. Discussion: #22874.
|
|
|
|
|
| |
Sometimes it might fail due to timestamps suggesting some files needed
regenerating and failing to find gperf. Now it should be OK, I hope.
|
| |
|
|
|
|
| |
Fixes #19302.
|
|\
| |
| |
| | |
https://github.com/NixOS/nixpkgs/pull/14766
|
| |
| |
| |
| | |
Make either 'bin' or 'out' the first output.
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
This reverts commit 1e53d4a7776acbf61f42c094c103652c8068ad64.
Closes #16983
cc @vcunat @ericsagnes @dezgeg
|
| |
|
| |
|
|\
| |
| |
| | |
Let's get rid of those merge conflicts.
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Fixed all references, hopefully.
libxml2Python is slightly hacky now, but it seems to work.
|
|/
|
|
| |
Fixed all 'fontconfig}' references as well, hopefully, ugh!
|
|
|
|
|
|
|
| |
The problem was uncovered by the last security patches.
Firefox seems to build and work fine.
Includes reverting 374a9cc16271, as this is a proper fix.
|
|
|
|
| |
apparently we get something working regardless of the test problems
|
| |
|
|\
| |
| |
| |
| | |
Conflicts:
pkgs/development/libraries/fontconfig/default.nix
|
| | |
|
|/
|
|
| |
Also the simplify the expression when we rebuild anyway.
|
|
|
|
|
| |
Close #5135.
@vcunat made this conditional to avoid rebuild for now.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This is a proper fix for problems described in ec985c8ffa6d29 .
The code is from @lethalman.
|
|
|
|
|
| |
This reverts e26188938c3142 and 77487fe6615f
CC #3515.
|
|
|
|
| |
They contain fonts on the silly path lib/X11/fonts/
|
|
|
|
| |
Fixes #3515.
|
| |
|
| |
|