)]}'
{
  "commit": "abca8cb1a4f14912bed26fe619014582214803de",
  "tree": "edc92cd426989f6ed1a7b72a1a5491ad01cd17a7",
  "parents": [
    "f4d31875f0da83e3c9d0a4aa8d777079e45bb8e1"
  ],
  "author": {
    "name": "Behdad Esfahbod",
    "email": "behdad@behdad.org",
    "time": "Fri Nov 20 14:32:35 2026 -0600"
  },
  "committer": {
    "name": "Behdad Esfahbod",
    "email": "behdad@behdad.org",
    "time": "Fri Nov 20 14:32:35 2026 -0600"
  },
  "message": "[vector] Size SVG sweep gradients to what they paint\n\nAn SVG sweep gradient is a fan of flat wedges, and every wedge\nreached 32767 units from the center, as PDF sweeps did before #6836.\nhb-vector scales those units up, by 64 in the hb-vector tool, and the\nviewer scales them again by its zoom.  Renderers built on cairo drop\na shape once its coordinates get that large in pixels: the wedges\nwere drawn when they reached 105,000 pixels and were not at 210,000.\nWith the tool\u0027s scale that is from somewhere between 60 and 100\npixels per em, and above it librsvg and Inkscape drew sweeps with\nwedges missing.  Chrome and Firefox drew them whole.\n\nGive the wedges the radius that PDF meshes get: what reaches the\ncorners of what the clips let through.  The stack of transforms and\nclip bounds that #6836 kept for that in the PDF writer moves into the\nrecords that both writers keep of their open transforms and clips,\nso there is one stack again, popped where a scope is closed.  A\nsweep that no clip bounds keeps the old radius.\n\nTesting: of the 96 sweep_* glyphs of test_glyphs-glyf_colr_1.ttf at\n200 pixels per em, librsvg differed from hb-raster on 80 and Chrome\non 37; now librsvg differs on the same 37 as Chrome, which draws\nthem as it did.  On the first twelve, at 60, 100, 200 and 600\npixels per em, librsvg and Inkscape now differ from hb-raster on\nexactly as many as Chrome does: 2, 1, 3 and 10, where at 100 they\nwere 12 and 10 to Chrome\u0027s 1.  PDF output is byte for byte what it\nwas, for every glyph of the COLR test fonts, and in SVG only sweeps\nchanged.\n\nThe same paint calls replayed on hb-raster and hb-vector for 300\nrandom scenes with sweeps painted under rotations, skews, clips and\ngroups agree in Chrome and in librsvg.  The sweep test now checks\nthe SVG wedges as it does the PDF mesh, and fails without the change.\nThe vector tests and fuzzer are clean under ASan and UBSan, the\ntests under MSan, and the fuzzer with failing allocations.  Full\ntest suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9c4f4fb8601fa75523e940b2a72753eea78a88de",
      "old_mode": 33188,
      "old_path": "src/hb-vector-paint-pdf.cc",
      "new_id": "82085bccd872a190ece85666d336968703f5d67e",
      "new_mode": 33188,
      "new_path": "src/hb-vector-paint-pdf.cc"
    },
    {
      "type": "modify",
      "old_id": "27ecfe187765cbc26916ab1c856b98dc7981d232",
      "old_mode": 33188,
      "old_path": "src/hb-vector-paint-svg.cc",
      "new_id": "3b23e0c5684eacec2ad785bdbac826fa0b66b4bb",
      "new_mode": 33188,
      "new_path": "src/hb-vector-paint-svg.cc"
    },
    {
      "type": "modify",
      "old_id": "0d042e9c0b9414f4e0fcff81446e3df1c3091898",
      "old_mode": 33188,
      "old_path": "src/hb-vector-paint.hh",
      "new_id": "6245df75c7ca69cad724b905a73772ebaef7f66d",
      "new_mode": 33188,
      "new_path": "src/hb-vector-paint.hh"
    },
    {
      "type": "modify",
      "old_id": "3b3c69ab07194efe8920bb9db72f0ddaa10353ec",
      "old_mode": 33188,
      "old_path": "src/hb-vector-path.cc",
      "new_id": "24ba7d88938827b5217a94a1a56d27497584283e",
      "new_mode": 33188,
      "new_path": "src/hb-vector-path.cc"
    },
    {
      "type": "modify",
      "old_id": "fe3d71daec10b2c6847d4845b048b84520c74947",
      "old_mode": 33188,
      "old_path": "src/hb-vector-path.hh",
      "new_id": "a00c6d36faf20275a145562bb305506779e85913",
      "new_mode": 33188,
      "new_path": "src/hb-vector-path.hh"
    },
    {
      "type": "modify",
      "old_id": "6ab49c4b6ee1dfc95743dbeb3d41905b66b29379",
      "old_mode": 33188,
      "old_path": "test/vector/test-vector-sweep.c",
      "new_id": "324bea3da144a66a14dad921f8f153354e083c4a",
      "new_mode": 33188,
      "new_path": "test/vector/test-vector-sweep.c"
    }
  ]
}
