)]}'
{
  "commit": "ce5edf5cc37e004bae0e8aaec9a2d70f970997ba",
  "tree": "2cd6de700c6c713788076fded500de790868bfca",
  "parents": [
    "5b8f48160347885f76f679b39f31aa48bfc4f8bd"
  ],
  "author": {
    "name": "Behdad Esfahbod",
    "email": "behdad@behdad.org",
    "time": "Fri Nov 20 15:59:57 2026 -0600"
  },
  "committer": {
    "name": "Behdad Esfahbod",
    "email": "behdad@behdad.org",
    "time": "Fri Nov 20 15:59:57 2026 -0600"
  },
  "message": "[vector] Clip everything out in PDF when the clip has no outline\n\nA clip to a glyph with no outline, or to a path with no points, lets\nnothing through.  The PDF writer wrote the points it had and then\n`W n`, and with no points that is a `W` with no path, which leaves\nthe clip as it was.  What was painted under it then covered the page:\na COLR glyph one of whose layers has an empty glyph came out with\nthat layer\u0027s gradient all over it.  The SVG writer and hb-raster clip\neverything out.\n\nWrite a rectangle of no area as the path when there are no points.\nThe same holds for a glyph whose outline was not extracted because\nthe work budget was spent.\n\nTesting: U+0306 in the COLRv1 font ba51123c...ttf under\ntest/shape/data/in-house has three layers, and the glyph of the first\nhas no contours.  Its PDF differed from hb-raster on 94% of the\npixels in pdfium, poppler (Splash and cairo) and Ghostscript; MuPDF\ndrew it as hb-raster does.  Now all five do.  Of the mapped glyphs\nof the COLR test fonts, it is the only one whose output changes.\nIt is added as an expected output, and a new test checks the path\nwritten for a clip path with no points and for one with three.  The\ntest and the vector fuzzer are clean under ASan and UBSan, and the\ntest under MSan.  Full test suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "22675f8a34f3127b1e4365d1803721b6369eb690",
      "old_mode": 33188,
      "old_path": "src/hb-vector-paint-pdf.cc",
      "new_id": "7334ae79bf596df44b671bf3cdc9d43003e77295",
      "new_mode": 33188,
      "new_path": "src/hb-vector-paint-pdf.cc"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "5cf4ae016d902b82f3e2d5e07cbd5b18f0172eca",
      "new_mode": 33188,
      "new_path": "test/vector/data/expected/basic/colrv1-empty-layer.pdf"
    },
    {
      "type": "modify",
      "old_id": "376910f0ab9e3750df9f61c2e4925d0cb680c64f",
      "old_mode": 33188,
      "old_path": "test/vector/data/tests/basic.tests",
      "new_id": "e20c33c73fe3c1969a5dc42452d6269396898de6",
      "new_mode": 33188,
      "new_path": "test/vector/data/tests/basic.tests"
    },
    {
      "type": "modify",
      "old_id": "8d9a9dd1c54168389dae2a815479849b2253d062",
      "old_mode": 33188,
      "old_path": "test/vector/meson.build",
      "new_id": "e54624873378b30c01f0ac0747d4c31c789b1df1",
      "new_mode": 33188,
      "new_path": "test/vector/meson.build"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "6e5ba8624c7c5add56794b95ae9a25d123bc8c43",
      "new_mode": 33188,
      "new_path": "test/vector/test-vector-pdf-clip.c"
    }
  ]
}
