typst/tests/typ
frozolotl b0e81d4b3f
Remove restrictions to chroma and improve clamping (#2690)
This PR does a few small things:
- Oklab's a*/b* and Oklch's chroma components can be as large as desired.
- In PDF, when encoding Oklab, the range is widened from [-0.4,0.4] to [-0.5,0.5].
- In PDF, clamping is now performed on Oklch's chroma instead of a* and b*.
  This causes hue not to be distorted when clamping.

SVG and PNG export remain unchanged:
- SVG itself never had any restrictions on chroma.
  We directly use the `oklab` and `oklch` CSS colors, which should work fine for the most part.
  In the future, embedded ICC profiles might be nice. Further research is likely necessary.
- While PNG does not support color spaces like Oklab or Oklch, certain useful features exist.
  One can define gamma (gAMA) and chromacities&whitepoint (cHRM) chunks and even embed ICC profiles.
  While `image` crate does not support these features for encoding, its backend crate `png` does support gAMA and cHRM.
  It does not allow embedding ICC profiles yet, though.

As it stands, to fully support wide gamuts and more accurate colors, more work is necessary.
This PR should help a bit though.
2023-11-17 10:41:45 +01:00
..
bugs Allow `elem` synthesized fields to take a default value (#2687) 2023-11-17 10:39:08 +01:00
compiler Remove restrictions to chroma and improve clamping (#2690) 2023-11-17 10:41:45 +01:00
compute Implement Oklch support (#2611) 2023-11-10 10:31:06 +01:00
layout Change rectangle clip to use the inside of the stroke, not the middle. (#2626) 2023-11-08 15:30:00 +01:00
lint Show warning to user if they use double/empty underscores (italic) (#1871) 2023-08-07 13:47:29 +02:00
math Allow non-string contents for math operators (#2663) 2023-11-13 12:26:58 +01:00
meta Translate local names to Greek (#2684) 2023-11-14 15:59:30 +01:00
text Lexer change: Allow emphasis in CJK text without spaces (#2648) 2023-11-15 15:01:15 +01:00
visualize Gradient Part 5c: Fix gradient rotation on text & math (#2606) 2023-11-08 15:51:25 +01:00
coma.typ Reintroduce `--root` 2023-06-28 10:36:53 +02:00
empty.typ Reorganize tests 🔀 2021-02-20 23:34:33 +01:00