pdfcraft/vendor/hayro-interpret/assets
Krzysztof Cieślik bde9dc52fe
honour the /Lab colour space /WhitePoint (#1203) (#1237)
* fix: recognize paragraph drafts as unsaved work (Issue #811)

* fix(color): honour the /Lab colour space /WhitePoint (#1203)

The old path fed every Lab value to the bundled ICC transform as if the
space's white point were D50, so a /Lab space with any other /WhitePoint
(e.g. D65 [0.9505 1 1.089]) rendered off by several levels per channel
and a D65 blue came out 45 levels too red.

Map L*a*b* to XYZ in the space's own white coordinates (ISO 32000-2
§8.6.5.4), Bradford-adapt it to D65 and convert to sRGB directly, as
Poppler does. Missing or degenerate white points fall back to a flat
white and hostile components are clamped without panicking.

Add a render regression that checks the five reported flat patches of
the D65 white-point fixture against their CIE sRGB values.

* Lab: map normalised Indexed palette components onto L*/Range; drop unused LAB.icc

An /Indexed palette over Lab passes its entries as byte/255 (manual_scale),
which the new Lab conversion read as raw L*a*b* and drew near black. Map
them onto L* 0..100 and the a*/b* /Range, with a regression test. Record the
patch as hayro-interpret (25) in vendor/README.md, and remove LAB.icc (no
longer referenced) with its ATTRIBUTION, NOTICE and assets README entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Main gates: rustfmt tests/viewer.rs; a type alias for the refresh-steps array (clippy type_complexity)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 02:08:21 -04:00
..
CGATS001Compat-v2-micro.icc more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
CGATS_LICENSE.txt more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
FoxitDingbats.pfb more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
FoxitFixed.pfb more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
FoxitFixedBold.pfb more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
FoxitFixedBoldItalic.pfb more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
FoxitFixedItalic.pfb more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
FoxitSans.pfb more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
FoxitSansBold.pfb more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
FoxitSansBoldItalic.pfb more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
FoxitSansItalic.pfb more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
FoxitSerif.pfb more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
FoxitSerifBold.pfb more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
FoxitSerifBoldItalic.pfb more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
FoxitSerifItalic.pfb more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
FoxitSymbol.pfb more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
LICENSE_FOXIT more progress, roadmap, wip 2026-09-30 11:00:02 -04:00
README.md honour the /Lab colour space /WhitePoint (#1203) (#1237) 2026-10-12 02:08:21 -04:00

README.md

The CMYK profile is from: https://github.com/saucecontrol/Compact-ICC-Profiles?tab=readme-ov-file#cmyk, available under the CC0-1.0 License

The pfb files in this directory were extracted from Pdfium

Original copyright notice:

Copyright 2014 PDFium Authors. All rights reserved.
 Use of this source code is governed by a BSD-style license that can be
 found in the LICENSE file.

Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com