)]}'
{
  "commit": "0a46a421f5dd226b59c2e6da1349b47a092f94ff",
  "tree": "aa5f0612e41138ccd7145f516966a26f95451a33",
  "parents": [
    "ee4821dc13ba1d7f03c3c2aa6937e331ee56b0b1"
  ],
  "author": {
    "name": "Behdad Esfahbod",
    "email": "behdad@behdad.org",
    "time": "Fri Nov 20 13:44:08 2026 -0600"
  },
  "committer": {
    "name": "Behdad Esfahbod",
    "email": "behdad@behdad.org",
    "time": "Fri Nov 20 13:44:08 2026 -0600"
  },
  "message": "[vector] Set alpha through scoped ExtGStates in PDF draw output\n\nThe PDF draw writer wrote the alpha of a translucent background as\n\"0.502 ca gs\".  ca is a key of an ExtGState dictionary, not an\noperator, and gs takes the name of such a dictionary.  poppler\nreports a syntax error and leaves the whole page blank; pdfium,\nMuPDF and Ghostscript paint the background opaque.\n\nThe alpha of a translucent foreground did go through an ExtGState,\nbut was never undone, so a path drawn with an opaque foreground\nafter one drawn with a translucent foreground came out translucent\nas well.\n\nSet both through an ExtGState inside q/Q.\n\nTesting: hb-vector --foreground\u003d#00000080 --background\u003d#FF000080 on\nRoboto, written as PDF and as SVG.  The PDF differed from the SVG in\npoppler (Splash and cairo), Ghostscript, pdfium and MuPDF; now it\nhas the pixels of the SVG in all five, antialiased edges aside, and\npoppler reports no error.  Through the API, a 50% black square and\nthen an opaque red one: the red one was at 50% in all five\nrenderers, and is opaque now.  The tool\u0027s output is added as an\nexpected output.  Full test suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5edaee86ee4059bd244e20fbcb511b17c5af161e",
      "old_mode": 33188,
      "old_path": "src/hb-vector-draw.cc",
      "new_id": "6ff3793eae4e2941f67839bf46934a41f8753b97",
      "new_mode": 33188,
      "new_path": "src/hb-vector-draw.cc"
    },
    {
      "type": "modify",
      "old_id": "9035e3ecea2383253bffc248e43a383c52e50030",
      "old_mode": 33188,
      "old_path": "src/hb-vector-draw.hh",
      "new_id": "a882cd4670fad7b9b1aba930ad6caa5d883f7d38",
      "new_mode": 33188,
      "new_path": "src/hb-vector-draw.hh"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "acf304b03e2ea7211c6034c0245fdb2941994d87",
      "new_mode": 33188,
      "new_path": "test/vector/data/expected/basic/glyf-translucent.pdf"
    },
    {
      "type": "modify",
      "old_id": "376910f0ab9e3750df9f61c2e4925d0cb680c64f",
      "old_mode": 33188,
      "old_path": "test/vector/data/tests/basic.tests",
      "new_id": "db1b2aafaabdb27e6a8149def1c49a082e394d40",
      "new_mode": 33188,
      "new_path": "test/vector/data/tests/basic.tests"
    }
  ]
}
