)]}'
{
  "commit": "546ef74a37aeb3aad8ce60a683a7edbc2fa16927",
  "tree": "38a24fe35dc1f58a5d89c0bb0a86fe10694c056f",
  "parents": [
    "1f10525b045a7e18b75e4b0207eb17261ab6adac"
  ],
  "author": {
    "name": "Behdad Esfahbod",
    "email": "behdad@behdad.org",
    "time": "Fri Nov 20 22:46:33 2026 -0600"
  },
  "committer": {
    "name": "Behdad Esfahbod",
    "email": "behdad@behdad.org",
    "time": "Fri Nov 20 22:46:33 2026 -0600"
  },
  "message": "[cairo] Paint nothing of an image that cairo cannot paint\n\nhb-cairo paints a glyph that is an image through a pattern of a\nsurface made of it, under a scale by the glyph\u0027s extents.  Three\nthings about the image set the cairo context in error, after which it\ndraws nothing more, and the error went on to the context the glyph\nwas shown in:\n\n - PNG data that cannot be read.  The surface cairo returns is one in\n   error, and so is a pattern of it; cairo_set_source() then puts\n   the context in error.\n - An image with no width or height: a scale by zero for the pattern.\n - Extents that come to nothing, which is where a glyph is shown very\n   small: a scale by zero for the context.  hb-view --font-size\u003d0.01\n   of an sbix glyph printed \"invalid matrix (not invertible)\".\n\nWith two fonts of the fuzzing corpus whose PNG data is broken,\nhb-view printed \"error occurred in libpng while reading from or\nwriting to a PNG file\" and wrote no output.\n\nReturn without painting for each of the three, as hb-raster does.\nThe glyph is then painted as one that has no image.\n\nTesting: a new test in test-cairo.c shows the two broken glyphs, one\nglyph at a size of 0.005, and one that font functions paint as an\nimage of no width, and checks that the context is not in error and\ndraws what comes next; it fails without the change, the status being\nCAIRO_STATUS_PNG_ERROR for the first two and\nCAIRO_STATUS_INVALID_MATRIX for the others.  hb-view now shows the\nbroken glyphs as hb-raster does, to the pixel.  Full test suite\npasses.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "9e45f41d0b21f9fb7d4db0d51126c42555828e40",
      "old_mode": 33188,
      "old_path": "src/hb-cairo-utils.cc",
      "new_id": "66f0461a562855133c44d01dc179f3eadfb3ee92",
      "new_mode": 33188,
      "new_path": "src/hb-cairo-utils.cc"
    },
    {
      "type": "modify",
      "old_id": "c7efb1e3c4bdc163620906f917d1b3e9b61468f1",
      "old_mode": 33188,
      "old_path": "test/api/test-cairo.c",
      "new_id": "c23d27837aafd81a41718e6d186a46691b3900bc",
      "new_mode": 33188,
      "new_path": "test/api/test-cairo.c"
    }
  ]
}
