)]}'
{
  "log": [
    {
      "commit": "253d8d2b661d23ec2083f61b08592e6dcbcf30da",
      "tree": "21e6965746c0704374c539a54471f412e2d264ce",
      "parents": [
        "383351b8f046d01a3ae5182064ecdbf9f9690c90",
        "59fa6d7f643d87ad6d63f287422a33f35cb290dd"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 18:21:55 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 18:21:55 2026 -0600"
      },
      "message": "Merge pull request #6910 from harfbuzz/wasm-start-crash\n\n[wasm] Fix crash when a module calls us while its instance is made"
    },
    {
      "commit": "383351b8f046d01a3ae5182064ecdbf9f9690c90",
      "tree": "66f5be1bc46bceddfcb6ecbdff0b4aaa411c05ee",
      "parents": [
        "e978200739aeaa91076e48d09dfac3d9a8061853"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 18:08:10 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 18:08:10 2026 -0600"
      },
      "message": "[paint] Hand on the empty object where a caller passed none (#6911)\n\n* [paint] Hand on the empty object where a caller passed none\n\nSeven functions take an object they do not use themselves and only hand\non, to a callback or to whatever paints or draws a glyph:\n\n  hb_paint_color_glyph(), hb_paint_fill_glyph() and\n  hb_paint_push_clip_glyph() hand a font to a paint callback;\n  hb_paint_image() hands it a blob;\n  hb_font_paint_glyph() and hb_font_paint_glyph_or_fail() hand paint\n  functions, and hb_font_draw_glyph_or_fail() draw functions, to the\n  font\u0027s implementation.\n\nA NULL for one of those went on as it was, to code that is entitled to\nan object and uses it without looking.\n\nHand on the empty font, blob, paint functions or draw functions\ninstead, as is done for a NULL face in hb_font_create(), a NULL blob in\nhb_face_create() and a NULL parent in hb_font_create_sub_font().  The\nempty functions paint and draw nothing.\n\nPassing NULL there is still not a valid call, and the documentation is\nnot changed.  HarfBuzz\u0027s own code calls the paint functions\u0027 methods\ndirectly, not these wrappers, so the check is not on its paths.\n\nTesting: a new test-paint case passes NULL for each, checks that the\ncallbacks are handed the empty font and the empty blob, that an object\nthat is passed arrives as it is, and that a glyph is painted and drawn\nwith no functions.  Without the change it aborts on the first\nassertion.\n\n* [font] Leave the empty draw and paint functions out of builds without them\n\nThe previous commit has hb_font_draw_glyph_or_fail() and the two\nhb_font_paint_glyph functions hand on the empty draw and paint\nfunctions in place of NULL.  hb-font.cc is built in every\nconfiguration, but hb_draw_funcs_get_empty() and\nhb_paint_funcs_get_empty() are not: HB_NO_DRAW and HB_NO_PAINT, which\nHB_TINY, HB_LEAN and HB_MINI turn on, leave them out, and the link\nfailed.\n\nGuard each substitution with the macro of the module it needs.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "e978200739aeaa91076e48d09dfac3d9a8061853",
      "tree": "ae365e97d5d8f1f70fde8e1a3dc4c32bd5ed66dd",
      "parents": [
        "cdf1c735c244ad6b86c1af75bf665800aaa99adb"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 18:07:51 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 18:07:51 2026 -0600"
      },
      "message": "[ft/coretext] Clamp the table-tags count without adding the offset to it (#6909)\n\nThe table-tags callbacks of FreeType-stream and CoreText faces worked\nout the end of the page as start_offset + *table_count, and on seeing\nthat wrap set the count to zero and returned nothing.  So a count that\noverstates the array by enough to wrap got no tags at all, where every\nother paged getter clamps it to what is left and returns that.\n\nClamp the count to population - start_offset instead, which cannot\nwrap since the offset is known to be below the population by then, as\nhb_array_t::sub_array() does.  No check for overflow is left.\n\nTesting: the checks shared by the FreeType and CoreText cases of\ntest-get-table-tags now ask for the tags from an offset of 2 with a\ncount of UINT_MAX and an array sized for all of them, and expect the\n13 that are left.  Before the fix the FreeType-stream case got none.\nThe CoreText side is the same edit and is not built on Linux, so it is\nexercised by the macOS job only.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "cdf1c735c244ad6b86c1af75bf665800aaa99adb",
      "tree": "cdc8dd047f33a1c3906b6ec7a8852e28fecf196a",
      "parents": [
        "704daa45e2a99f90de6cf477700cd89fd9d784ae"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 18:07:32 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 18:07:32 2026 -0600"
      },
      "message": "[docs] Document the convention of the paged getters and normalize their annotations (#6907)\n\n* [docs] Document the convention of the paged getters and normalize their annotations\n\nA paged getter takes the capacity of the caller\u0027s array in a count,\nwrites at most that many items, stores the number it wrote back in the\ncount, and returns the total.  The rule for its array is one sentence:\nit may be NULL only if the count is NULL or zero.  Say so on the array\nparameter of each of the 31 getters, in the same words, and add a\nsection on the convention to the object-model chapter of the manual.\n\nTheir annotations disagreed.  The count was (inout) (optional) on some,\n(inout) (nullable) on others and bare (inout) on a few; the array was\n(nullable), (optional) or neither, (out) or (out caller-allocates), and\nhb_ot_tags_from_script_and_language() had no (array length\u003d) at all.\nMake every count\n\n  (inout) (optional)\n\nand every array\n\n  (out caller-allocates) (array length\u003dCOUNT) (optional)\n\n(optional) is the one that says what is meant.  In the GObject\nIntrospection annotation reference it is \"For (out) or (inout)\nparameters, signifies that the caller can pass NULL to ignore this\noutput parameter\", while (nullable) on an out parameter means \"NULL\nmay be passed out by the callee as the returned value\", which says\nnothing about an unsigned int and the wrong thing about the caller\u0027s\narray.\n\nThe two callback types that take the same pair, hb_get_table_tags_func_t\nand hb_color_line_get_color_stops_func_t, are annotated the same way,\nand say what the public function hands them: its own arguments, with\nthe count set to zero if the array is NULL.\n\nWhile there, fix words that were plainly wrong in these comments:\n\"feature tags\" for color stops, \"lookup\" for a variation axis, \"feature\ntype\" for a selector and for a meta entry tag, \"feature tags\" for\nfeature indexes, and \"tagss\".\n\nNo code changes.  HarfBuzz-0.0.gir changes for 30 of the getters (the\n31st is in libharfbuzz-subset, which is not scanned) and one of the\ncallback types, with no scanner warning before or after:\n\n  - nullable\u003d\"1\" becomes optional\u003d\"1\" on 36 parameters, and\n    optional\u003d\"1\" appears on 9 that had neither.\n  - caller-allocates becomes \"1\", and with it transfer-ownership\n    \"none\" instead of \"full\", on the 16 arrays of scalars that were\n    not marked (out caller-allocates).  The scanner infers it only for\n    arrays of structs.\n  - The two arrays of hb_ot_tags_from_script_and_language() become\n    arrays with a length, and their counts become direction\u003d\"out\",\n    as the count of every other getter already is: the scanner gives\n    the length of an array the direction of the array.\n\n* [docs] Show a paged getter read a piece at a time into a fixed array\n\nThe section on functions that return a list showed the two-call\npattern, and described fetching a piece at a time in words.  Add the\nloop: a fixed-size array on the stack, the count reset to its capacity\nbefore each call, the offset advanced by what came back.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "704daa45e2a99f90de6cf477700cd89fd9d784ae",
      "tree": "e1a82f4ebb2c566248781c948ec83fd5790fb937",
      "parents": [
        "4c53fd08076698957f851a13bdf62074c53b4c5d"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 18:07:08 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 18:07:08 2026 -0600"
      },
      "message": "[api] Zero the count when a paged getter gets no array (#6900)\n\nA paged getter takes the capacity of the caller\u0027s array in a count,\nwrites at most that many items, stores the number it wrote back in the\ncount, and returns the total.  The conforming calls pass an array and\nits capacity, or NULL for both to ask only for the total.\n\nA count with a NULL array is not a conforming call, and what it did\ndepended on the getter:\n\n  - Most left the count as the caller had it, which says that many\n    items were written when none were.  That is what the NULL-array\n    guards on the internal table methods amount to.\n\n  - hb_ot_shape_plan_get_feature_tags(), and hb_face_get_table_tags()\n    on a face-builder, FreeType-stream or CoreText face, clamped the\n    count to what is available and wrote nothing: the same thing with\n    a different number.\n\n  - Some zeroed it, but only on an early return: a glyph that is not\n    covered, an index that is out of range, a face that cannot list\n    its tables.\n\n  - hb_ot_name_get_utf8(), hb_ot_name_get_utf16() and\n    hb_ot_name_get_utf32() wrote through the NULL pointer and crashed,\n    whether or not the face has the name.  So did\n    hb_subset_depend_lookup_glyph() for a glyph that has edges, and\n    hb_face_get_table_tags() and hb_color_line_get_color_stops() when\n    the callback they hand the call to does not check the array, which\n    the fontations color-line callback does not.\n\nMake them all do the same, safe thing: when the array is NULL and the\ncount is not, set the count to zero and write nothing.  The count is\nnot read in that case.  The return value does not change, a NULL count\nis treated as before, and so is a call with an array.  The call is\nstill not a conforming one, and the documentation is not touched; this\nis only about what happens when someone makes it.\n\nIt takes one line at the top of each of the 31 public entry points,\nahead of anything that reads the count, so that the early returns, the\nHB_NO_OT_SHAPE stub and the callbacks are all covered: once the count\nis zero, the code underneath writes nothing.\nhb_ot_tags_from_script_and_language() has two count/array pairs, and\neach is treated on its own.  The guards on the internal table methods\nstay.\n\nTesting: the new test-paged-getters calls each getter with a count of\n12345 and a NULL array, where it has something to return and where it\nhas nothing, and checks that the count comes back zero and that the\nreturn value is what passing NULL for both returns.  It does the same\nfor a face and for a color line whose callback does not check the\narray.  hb_subset_depend_lookup_glyph() needs the experimental API and\nlibharfbuzz-subset, so its case is in test-ot-depend.  Without the fix\nall 33 cases of the former and the new case of the latter fail: six by\ncrashing (the three name getters, the two callbacks and the depend\ngetter), the others on the count.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "4c53fd08076698957f851a13bdf62074c53b4c5d",
      "tree": "9a0d73be2342f680605a49a6de8170d1871bb151",
      "parents": [
        "e910c3c13fc67e900abe3c64d95196b5fb06d7cc",
        "adb2bde22effef2cabbe0057ed37fea9db78f581"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 18:02:01 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 18:02:01 2026 -0600"
      },
      "message": "[build] Make check-symbols run, and pass, on Cygwin (#6912)\n\n* [build] Export only the public API from Cygwin DLLs\n\nCygwin was left out when MinGW moved to HB_DLL_EXPORT (#6893), so\nits DLLs still export every global symbol: 1,560 from\ncygharfbuzz-0.dll for an API of 550, and 1,416 from\ncygharfbuzz-subset-0.dll for an API of 31 (x86_64-pc-cygwin,\nGCC 13.4.0, without FreeType, GLib, ICU and Cairo).\n\nCygwin also defined HB_NO_VISIBILITY, which makes hb-static.cc\ndefine nothing outside the main library. The other libraries and the\ntest programs got _hb_NullPool, _hb_CrapPool and the like from\ncygharfbuzz-0.dll through those accidental exports;\ncygharfbuzz-subset-0.dll imported eleven internal symbols that way.\n\nTreat Cygwin as MinGW: mark the API dllexport when building shared\nlibraries, which stops the linker from exporting everything else,\nand let each library define its own pools. The four DLLs that\ncheck-symbols looks at now export exactly their .def lists, and no\nDLL or program in the build imports a non-API symbol from another.\n\nNote for packagers: a library built before this change does not\nload against a cygharfbuzz-0.dll built after it, so the DLLs have to\nbe updated together.\n\nTested with a cross build for x86_64-pc-cygwin: export tables\nagainst the .def files, import tables of all 75 DLLs and programs,\nand the 67 test programs under Wine, all passing as before. The\nDLLs of a CMake build export the same lists. Not tested on a Cygwin\ninstall, nor with the optional dependencies.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n\n* [test] Run check-symbols and check-libstdc++ on Cygwin\n\nBoth scripts looked for lib\u003cname\u003e.so and lib\u003cname\u003e.dylib only. Cygwin\nnames its DLLs cyg\u003cname\u003e-0.dll, so both tests ended in \"no shared\nlibraries found; skipping test\".\n\nLook for the Cygwin name as well, and read a DLL with objdump -p:\n\n- check-symbols takes the names from the export table. nm cannot\n  give them: \"nm -D\" finds no symbols in a DLL, and plain nm lists\n  the symbol table, which holds every global whether or not it is\n  exported.\n- check-libstdc++ takes the DLL names from the import table, and\n  knows cygstdc++-6.dll and cygc++-1.dll. Like readelf -d, that is\n  what the library itself links to.\n\nBoth the GNU and the LLVM forms of the objdump output are parsed.\n\nTested by running the scripts against x86_64-pc-cygwin cross builds:\ncheck-symbols fails on a build of the previous commit\u0027s parent\n(1,010 internal symbols in cygharfbuzz-0.dll) and passes on this\ntree; check-libstdc++ passes on both.\n\nhttps://github.com/harfbuzz/harfbuzz/issues/6889#issuecomment-7146366113\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n\n* [test] Run check-symbols and check-libstdc++ on MinGW\n\nMinGW names its DLLs lib\u003cname\u003e-0.dll, so the two tests skipped in\nnative MinGW builds too, as in the msys2 CI jobs. Since #6893 those\nDLLs export only the API, which is what check-symbols verifies.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n\n---------\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "adb2bde22effef2cabbe0057ed37fea9db78f581",
      "tree": "9a0d73be2342f680605a49a6de8170d1871bb151",
      "parents": [
        "ad075126979be37e2a920156e9d4890f50d14143"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 17:40:43 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 17:42:44 2026 -0600"
      },
      "message": "[test] Run check-symbols and check-libstdc++ on MinGW\n\nMinGW names its DLLs lib\u003cname\u003e-0.dll, so the two tests skipped in\nnative MinGW builds too, as in the msys2 CI jobs. Since #6893 those\nDLLs export only the API, which is what check-symbols verifies.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "ad075126979be37e2a920156e9d4890f50d14143",
      "tree": "72673f72c34fcebb70f4c3c2a6a2fc3a3701e752",
      "parents": [
        "4dbe047e0de0786956ba7f4e971c4b9ee1849afa"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 17:40:43 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 17:42:44 2026 -0600"
      },
      "message": "[test] Run check-symbols and check-libstdc++ on Cygwin\n\nBoth scripts looked for lib\u003cname\u003e.so and lib\u003cname\u003e.dylib only. Cygwin\nnames its DLLs cyg\u003cname\u003e-0.dll, so both tests ended in \"no shared\nlibraries found; skipping test\".\n\nLook for the Cygwin name as well, and read a DLL with objdump -p:\n\n- check-symbols takes the names from the export table. nm cannot\n  give them: \"nm -D\" finds no symbols in a DLL, and plain nm lists\n  the symbol table, which holds every global whether or not it is\n  exported.\n- check-libstdc++ takes the DLL names from the import table, and\n  knows cygstdc++-6.dll and cygc++-1.dll. Like readelf -d, that is\n  what the library itself links to.\n\nBoth the GNU and the LLVM forms of the objdump output are parsed.\n\nTested by running the scripts against x86_64-pc-cygwin cross builds:\ncheck-symbols fails on a build of the previous commit\u0027s parent\n(1,010 internal symbols in cygharfbuzz-0.dll) and passes on this\ntree; check-libstdc++ passes on both.\n\nhttps://github.com/harfbuzz/harfbuzz/issues/6889#issuecomment-7146366113\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "4dbe047e0de0786956ba7f4e971c4b9ee1849afa",
      "tree": "07196a50ea0000007c0802124d25ece2361421d1",
      "parents": [
        "e910c3c13fc67e900abe3c64d95196b5fb06d7cc"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 17:42:39 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 17:42:44 2026 -0600"
      },
      "message": "[build] Export only the public API from Cygwin DLLs\n\nCygwin was left out when MinGW moved to HB_DLL_EXPORT (#6893), so\nits DLLs still export every global symbol: 1,560 from\ncygharfbuzz-0.dll for an API of 550, and 1,416 from\ncygharfbuzz-subset-0.dll for an API of 31 (x86_64-pc-cygwin,\nGCC 13.4.0, without FreeType, GLib, ICU and Cairo).\n\nCygwin also defined HB_NO_VISIBILITY, which makes hb-static.cc\ndefine nothing outside the main library. The other libraries and the\ntest programs got _hb_NullPool, _hb_CrapPool and the like from\ncygharfbuzz-0.dll through those accidental exports;\ncygharfbuzz-subset-0.dll imported eleven internal symbols that way.\n\nTreat Cygwin as MinGW: mark the API dllexport when building shared\nlibraries, which stops the linker from exporting everything else,\nand let each library define its own pools. The four DLLs that\ncheck-symbols looks at now export exactly their .def lists, and no\nDLL or program in the build imports a non-API symbol from another.\n\nNote for packagers: a library built before this change does not\nload against a cygharfbuzz-0.dll built after it, so the DLLs have to\nbe updated together.\n\nTested with a cross build for x86_64-pc-cygwin: export tables\nagainst the .def files, import tables of all 75 DLLs and programs,\nand the 67 test programs under Wine, all passing as before. The\nDLLs of a CMake build export the same lists. Not tested on a Cygwin\ninstall, nor with the optional dependencies.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "59fa6d7f643d87ad6d63f287422a33f35cb290dd",
      "tree": "8b63e27c900e998f079e5713373dda18dfa8910d",
      "parents": [
        "e910c3c13fc67e900abe3c64d95196b5fb06d7cc"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 17:32:27 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 17:32:27 2026 -0600"
      },
      "message": "[wasm] Fix crash when a module calls us while its instance is made\n\nThe runtime runs a module\u0027s start function, and its exported\n__wasm_call_ctors, inside wasm_runtime_instantiate().  The instance\nhas no plan attached yet at that point, and since the handles moved\ninto the plan every host function that takes or returns a handle\ndereferenced a null pointer there.  A font whose module does that\ncrashed the process.\n\nTreat an instance without a plan as one with no handles: a handle\nnames the empty object, as an unknown one does, and an object cannot\nbe given a handle, so face_create() and font_create() return none.\n\nThe test font\u0027s module calls six host functions from a constructor.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "e910c3c13fc67e900abe3c64d95196b5fb06d7cc",
      "tree": "d4539ea649ffb63a99559d36755bd81567ec7ce3",
      "parents": [
        "4d95f7e0e24318278f7abf296be48c3232e0d5e0",
        "6cf99a400715e2d608e2baca1012eaa7d2fb3660"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 17:19:15 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 17:19:15 2026 -0600"
      },
      "message": "Merge pull request #6905 from harfbuzz/wasm-destroy\n\n[wasm] Let a module destroy the faces and fonts it creates\n"
    },
    {
      "commit": "6cf99a400715e2d608e2baca1012eaa7d2fb3660",
      "tree": "8cdea6ce62bc9db8823225812befd859b185440c",
      "parents": [
        "cc25d2c51dde09287112f3fafd1bcfae1ec05d20"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:28:13 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:28:13 2026 -0600"
      },
      "message": "[docs] Document face_destroy and font_destroy\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "cc25d2c51dde09287112f3fafd1bcfae1ec05d20",
      "tree": "92b0666675a13d2a4ff168061e46c2b3a961ad6a",
      "parents": [
        "69b6b225c6ef6271344adb3ef190ef58b1e561b5"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:28:13 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:28:13 2026 -0600"
      },
      "message": "[test] Test face_destroy and font_destroy\n\nA module that destroys what it creates keeps its instance: it counts\nthree calls.  One that keeps a font is on its first call each time.\nAlso covered: a destroyed handle names nothing, a face destroyed\nbefore a font that uses it, and handles that are not the module\u0027s to\ndestroy.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "69b6b225c6ef6271344adb3ef190ef58b1e561b5",
      "tree": "c48ad7233546a406d86dcaec8fb7bda9a289e1a7",
      "parents": [
        "f4327bfa10b152ae2efa1c598d82d13cd0eb6f8f"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:28:13 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:28:13 2026 -0600"
      },
      "message": "[wasm] Let a module destroy the faces and fonts it creates\n\nA module can create faces and fonts and had no way to give one back.\nThey are destroyed with its instance, and the instance of a module\nthat has created one is not kept for the next call.  So any module\nthat uses face_create() or font_create() is instantiated again, and\nruns shape_plan_create() again, for every shape() call, even when it\nonly needs a second font for the length of one call.\n\nAdd two host functions:\n\n  void face_destroy (face_t *face);\n  void font_destroy (font_t *font);\n\nEach destroys an object that the module created and removes its\nhandle, which names nothing afterwards.  Any other handle is ignored:\nthe font, the buffer and the face the module was given, a handle that\nis already gone, or one of the wrong type.\n\nThe instance counts the objects it owns instead of remembering that\none was created.  It is kept for the next call when the count is zero\nat the end of shape().  A module that still owns something then\nexpects to find it in the next call; it gets a fresh instance, as\nbefore.\n\nA face can be destroyed while a font of the module still uses it;\nthe font holds a reference.  font_get_face() on that font finds no\nhandle for the face any more.  It used to register the face without\nholding it, which is no longer enough: the font can be destroyed\nnext.  It now makes a handle that holds the face and that the module\nowns.  For a font handle that names nothing it returns no handle,\nrather than one for the empty face that the module would own.\n\nFixes: https://github.com/harfbuzz/harfbuzz/issues/6901\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "4d95f7e0e24318278f7abf296be48c3232e0d5e0",
      "tree": "111ed03f27259b54f0bf0e0d25c50374aef326ca",
      "parents": [
        "ccd51c226931148469b8c9f7c38b2add5cfd31d5"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:27:18 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 16:27:18 2026 -0600"
      },
      "message": "[GSUB] Fix alternates of a glyph a later single-substitution subtable covers (#6902)\n\nhb_ot_layout_lookup_get_glyph_alternates() asks the subtables of the\nlookup in turn until one answers.  A SingleSubst subtable that did not\ncover the glyph set the caller\u0027s count to zero on its way out, and the\nnext subtable took that zero for the capacity of the array.  So for a\nglyph that only a later subtable covers, the function returned 1,\nwrote nothing and reported a count of zero.\n\nLeave the count alone when the glyph is not covered.  The function\nitself zeroes it when no subtable answers.\n\nThe same two methods, SingleSubstFormat1\u0027s and SingleSubstFormat2\u0027s,\nalso ignored start_offset: they wrote the substitute and reported a\ncount of 1 whatever the offset.  The substitute is the only alternate\nthere is, so for a non-zero offset write nothing and report a count of\nzero.  The return value is still 1.\n\nAlternateSubst is the only other subtable type that answers, and it\nalready does both: an AlternateSet that is not there leaves the count,\nand sub_array() pages by the offset.\n\nTesting: test-ot-alternates gets two cases, and both fail without the\nfix.  One asks a format 1 and a format 2 lookup of\nSourceSansPro-Regular.otf for the page past the substitute.  The other\nasks for the alternates of every glyph of a new font,\nsingle-subst-three-subtables.ttf, whose one lookup has three\nSingleSubst subtables: 1 -\u003e 2 (format 1), 0 -\u003e 3 and 2 -\u003e 1 (format\n2), and 3 -\u003e 1 (format 1).  Glyphs 0 and 2 are answered after a format\n1 subtable has passed on them, and glyph 3 after one of each format\nhas; fixing only one of the two methods leaves the case failing.  The\nfont is 156 bytes, a GSUB and a maxp table written out by\ngenerate-single-subst-three-subtables-font.py next to it.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "ccd51c226931148469b8c9f7c38b2add5cfd31d5",
      "tree": "704dd5de184bfb13fa75446948ac62fc58082924",
      "parents": [
        "b70deffec7c95f618d254b9d9524bb3bd7598a65"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:27:04 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 16:27:04 2026 -0600"
      },
      "message": "[MATH] Fix overflow paging through kern entries (#6903)\n\nMathKern::get_entries() clamped the caller\u0027s count by hand:\n\n  end \u003d hb_min (start + *entries_count, entriesCount);\n  *entries_count \u003d end - start;\n\nstart + *entries_count overflows for a large count with a non-zero\nstart.  end then comes out below start, and the count that comes out\nof the subtraction is the one the caller passed: more than what is\nthere.  The loop runs that many times, reading past the table and\nwriting past the caller\u0027s array.\n\nPage the kern values through hb_array_t::sub_array() instead, as the\nother paged getters do.  It clamps the count without the addition, so\nno overflow check of its own is left in the function.\n\nOnly a count within 65536 of UINT_MAX can do this.  A caller has to\nhave memory for whatever count it passes, so such a count overstates\nthe capacity of its array and is not a sensible call.  The bug is\nthere all the same.\n\nThe other two MATH getters, of glyph variants and of assembly parts,\nalready page through sub_array(), and nothing else in\nhb-ot-math-table.hh pages by hand.\n\nTesting: the new test-ot-math case passes a count of UINT_MAX, which\nsets the overflow off, at every offset from zero to past the end, with\nan array sized from the total.  It checks that the count comes back as\nwhat is left, that the entries are the tail of what a start_offset of\nzero returns, and that the rest of the array is not written.  Without\nthe fix it crashes at start_offset 1, where valgrind reports a write\npast the end of the array.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "f4327bfa10b152ae2efa1c598d82d13cd0eb6f8f",
      "tree": "d7bc05dbfa5cca13de75a921b5f751b4b1eb454d",
      "parents": [
        "8426e62a9b5b65e899004e6643fed8caa3ecc1db"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:20:58 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:20:58 2026 -0600"
      },
      "message": "[wasm] Stop asking for reference types in the runtime\n\nThe externref functions were the only thing HarfBuzz needed\nwasm-micro-runtime\u0027s reference types for, and it no longer calls\nthem.  Drop -DWAMR_BUILD_REF_TYPES\u003d1 from the build instructions and\nfrom the CI job.\n\nChecked by building the runtime with -DWAMR_BUILD_REF_TYPES\u003d0, which\nleaves out those functions, and HarfBuzz against it: it links, and\ntest-wasm passes.  (Recent runtimes turn reference types on by\ndefault, so the CI runtime still has them.)\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "8426e62a9b5b65e899004e6643fed8caa3ecc1db",
      "tree": "619c627c4ef5d32c25fdd473cd812ee7fe623627",
      "parents": [
        "6d4b09f736c59713c7a8a1de91cb0a3c438ce6fb"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:20:58 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:20:58 2026 -0600"
      },
      "message": "[docs] Say how long a Wasm module\u0027s tokens last\n\nThe Wasm shaper documentation calls the handles tokens and did not\nsay when one stops being usable.  A font or buffer token is good for\none shape() call, the face token for the life of the instance, and\nwhat a module creates lives until the instance goes, which is after\nthe same call.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "6d4b09f736c59713c7a8a1de91cb0a3c438ce6fb",
      "tree": "43b419d9a66efd6182712edd681547c5f246fee0",
      "parents": [
        "9d82794379be415d229066f1bdc0c128830c2f64"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:20:58 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:20:58 2026 -0600"
      },
      "message": "[test] Test that Wasm handles belong to their instance\n\nExtend the module in wasm-api.ttf and test-wasm.c for the handle\ntable:\n\n- Two faces, and so two instances, see the same handle numbers for\n  their own objects.  With handles in the runtime\u0027s map the second\n  instance saw the numbers after the first one\u0027s: (1 \u003d\u003d 4).\n- The face has one handle from shape_plan_create() on, and the font\n  and the buffer get new ones in each call.\n- A module that asks for a thousand fonts gets some and is refused\n  the rest: (1000 \u003c 1000) before.\n- The module now has a shape_plan_create(), and a\n  shape_plan_destroy() that creates a font on the face.  That runs\n  while the face is being destroyed, and must not reach it.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "9d82794379be415d229066f1bdc0c128830c2f64",
      "tree": "e793d00d36ffd99ec8a4e65c26234c73628b265e",
      "parents": [
        "b70deffec7c95f618d254b9d9524bb3bd7598a65"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:20:24 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:20:41 2026 -0600"
      },
      "message": "[wasm] Keep each instance\u0027s handles in a table of our own\n\nA module refers to our objects by handle.  The handles were numbers in\nwasm-micro-runtime\u0027s externref map, which is one map for the whole\nprocess:\n\n- A module could pass a handle that another instance had registered:\n  another font\u0027s face, or the font and the buffer of a shape() call\n  in progress on another thread.  Only the object\u0027s type was checked.\n- The numbers come from one 32-bit counter that is never reused.\n  Every shape() call takes two, and once they run out no object can\n  be registered by any font in the process.\n- Registering, looking up and deleting a handle each walk that map\n  under one global lock.\n- To check a handle\u0027s type we set user data on the caller\u0027s own font\n  and buffer.\n- The runtime had to be built with reference types.\n\nGive each instance a table instead: a sorted vector of the handles its\nmodule can use, each with the object, its type, and whether the\ninstance owns it.  A host function looks a handle up in the table of\nthe instance that called it, so a number that another instance uses\nnames nothing, or an object of the caller\u0027s own.  Numbers come from a\ncounter in the instance, still never reused, so that a handle whose\nobject is gone names nothing.  An instance that has used half of its\nnumbers is not kept for another call; the next one starts afresh.\n\nWhat a module sees is as before.  The face is registered when the\ninstance is created and keeps its handle; the font and the buffer get\nhandles for one shape() call; faces and fonts the module creates are\ndestroyed with the instance, which is then not kept for another call.\n\nTwo things are new.  An instance holds at most HB_WASM_MAX_HANDLES\n(256) handles, and face_create() and font_create() fail beyond that.\nAnd the handles are dropped before shape_plan_destroy() runs: it can\nrun while the face is being destroyed, and the type check through\nuser data, which no longer exists, is what kept that face away from\nthe host functions then.\n\nNo wasm_externref_* function is used any more.\n\nTested with GCC 15 against wasm-micro-runtime 2.4.6: all 301 tests\npass.  Under AddressSanitizer and LeakSanitizer with Clang 21,\ntest-wasm passes, and so do modules that pass a stale handle, create\nobjects, create a thousand fonts (253 succeed), and create a font on\nthe face from shape_plan_destroy().\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "b70deffec7c95f618d254b9d9524bb3bd7598a65",
      "tree": "ddb084587b65e54edc269258b4108a85586a97b4",
      "parents": [
        "bd6180517508ef01d40a7e2b2d764dbb84f9ef03",
        "f55cadc400fc203f498c2c75b8b9a3df1d75c4c8"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:05:44 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 16:05:44 2026 -0600"
      },
      "message": "Merge pull request #6898 from harfbuzz/wasm-api-fixes\n\n[wasm] Host API fixes, a test, and a CI build"
    },
    {
      "commit": "f55cadc400fc203f498c2c75b8b9a3df1d75c4c8",
      "tree": "9bb73af08bed3d6c42ead0a4c058a884afaef98d",
      "parents": [
        "040a8443b1e4a7fad38821d3de6fcf3ea2440b3f"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 15:04:28 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:00:57 2026 -0600"
      },
      "message": "[ci] Build the Wasm shaper in the Linux job\n\nNo CI job built the Wasm shaper, so its sources were not even compiled\nthere, and test-wasm would run nowhere.\n\nBuild wasm-micro-runtime in the Linux job, at the commit of its 2.4.6\nrelease, and configure with -Dwasm\u003denabled.  The runtime is not\npackaged for Ubuntu; building it takes a few seconds.\n\nTried locally with the same cmake options, GCC 15 and\n-Dwasm\u003denabled: no warnings, and all 301 tests pass, test-wasm among\nthem.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "040a8443b1e4a7fad38821d3de6fcf3ea2440b3f",
      "tree": "6348f20045350e78e8f65acea4e59c044da7d147",
      "parents": [
        "cf23dc779258637ed382ec8a68829da7b305f4a1"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 15:03:31 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:00:57 2026 -0600"
      },
      "message": "[test] Add a test for the Wasm shaper\u0027s host API\n\nThere was no test of the Wasm shaper.  Add one, built when the shaper\nis enabled, that shapes with a small module of its own:\ntest/api/fonts/wasm-api.ttf is Roboto-Regular.abc.ttf with a Wasm\ntable compiled from wasm-api.cc, and generate-wasm-api-font.py builds\nit.  The module reports what it sees by setting the buffer to a few\nvalues.\n\nThe three tests cover the fixes just before this: the lengths the copy\nfunctions report for arrays larger than needed, a reused outline\nstructure, a buffer handle passed again in the next call, faces and\nfonts that the module creates, and a handle that names no buffer.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "cf23dc779258637ed382ec8a68829da7b305f4a1",
      "tree": "9fbce848db875d6dc0ac0a26eaf54b4b6e35f689",
      "parents": [
        "91fd915bb210016c401307b7b05725ee9087e13d"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 14:55:56 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 16:00:57 2026 -0600"
      },
      "message": "[wasm] Destroy the faces and fonts that a module creates\n\nface_create() and font_create() hand the module a handle to a new\nobject and nothing ever destroyed that object: there is no call to\nrelease one, and the runtime drops only its own record of the handle\nwhen the instance goes.  Every call leaked a face or a font.\n\nfont_create() on the face being shaped leaked more than the font.  The\nnew font holds the face, so the face was never destroyed, nor the\nfont file behind it, nor the module and its cached instance that the\nface owns.\n\nGive each such handle a cleanup function, so that the runtime\ndestroys the object together with the instance.  And stop keeping an\ninstance on the face once its module has created an object.  Such an\ninstance is destroyed when the call that used it returns, which takes\nits objects with it; the next call starts a fresh one, as the first\ncall on a face does.  Otherwise the objects of every call would pile\nup on the cached instance, and a font on our face would still hold\nit.\n\nThe instance now carries its hb_wasm_shape_plan_t as custom data, for\nthe two functions to mark it; the struct moves to hb-wasm-api.hh for\nthat.\n\nChecked with a module that calls font_create() on the face of the\nfont it is given, and a client that sets a destroy callback on the\nface: the callback never ran before, and runs now.  A module that\ncreates a face from data of its own and a font on that leaves nothing\nbehind under LeakSanitizer.\n\nFixes: https://github.com/harfbuzz/harfbuzz/issues/6415\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "bd6180517508ef01d40a7e2b2d764dbb84f9ef03",
      "tree": "c1f122efc8c4af7a5179797d50bc5c810e7a1cd0",
      "parents": [
        "e5481e5cded8f01e9045c26eb9cf7dccb7eceec8"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 15:09:25 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 15:09:25 2026 -0600"
      },
      "message": "[paint] Document that a color-glyph callback must bound its own nesting (#6899)\n\nThe color-glyph callback is offered each color glyph that another one\nrefers to.  A callback that paints it by calling hb_font_paint_glyph()\nstarts a new walk, with its own cycle detection and its own limits, so\nnothing HarfBuzz does bounds two glyphs that refer to each other: the\ncalls nest until the stack overflows.  hb-cairo did this, and now\ndeclines the glyph instead.\n\nWhich calls nest is outside HarfBuzz\u0027s control, so say on the callback\ntype and on its setter that a callback painting this way has to guard\nagainst cycles and limit its depth itself.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "91fd915bb210016c401307b7b05725ee9087e13d",
      "tree": "b4b4f24b9648136213c0f2c04a569dad11657028",
      "parents": [
        "35df6e415ab4dc3adec2453825835bc7435a1f6a"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 14:53:58 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 14:53:58 2026 -0600"
      },
      "message": "[wasm] Don\u0027t write to the empty buffer\n\nHB_REF2OBJ resolves a handle that names no buffer to\nhb_buffer_get_empty().  shape_with() then called ensure_unicode() on\nit, which stores HB_BUFFER_CONTENT_TYPE_UNICODE into a buffer whose\ncontent type is INVALID.  One such call from a module changed the\ncontent type of the shared empty buffer for the rest of the process.\nbuffer_set_contents() stored into it as well, through resize(), though\nonly values it already held.\n\nReturn false for an immutable buffer in both, before anything is\nwritten.  hb_shape_full() asserts the same of its buffer.\n\nChecked with a module that passes a bad handle to shape_with():\nhb_buffer_get_content_type (hb_buffer_get_empty ()) read UNICODE after\none shape() call, and reads INVALID with the change.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "e5481e5cded8f01e9045c26eb9cf7dccb7eceec8",
      "tree": "2a7dd3ecc3c6bc3631ae61f35e9ee8c5bb0ad0a2",
      "parents": [
        "3cf5534df6ed1beb59ae5b74e7b6c13dd7f67608"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 14:53:41 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 14:53:41 2026 -0600"
      },
      "message": "[font] Accept a NULL callback in the legacy glyph, draw and paint setters (#6897)\n\nEvery callback setter generated by HB_FONT_FUNC_IMPLEMENT takes a NULL\ncallback: it puts the default back and releases the data it was\nhanded.  Four setters are written by hand and did not:\n\n  hb_font_funcs_set_glyph_func()\n  hb_font_funcs_set_draw_glyph_func()\n  hb_font_funcs_set_glyph_shape_func()\n  hb_font_funcs_set_paint_glyph_func()\n\nEach wraps its callback in a trampoline and installs that, without\nlooking at the callback.  Given NULL, they installed a trampoline\naround nothing, which the next glyph lookup, draw or paint called\nthrough, and they kept the data instead of releasing it.\n\nClear the callbacks they set instead, through the generated setters,\nwhich release the data as they do for any NULL callback.  Say in their\ndocumentation what a NULL callback does, and annotate it as nullable.\n\nTesting: the new test-font case fails without the fix and passes with\nit.  A program that sets any of the three to NULL and then uses the\nfont segfaults without the fix.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "35df6e415ab4dc3adec2453825835bc7435a1f6a",
      "tree": "058b3fd0e70b91dedb001a4fd39af1d550d823ff",
      "parents": [
        "34cc3bd7d1fbc51eef4172973734131e5e1a926a"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 14:53:32 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 14:53:32 2026 -0600"
      },
      "message": "[wasm] Report the length of what was copied into the caller\u0027s array\n\nbuffer_copy_contents(), face_copy_table(), font_copy_coords() and\nfont_copy_glyph_outline() copy into the array the module passed when\nit is large enough, and allocate a new one otherwise.  Only the\nallocating path set the length.  With an array larger than needed, the\nmodule got the data and no way to learn how much of it there was: the\nlength field still held the capacity it had passed in.\n\ndocs/wasm-shaper.md says of font_copy_coords() that \"the resulting\nstructure has length equal to the number of variation axes\", and\ndescribes the length of buffer_contents_t as the number of items in\nthe buffer.  Set the lengths on the in-place path too.\n\nA module that reuses one structure now sees the length drop to that\nof a smaller result, and the next larger one is allocated afresh; the\nprevious commit is what keeps that from leaking for outlines.\n\nChecked with a module that passes arrays larger than needed to each of\nthe four.  For a three-character buffer and a font with no variation\naxes it read back 64 items, a 65536-byte \u0027maxp\u0027, and 64 coordinates\nbefore; 3, 32 and 0 after.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "34cc3bd7d1fbc51eef4172973734131e5e1a926a",
      "tree": "e819edbdc93e8910f353f3c235f78f889f8de69e",
      "parents": [
        "602c3b611ed7af23569d17fab3e89a8f044acda6"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 14:53:32 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 14:53:32 2026 -0600"
      },
      "message": "[wasm] Free the old outline arrays before replacing them\n\nWhen the outline does not fit in the arrays the module passed,\nfont_copy_glyph_outline() allocates new ones in the module\u0027s memory\nand stores them over the old pointers.  The other copy functions free\nwhat they replace; this one did not, so a module that reuses one\nglyph_outline_t for a larger glyph lost the previous arrays, until\nallocations in the instance started to fail.\n\nFree them first, as buffer_copy_contents(), face_copy_table() and\nfont_copy_coords() do.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "3cf5534df6ed1beb59ae5b74e7b6c13dd7f67608",
      "tree": "1cb047e964fea2bcd6b5c0c93e688db2b99c3a41",
      "parents": [
        "fda3b122dbfd86aa57f53c4318254034a1c62b2f"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 14:52:25 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 14:52:25 2026 -0600"
      },
      "message": "[docs] Say that the callback setters accept NULL (#6896)\n\nEvery setter that the font, draw, paint and Unicode callback macros\ngenerate takes a NULL callback: it puts the default implementation\nback (the parent\u0027s, for Unicode functions) and calls @destroy on\n@user_data right away.  None of their documentation said so, and @func\nwas not annotated as nullable.\n\nSay it on all 58 of them, and annotate the parameter.\n\nThe four hand-written legacy setters, hb_font_funcs_set_glyph_func(),\nhb_font_funcs_set_draw_glyph_func(), hb_font_funcs_set_glyph_shape_func()\nand hb_font_funcs_set_paint_glyph_func(), are left alone here: they do\nnot accept NULL.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "602c3b611ed7af23569d17fab3e89a8f044acda6",
      "tree": "089e8f57edbd25f967b7db66759d6639cf471ebd",
      "parents": [
        "89db1b111968a177e34afb8fb07174328f4f6172"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 14:52:14 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 14:52:14 2026 -0600"
      },
      "message": "[wasm] Forget the font and buffer handles when shape() returns\n\nThe module refers to the font and the buffer of a shape() call through\nhandles that wasm-micro-runtime maps to our objects.  The runtime\nkeeps such a mapping until the module instance is destroyed, and we\nkeep the instance on the face for the next call.  So the handles of\none call still resolved in every later call on that face, after the\ncaller had destroyed the buffer or the font they stood for.\n\nA module that passed such a handle again, to buffer_get_direction()\nsay, had HB_REF2OBJ read the freed object to check its type, and the\nhost function then worked on it.  The handles are small consecutive\nnumbers, so a module does not need to have saved one to name it.\n\nDelete the two mappings before the instance goes back to the cache.\nA stale handle now resolves to nothing, and the host functions fall\nback to the empty object as they do for any other bad handle.  The\nface\u0027s handle stays: the face outlives the instance.\n\nReproduced under AddressSanitizer with a module that keeps the buffer\nhandle of the previous call and asks for that buffer\u0027s direction, and\na client that shapes twice with a new buffer each time:\nheap-use-after-free in hb_object_get_user_data\u003chb_buffer_t const\u003e.\nClean after the change.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "89db1b111968a177e34afb8fb07174328f4f6172",
      "tree": "f78c5d66309eee3149706ff1bf7d39cd9b512a80",
      "parents": [
        "c49dabc0bb00ee3dcfed269d0243c22bebffb898"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 14:51:19 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 14:51:19 2026 -0600"
      },
      "message": "[wasm] Release the table blob in face_copy_table when the data fits\n\nface_copy_table() references the table blob and released it only on\nthe path that allocates a new array in the module.  When the table\nfits in the array the caller passed, both returns of that branch left\nthe reference behind: a leaked blob on every such call, and with it\nthe face\u0027s own blob, which the table blob is a sub-blob of.\n\nHold the blob in a hb_unique_ptr_t, so every return releases it.\n\nReproduced with a module that copies \u0027maxp\u0027 into a 64KiB array on each\nshape() call, under LeakSanitizer: three calls leaked three blobs and\nkept the font file mapped.  Clean after the change.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "c49dabc0bb00ee3dcfed269d0243c22bebffb898",
      "tree": "5c90b4fb9710d112860c71f518fb9df6cb27ed66",
      "parents": [
        "fda3b122dbfd86aa57f53c4318254034a1c62b2f"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 14:51:10 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 14:51:10 2026 -0600"
      },
      "message": "[wasm] Check the shape-plan allocation\n\nacquire_shape_plan() stored the module instance through the pointer\nthat hb_calloc() returned without checking it, so a failed allocation\nwas a null dereference. Fail the acquisition instead; _hb_wasm_shape()\nalready handles that.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "fda3b122dbfd86aa57f53c4318254034a1c62b2f",
      "tree": "5c0c95ea7da4092c571e356a466fc79c005f7a73",
      "parents": [
        "e3d80f5a06ee3fce458c1b4a6e4dcee30ae8e05b"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Tue Nov 24 12:33:51 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 12:33:51 2026 -0600"
      },
      "message": "[buffer] Document that pre-allocating invalidates the glyph arrays (#6895)\n\nhb_buffer_get_glyph_infos() and hb_buffer_get_glyph_positions() are\ndocumented to return pointers that stay valid as long as the buffer\u0027s\ncontents are not modified.  hb_buffer_pre_allocate() modifies nothing,\nand can still move both arrays: it goes through enlarge(), which\nreallocates them.  A caller holding either pointer across it is left\nwith a dangling one.\n\nSay so on all three functions.\n\nFound while aligning HarfRust\u0027s C API with this contract.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "e3d80f5a06ee3fce458c1b4a6e4dcee30ae8e05b",
      "tree": "5253d64ffa61c6fcb447bff353d5297280f4e66c",
      "parents": [
        "08ba5840e6e4171ba4aa768c1a3e950afa0cb3be"
      ],
      "author": {
        "name": "Simon Cozens",
        "email": "simon@simon-cozens.org",
        "time": "Tue Nov 24 18:33:13 2026 +0000"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 12:33:13 2026 -0600"
      },
      "message": "[wasm] Allow undefined export symbols at link (#6894)"
    },
    {
      "commit": "08ba5840e6e4171ba4aa768c1a3e950afa0cb3be",
      "tree": "fda648f8da34861a0240d1883f7db4df4ae158d5",
      "parents": [
        "cad7de9931e4bd36f2a148f61fa8b322d968ad1e"
      ],
      "author": {
        "name": "dependabot[bot]",
        "email": "49699333+dependabot[bot]@users.noreply.github.com",
        "time": "Tue Nov 24 12:32:51 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Tue Nov 24 12:32:51 2026 -0600"
      },
      "message": "Bump ossf/scorecard-action from 2.5.0 to 2.6.0 (#6885)\n\nBumps [ossf/scorecard-action](https://github.com/ossf/scorecard-action) from 2.5.0 to 2.6.0.\n- [Release notes](https://github.com/ossf/scorecard-action/releases)\n- [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md)\n- [Commits](https://github.com/ossf/scorecard-action/compare/fa7117db83c52d787ae5a89f350999701505d78e...23f22cd43608bae7a1f1fa2603d7314dee9538a5)\n\n---\nupdated-dependencies:\n- dependency-name: ossf/scorecard-action\n  dependency-version: 2.6.0\n  dependency-type: direct:production\n  update-type: version-update:semver-minor\n...\n\nSigned-off-by: dependabot[bot] \u003csupport@github.com\u003e\nCo-authored-by: dependabot[bot] \u003c49699333+dependabot[bot]@users.noreply.github.com\u003e"
    },
    {
      "commit": "cad7de9931e4bd36f2a148f61fa8b322d968ad1e",
      "tree": "a2ff816dce170d794a6010170d78e05fad6d80f4",
      "parents": [
        "e3aa9b970f555669a613391092b01ab724470358"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 16:18:26 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Mon Nov 23 16:18:26 2026 -0600"
      },
      "message": "[build] Export only the public API from MinGW DLLs (#6893)\n\nGNU ld and lld export every global symbol of a DLL unless a symbol\nis marked dllexport or a .def file lists the exports.  HarfBuzz\ngives them neither, and HB_INTERNAL is empty on MinGW, so the DLLs\nexport their internals: functions, data, and out-of-line copies of\ninline functions.  Built with GCC 15, libharfbuzz-0.dll exports\n1,649 symbols for a public API of 562, and\nlibharfbuzz-subset-0.dll 1,423 for an API of 31.\n\nThe autotools build limited the exports with -export-symbols, as\nthe comment at HB_INTERNAL said until now.  An early Meson build\ndid the same with vs_module_defs, until 4b4d5c295 dropped that for\nVisual Studio, which exports through HB_DLL_EXPORT.  Nothing was\nleft for MinGW.\n\nUse HB_DLL_EXPORT on MinGW as well: make HB_EXTERN dllexport there,\nand define the macro for shared MinGW builds in Meson and CMake.\nEach DLL then exports exactly the symbols in its generated .def\nfile.\n\nPassing the .def files to the linker again gives the same list, but\nfails to link when the build compiles part of the API out.  With\n-DHB_DISABLE_DEPRECATED, ld stops on \"cannot export\nhb_font_funcs_set_glyph_func: symbol not defined\" and 19 more like\nit.  dllexport exports what is there.\n\nMeson builds with default_library\u003dboth are left as they are: their\nstatic library is made of the same objects, and an export directive\nin those would follow them into whatever links them.  Cygwin is not\ntouched either.  There the other libraries import _hb_NullPool and\nfriends from libharfbuzz (HB_NO_VISIBILITY).\n\nTested with cross builds: GCC 15.2.1 for x86_64 and i686, Clang 21\nobjects linked by GNU ld, and CMake.  Each DLL exports exactly its\n.def list.  A -DHB_DISABLE_DEPRECATED build links and exports 20\nfewer.  default_library\u003dboth and Cygwin (GCC 13.4.0) export what\nthey did before.  The harfbuzz suite passes under Wine (106 tests),\nand the full suite passes on Linux (301 tests).\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "e3aa9b970f555669a613391092b01ab724470358",
      "tree": "76285a5596fe067ffd8fe77e58cb0e78ac4a8066",
      "parents": [
        "2d67dc94581957a94b5fcafbd860f43b0028717b"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 16:00:20 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Mon Nov 23 16:00:20 2026 -0600"
      },
      "message": "[test] Define _GNU_SOURCE before the first system header (#6892)\n\nFour test programs in src/ include a system header before hb.hh:\ntest-number.cc, test-repacker.cc, test-subset-instancer-solver.cc\nand test-vector.cc.  hb.hh defines _GNU_SOURCE, but a C library\nreads such macros once, in the first of its headers to be included,\nso in these four files the definition comes too late.\n\nOn Cygwin that breaks the build.  Its math.h declares sincos() and\nsincosf() only under _GNU_SOURCE, g++ 13.4.0 targeting Cygwin does\nnot predefine the macro, and the configure check finds both\nfunctions because it defines the macro itself.  hb-algs.hh then\ncalls them undeclared:\n\n  src/hb-algs.hh:356:3: error: \u0027sincosf\u0027 was not declared in this\n  scope; did you mean \u0027sinhf\u0027?\n\nEvery other file includes hb.hh first and compiles.  The Cygwin\npackage passes -D_GNU_SOURCE, which hides the problem.\n\nInclude hb.hh first in test-number.cc and\ntest-subset-instancer-solver.cc.  test-vector.cc keeps \u003cstring\u003e\nahead of hb.hh on purpose, for MemorySanitizer (e8a578bf0), and\ntest-repacker.cc needs the same order: with hb.hh first, MSan in\nCI\u0027s configuration reports an uninitialized std::string in it.\nThose two define the macro themselves instead.\n\nTested by cross-building for x86_64-pc-cygwin with default options:\nthe four files failed to compile before, and the whole tree builds\nnow.  The four tests pass under Wine with the Cygwin runtime, and\nnatively under MSan (Clang 21, CI\u0027s options).  The full Meson suite\npasses: 301 tests.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "2d67dc94581957a94b5fcafbd860f43b0028717b",
      "tree": "8bbd371cf5213d0873f0700e111dc0652f7e2331",
      "parents": [
        "19471282018cda0552155fe76a4a8a142e9e1b70",
        "2efb3af8b4dcacf8619d45c8cf5c18844a183fec"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 15:22:19 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Mon Nov 23 15:22:19 2026 -0600"
      },
      "message": "Merge pull request #6891 from harfbuzz/coverity-paint-false-positives\n\n[paint] Clear three Coverity false positives"
    },
    {
      "commit": "2efb3af8b4dcacf8619d45c8cf5c18844a183fec",
      "tree": "8bbd371cf5213d0873f0700e111dc0652f7e2331",
      "parents": [
        "b5d8ffa91b36733b1bf8911ccbfa8178ba5209c7"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 14:55:34 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 14:55:34 2026 -0600"
      },
      "message": "[paint] Bound the scan for the stop that starts a cut color line\n\nCoverity (CID 511726, INTEGER_OVERFLOW) flags\n\n  while (stops[first].offset \u003e from)\n    first--;\n\nin hb_color_stops_cut(): with first at zero, the decrement wraps.\n\nIt cannot get there.  The loop is only entered if\nfrom \u003e stops[0].offset, and nothing writes stops[0] in between (the\ncut at the other end writes stops[j] for j \u003e\u003d 1), so the test fails\nat the first stop at the latest.  That holds for color lines that\nbreak the function\u0027s contract too: unsorted, or with offsets that\nare not numbers.  The analyzer does not relate the two comparisons.\n\nStop at the first stop explicitly.  The test is redundant, and makes\nthe bound local to the loop instead of following from a comparison\nseveral lines up.\n\nTested with 20 million random color lines, a third of them unsorted\nand many with infinite and NaN offsets, in exact-size heap arrays,\nunder ASan and UBSan with -fsanitize\u003dunsigned-integer-overflow:\nnothing reported before or after this change, and the same run\nreports the wrap at once if the guarding \"if\" is removed.\n\nNo change in behavior.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "b5d8ffa91b36733b1bf8911ccbfa8178ba5209c7",
      "tree": "84cfa4454769270aedc5b8304bc70f41460b590b",
      "parents": [
        "f64ab716c487fc22b2c9d9907383adef020ddc6b"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 14:55:34 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 14:55:34 2026 -0600"
      },
      "message": "[raster] Use what charge_work() returns for an image\u0027s grid samples\n\nCoverity (CID 511725, CHECKED_RETURN) flags the call in the lambda\nthat charges for the grid samples a row of a shrunk image took, in\nhb_raster_paint_image(): every other caller of charge_work() tests\nwhat it returns.\n\nNothing was missed.  charge_work() returns false only if the budget\nwas already spent, and the lambda went on to return whether any is\nleft, which is false in that case and is the stricter test of the\ntwo: the samples are charged after they are taken, so the question\nis whether there is budget for another row, not whether this one\nmay go ahead.\n\nUse the return value as well, so that the call reads like the\nothers.\n\nNo change in behavior.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "f64ab716c487fc22b2c9d9907383adef020ddc6b",
      "tree": "a2ffefba4e593c002f0c1a746443e106a68e3db0",
      "parents": [
        "19471282018cda0552155fe76a4a8a142e9e1b70"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 14:55:34 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 14:55:34 2026 -0600"
      },
      "message": "[raster] Widen the grid sample count before multiplying\n\nCoverity (CID 511727, OVERFLOW_BEFORE_WIDEN) flags\n\n  grid_samples +\u003d nx * ny;\n\nin hb_raster_paint_image(): an unsigned product added to an int64_t.\n\nThe product cannot overflow: nx and ny come out of\nhb_raster_image_samples(), which returns at most 16, so it is at most\n256.  Multiply in 64 bits anyway, as the other charges in this file\ndo, which costs nothing and says so to the analyzer.\n\nNo change in behavior.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "19471282018cda0552155fe76a4a8a142e9e1b70",
      "tree": "340bd63cb00e87aaf4c6560b591ce4ddd74200ff",
      "parents": [
        "0342cc2b836e6b8b392826a705d66b0f0e864852",
        "49c29f80cb06805b13b8c82d3f75c8f2554a1d5f"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 14:19:18 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Mon Nov 23 14:19:18 2026 -0600"
      },
      "message": "[gpu] Reject non-finite curve points in the draw encoder (#6890)\n\n* Reject non-finite curve points in the draw encoder\n\nhb_gpu_draw_encode() checks that the extents fit int16 before\nquantizing, and counts on them to bound every curve point.  The\nextents are folded with hb_min/hb_max, which lose a NaN as soon as a\nfinite point follows it, so a NaN point passes the check and\nquantize() converts it to int16, which is undefined.\n\nA font can produce one: GPU paint draws clip glyphs through the paint\ntransform, which nested COLRv1 PaintTransforms can scale far enough\nthat a point on x \u003d\u003d y under a shear comes out as inf - inf.\n\nFail the draw on a non-finite point in acc_emit(), which every curve\npasses through, so the encode returns NULL as it already does for an\ninfinite point.\n\nTesting: the new test-gpu case fails without the fix and passes with\nit.\n\nAssisted-by: Claude\n\n* [gpu] Test the sum of a curve\u0027s coordinates for finiteness\n\nThe six isfinite() tests that keep non-finite points out of the\naccumulator run for every curve of every glyph: 25 instructions with\nGCC -O2, 28 with GCC -O3 and 36 with clang -O2, out of about 1,900\nthat a curve costs from outline to blob.\n\nThe sum of the six is not finite if any of them is not, so test that\ninstead, in 12 to 15 instructions.  Finite coordinates could only\nmake the sum infinite by overflowing double.  Points that come\nthrough the draw funcs are floats and cannot; a larger one would\nfail to encode anyway, and only the extents reported next to that\nfailure would differ.\n\nInstructions of util/hb-gpu-encode-all relative to main, over nine\nfonts (glyf, CFF, CFF2 and COLR):\n\n                 six tests           the sum\n  GCC -O2     +1.17 .. +1.48%    +0.56 .. +0.71%\n  GCC -O3     +1.27 .. +1.64%    +0.68 .. +0.89%\n  clang -O2   +1.83 .. +2.30%    +0.71 .. +0.89%\n\nTesting: blobs and extents, including the extents of failed encodes,\nare the same as with the six tests for 350,760 glyphs (up to 400 of\neach face of 1,519 test and fuzz fonts, at four scales, through both\nthe draw and the paint encoder) and for 600,000 random outlines,\n400,000 of them with NaN and infinite coordinates.  The new test-gpu\ncase pins the two ends: infinities of opposite sign, whose sum is\nNaN, are rejected, and the largest floats, whose sum is a finite\ndouble, are not.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n\n---------\n\nCo-authored-by: nussaiba shaikh \u003cnussaibah@bugqore.com\u003e\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "49c29f80cb06805b13b8c82d3f75c8f2554a1d5f",
      "tree": "340bd63cb00e87aaf4c6560b591ce4ddd74200ff",
      "parents": [
        "098a818b964cbf7e9af4b019ce9e09cceadbe023"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 14:12:54 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 14:12:54 2026 -0600"
      },
      "message": "[gpu] Test the sum of a curve\u0027s coordinates for finiteness\n\nThe six isfinite() tests that keep non-finite points out of the\naccumulator run for every curve of every glyph: 25 instructions with\nGCC -O2, 28 with GCC -O3 and 36 with clang -O2, out of about 1,900\nthat a curve costs from outline to blob.\n\nThe sum of the six is not finite if any of them is not, so test that\ninstead, in 12 to 15 instructions.  Finite coordinates could only\nmake the sum infinite by overflowing double.  Points that come\nthrough the draw funcs are floats and cannot; a larger one would\nfail to encode anyway, and only the extents reported next to that\nfailure would differ.\n\nInstructions of util/hb-gpu-encode-all relative to main, over nine\nfonts (glyf, CFF, CFF2 and COLR):\n\n                 six tests           the sum\n  GCC -O2     +1.17 .. +1.48%    +0.56 .. +0.71%\n  GCC -O3     +1.27 .. +1.64%    +0.68 .. +0.89%\n  clang -O2   +1.83 .. +2.30%    +0.71 .. +0.89%\n\nTesting: blobs and extents, including the extents of failed encodes,\nare the same as with the six tests for 350,760 glyphs (up to 400 of\neach face of 1,519 test and fuzz fonts, at four scales, through both\nthe draw and the paint encoder) and for 600,000 random outlines,\n400,000 of them with NaN and infinite coordinates.  The new test-gpu\ncase pins the two ends: infinities of opposite sign, whose sum is\nNaN, are rejected, and the largest floats, whose sum is a finite\ndouble, are not.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "098a818b964cbf7e9af4b019ce9e09cceadbe023",
      "tree": "2a2b30ddd7028eb0134eacadc6ad033860674f7c",
      "parents": [
        "0342cc2b836e6b8b392826a705d66b0f0e864852"
      ],
      "author": {
        "name": "nussaiba shaikh",
        "email": "nussaibah@bugqore.com",
        "time": "Fri Nov 20 22:18:36 2026 +0530"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 14:10:32 2026 -0600"
      },
      "message": "Reject non-finite curve points in the draw encoder\n\nhb_gpu_draw_encode() checks that the extents fit int16 before\nquantizing, and counts on them to bound every curve point.  The\nextents are folded with hb_min/hb_max, which lose a NaN as soon as a\nfinite point follows it, so a NaN point passes the check and\nquantize() converts it to int16, which is undefined.\n\nA font can produce one: GPU paint draws clip glyphs through the paint\ntransform, which nested COLRv1 PaintTransforms can scale far enough\nthat a point on x \u003d\u003d y under a shear comes out as inf - inf.\n\nFail the draw on a non-finite point in acc_emit(), which every curve\npasses through, so the encode returns NULL as it already does for an\ninfinite point.\n\nTesting: the new test-gpu case fails without the fix and passes with\nit.\n\nAssisted-by: Claude\n"
    },
    {
      "commit": "0342cc2b836e6b8b392826a705d66b0f0e864852",
      "tree": "8a6952395057594e5241884763662cdaf7ce3a0e",
      "parents": [
        "ce0a1235ae7ea7a8e281e2fa91f8237f4526be92"
      ],
      "author": {
        "name": "nussaibah shaikh",
        "email": "nussaibah@bugqore.com",
        "time": "Mon Nov 23 18:38:23 2026 +0530"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Mon Nov 23 07:08:23 2026 -0600"
      },
      "message": "Clamp instanced glyf coordinates before integer conversion (#6887)\n\nWhen instancing a TrueType variable font, the glyf subsetter\nre-encodes each glyph\u0027s gvar-shifted points, component offsets and\nphantom metrics by converting the float coordinate straight to an\ninteger. gvar deltas are unbounded (int16 WORD or int32 LONGS runs\nsummed in float), so a pinned axis can push a coordinate past the\ndestination integer range. That float-to-integer conversion is\nundefined behavior (UBSan float-cast-overflow).\n\nCompositeGlyphRecord::compile_with_point writes the WORD component\noffset to int16 and the byte-branch value to int;\nSimpleGlyph::compile_bytes_with_deltas converts each point to int\nbefore delta encoding; Glyph::update_mtx converts the phantom-derived\nadvances and side bearings. A spec-legal 16-bit offset of 30000 plus\na 10000 delta already overflows the int16 cast; the int sites need a\n32-bit LONGS delta, which the gvar decoder accepts.\n\nClamp each conversion with hb_clamp_to, the same idiom the\ncvar/MVAR/hmtx instancer paths already use. For valid fonts every\ncoordinate is well within range, so the clamp is a no-op and instanced\noutput is byte-identical (verified across several in-tree variable\nfonts at multiple pins).\n\nReached from hb_subset_or_fail with an axis pinned away from its\ndefault. Added a regression test that instances a crafted font which\ntriggers all four sites; it aborts under the asan-ubsan CI job without\nthe fix and passes with it. Full meson test suite passes under ASan\nand UBSan."
    },
    {
      "commit": "ce0a1235ae7ea7a8e281e2fa91f8237f4526be92",
      "tree": "cec26c680ed06a4acf498a32bd1a9797ce35706b",
      "parents": [
        "2ea5ce51799c31c20cbcf0cf0a0a6589a8eaf7e9"
      ],
      "author": {
        "name": "dependabot[bot]",
        "email": "49699333+dependabot[bot]@users.noreply.github.com",
        "time": "Mon Nov 23 10:17:42 2026 +0000"
      },
      "committer": {
        "name": "Khaled Hosny",
        "email": "khaled@aliftype.com",
        "time": "Mon Nov 23 13:45:36 2026 +0200"
      },
      "message": "Bump github/codeql-action/upload-sarif from 4.39.3 to 4.39.4\n\nBumps [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) from 4.39.3 to 4.39.4.\n- [Release notes](https://github.com/github/codeql-action/releases)\n- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)\n- [Commits](https://github.com/github/codeql-action/compare/33d7b85da1a04171e211befe2c739303b9a4c066...1bd86f2fdb4b86187fa4059f16f31a3202acc9ea)\n\n---\nupdated-dependencies:\n- dependency-name: github/codeql-action/upload-sarif\n  dependency-version: 4.39.4\n  dependency-type: direct:production\n  update-type: version-update:semver-patch\n...\n\nSigned-off-by: dependabot[bot] \u003csupport@github.com\u003e"
    },
    {
      "commit": "2ea5ce51799c31c20cbcf0cf0a0a6589a8eaf7e9",
      "tree": "299b60349f25d7f71775fcaff7cdec262af87a18",
      "parents": [
        "e229fae55dff730fa59bc57f1bc94cc14a3eb25c"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 03:48:16 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Mon Nov 23 03:48:16 2026 -0600"
      },
      "message": "[VARC] End the drawing when the nesting or composite limit is met (#6883)\n\nA composite nested 64 levels deep, or the 16,385th composite of one\ndrawing, was skipped, and the drawing went on with what came next.\nA font built to meet the limit can make that a long walk.  The font\nof oss-fuzz timeout 6747513078743040 meets the depth limit at the\n116th call of VARC::get_path_at() and goes on to make 32,891 of them\nper drawing, 15,054 of which stop at the limit, spending 1.65 million\nunits of budget on a glyph that is wrong whichever part of it gets\ndrawn.\n\nSpend the session budget instead, as running out of it does: nothing\nmore is drawn, by this glyph or by what the renderer does after it in\nthe same session, and what was drawn before stays.  glyf already\nfails the whole glyph at the same two limits.  A cycle of composites\nis still only skipped.\n\nNo font should come near the limits: the VARC fonts in the tests nest\n2 levels deep, and a CJK one of 1,128 glyphs nests 3.\n\nThat timeout was fixed by 983020f99, 79cf23815 and 457dea58d.  At\n276cf4a74, the revision it was reported at, this change alone takes\nthe testcase from 0.66 s to under 0.01 s.\n\nThe test font chains seventy composites.  A glyph that holds the chain\nand then a leaf drew the leaf before this change and draws nothing\nnow; fifty levels of the chain still draw.\n\nTested with the whole suite, and with test-draw-varc and the testcase\nthrough the raster, gpu, vector and shape fuzzers under ASan and\nUBSan.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "e229fae55dff730fa59bc57f1bc94cc14a3eb25c",
      "tree": "29a3df24264e233a266e4bac8f2f327f63b9947e",
      "parents": [
        "bf42e04dc058a389c440fd8d66bc36d2e8b6006c"
      ],
      "author": {
        "name": "Souvikdebroy",
        "email": "46744483+Souvikdebroy@users.noreply.github.com",
        "time": "Mon Nov 23 15:05:16 2026 +0530"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Mon Nov 23 03:35:16 2026 -0600"
      },
      "message": "[wasm-rust] Free host-allocated memory in the Rust toolkit (#6884)\n\nbuffer_copy_contents, font_copy_glyph_outline and feature_copy_contents\nallocate inside the module instance, which HarfBuzz caches per face and\nreuses across shape calls. The toolkit never called the matching\nbuffer_contents_free / glyph_outline_free / features_free, so the 2MB\nWASM heap is eventually exhausted: shaping fails (falls back) or\nget_outline() silently yields no outline.\n\nVerified with a loop harness shaping 51 chars per call on main:\n  Buffer::from_ref:  first failure at call 1024, 19/20000 failed -\u003e 0\n  Font::get_outline: first failure at call 3235, 6/20000 failed  -\u003e 0\n  Features:          first failure at call 87338, 3/300000 failed -\u003e 0\nShaped output is unchanged; cargo fmt/clippy show no new findings.\n\nAssisted-by: GitHub Copilot"
    },
    {
      "commit": "bf42e04dc058a389c440fd8d66bc36d2e8b6006c",
      "tree": "a659f7f07a8f688ce05654bcc9f58bc4b3e0307d",
      "parents": [
        "77814c49ecb8d4fe893d377862f00033bde19e4d"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 02:41:40 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Mon Nov 23 02:41:40 2026 -0600"
      },
      "message": "[gpu] Accept a single quadratic by how far the cubic leaves it (#6882)\n\nhb_gpu_cubic_approx_quadratic() tried the quadratic of the cubic\u0027s two\nend tangents and tested it at equal parameters: how far apart the two\nare at the same t.  A cubic runs along that quadratic at another pace,\nso most of that distance is along the curve and costs nothing: of the\ncubics of three fonts, 2.4% passed at the tolerance of 0.5, while a\nthird are within 0.5 of their quadratic as sets of points.\n\nWith q where the tangents meet, a \u003d q - c0, z \u003d c3 - q, and the\ncubic\u0027s control points at c1 \u003d c0 + l1 a and c2 \u003d c3 - l2 z, the cubic\nB is the quadratic Q at another parameter plus an offset along the\nparabola\u0027s axis:\n\n  B(t) \u003d Q(tau(t)) + rho(t) (a - z)\n  tau(t) \u003d 3 t (1-t)^2 l1/2 + 3 t^2 (1-t) (1 - l2/2) + t^3\n  rho(t) \u003d 3 t^2 (1-t)^2 (l1 + l2 - 4/3 + 3 e(t)^2)\n  e(t)   \u003d (1-t) (l1/2 - 1/3) + t (1/3 - l2/2)\n\nan identity of polynomials.  For l1 and l2 from 0 to 2, tau is a\nBezier function with control values from 0 to 1, so it takes [0,1]\nonto [0,1], and each curve is within max |rho| |a - z| of the other:\nat most 3/16 max |l1 + l2 - 4/3 + 3 e^2| |a - z|.  A single quadratic\nfits when the two handles add up to 4/3 of the way to where the\ntangents meet, however that is split; at equal parameters it took 2/3\neach.\n\nTest that bound instead, in closed form.  The recursive test and its\ndepth cap go, and so does the check that skipped it for a long third\ndifference, which bounded the distance at equal parameters.\n\nA cubic with a control point on its end point, whose tangent there is\ntaken toward the other control point, now comes out as one quadratic\nwith that tangent when it is small enough: 281 of the 862 such cubics\nin the three fonts.\n\nOf the 77,533 cubics, 24.1% become one quadratic, and quadratics per\ncubic go from 2.84 to 2.59.  15 cubics that passed the old test take\ntwo now.\n\nTesting: the identity checked exactly, in rational arithmetic on a\ngrid that covers its degree; the bound against a measured two-sided\ndistance on 18,000 cubics, from fonts and made to cover the range of\nhandles, zero-length handles, far tangent intersections and extreme\nscales: never below it.  Blobs of faces without cubics are\nbyte-identical (745 fonts, 889,000 glyphs); of 235,312 glyphs in\nCFF/CFF2 faces 87,461 change, for 1.6% fewer bytes in all.\nutil/hb-gpu-encode-all, instructions, five interleaved rounds against\nmain:\n\n  NotoSansSC-Regular.otf       -5.61%\n  SourceCodePro-Regular.otf    -1.62%\n  STIXTwoMath-Regular.otf      -1.30%\n  NotoSansCJK-VF.ttc           -2.29%\n  NotoSans[wght].ttf            0.00%  (TrueType: no cubics)\n\nmeson test: 301/301.  test-gpu (34 subtests) and the fuzzer seeds\nunder ASan and UBSan: pass.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "77814c49ecb8d4fe893d377862f00033bde19e4d",
      "tree": "5d339292ca4609907dec516bb63050b04e4b6f0d",
      "parents": [
        "e6ce4cc7b9d0a23394827bb67eca26caf6283d65"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Mon Nov 23 00:51:52 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Mon Nov 23 00:51:52 2026 -0600"
      },
      "message": "[gpu] Do not try a single quadratic that the third difference rules out (#6881)\n\nA quadratic with the end points of a cubic gets at least sqrt(3)/36 of\nthe cubic\u0027s third difference away from it, at equal parameters,\nwherever its control point is: along the third difference d3 the two\ndiffer by d3 * u * (1-u) * (2*u - 1 + s) / 2, with s set by the\ncontrol point, and the largest value of that is least for s \u003d 0.  So\nno single quadratic fits a third difference of more than 36/sqrt(3) \u003d\n20.78 times the tolerance.\n\nhb_gpu_cubic_to_quadratics() tried the single quadratic for every\ncubic: intersect the end tangents, then run the recursive fit test.\nTake the third difference first, which the count of quadratics needs\nanyway, and skip the attempt above 21 times the tolerance.  The margin\nis far more than the fit test can be wrong, so no output changes.\nfontTools does the same in\nhttps://github.com/fonttools/fonttools/pull/4452\n\nTesting: the blobs of the first 3,000 glyphs of every face of 1,190\nfonts (the test and fuzzing fonts plus four system fonts; 1,124,313\nglyphs, 235,312 of them in CFF/CFF2 faces) are byte-identical before\nand after.  util/hb-gpu-encode-all, instructions, five interleaved\nrounds against main:\n\n  NotoSansSC-Regular.otf       -1.96%\n  SourceCodePro-Regular.otf    -2.20%\n  STIXTwoMath-Regular.otf      -2.32%\n  NotoSansCJK-VF.ttc           -1.77%\n  NotoSans[wght].ttf            0.00%  (TrueType: no cubics)\n\nmeson test: 301/301.  test-gpu under ASan and UBSan: 33 subtests.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "e6ce4cc7b9d0a23394827bb67eca26caf6283d65",
      "tree": "f9002a1aa09e217d753474622a5210dfd727b436",
      "parents": [
        "0c72f9596488010bbb2aa15ff1d37d12f17cb0dc"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sun Nov 22 22:37:58 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sun Nov 22 22:37:58 2026 -0600"
      },
      "message": "[gpu] Compute how many quadratics a cubic takes instead of trying (#6880)\n\nThe spline of n quadratics that hb-gpu-cu2qu.hh builds for a cubic was\nbuilt for n \u003d 2, 3, ... in turn, and each quadratic tested against its\npiece of the cubic, until all fit.\n\nHow far that spline is from the cubic does not depend on the cubic\nbut for the length of its third difference.  With d the third\ndifference over n^3, the off-curve point of piece k is the one of\nleast error for the piece plus d (1 - 2k/(n-1)) / 4, which puts the\non-curve point between pieces k-1 and k at d g(k) from the cubic,\ng(k) \u003d (n-2k) / (4(n-1)).  The difference between quadratic k and its\npiece at parameter u is then d times\n\n  g(k) - u (2g(k) + k/(n-1)) + u^2 (1 + g(k) + g(k+1) + k/(n-1)) - u^3\n\nwith g(0) \u003d g(n) \u003d 0: one polynomial for each n and k.  The largest\nvalue over the pieces, reached in the first or the second, is 4/27\nfor n \u003d 2 and 27/128 for n \u003d 3, and grows to 1/4 + sqrt(3)/36 \u003d\n0.298.  So n quadratics fit when the third difference times that is\nwithin the tolerance times n^3.\n\nTake the least such n, build that spline once, and drop the test of\neach quadratic and the loop over n.  The single quadratic through the\nintersection of the end tangents is tried first, as before; that one\ndoes depend on the cubic.\n\nChecked outside HarfBuzz: the identity holds to 8e-15 on 2,000 random\ncubics, the largest value has the closed form used here for every n\nfrom 2 to 1,999, and on 200,000 random cubics at four tolerances the\nn that fontTools\u0027 cu2qu arrives at by trying equals this one in all\n196,545 that take more than one quadratic.\n\nCompared before and after, the draw and paint blobs of up to 400\nglyphs of each font under test/ and four more, at four scales: the\n219,396 glyph and scale pairs of the 745 fonts without CFF or CFF2\nare identical, and so are all but 3 of the 137,440 pairs of the 445\nfonts with one.  Those three glyphs have cubics whose third\ndifference is exactly at a limit, 64 for n \u003d 3 at this tolerance.\nThe recursive test, which stops at depth 8, rejected the tie; the\nformula accepts it, for one quadratic less.\n\nutil/hb-gpu-encode-all, base and new interleaved over 7 rounds:\n13.6% to 18.8% fewer instructions on four CFF and CFF2 fonts\n(NotoSansSC, SourceCodePro, STIXTwoMath, NotoSansCJKtc-VF), CPU time\n11.8% to 15.9% less; a TrueType font is within 0.1%.\n\nThe whole test suite passes; the gpu test and the gpu fuzzer over the\nseeds also pass under clang\u0027s ASan and UBSan.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "0c72f9596488010bbb2aa15ff1d37d12f17cb0dc",
      "tree": "af1e288d036e63f86e67be312868a5ac142b58da",
      "parents": [
        "457dea58d786ff5fc20bb6b437e76d2d729d5845"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sun Nov 22 22:00:25 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sun Nov 22 22:00:25 2026 -0600"
      },
      "message": "[gpu] Convert cubics to quadratic splines, as fonttools cu2qu does (#6879)\n\nhb-gpu-cu2qu.hh took the single-quadratic step of fonttools\u0027 cu2qu,\nthe quadratic through the intersection of the cubic\u0027s end tangents,\nand applied it recursively: when that did not fit, the cubic was\nhalved and each half tried again, ten levels deep.\n\nThat costs curves in three ways.  The error test compares the two\ncurves at equal parameters, and a quadratic through the tangent\nintersection runs along the cubic at another speed, so the test\nreports several times the distance between them: three times, for a\nquarter circle.  Halving gives 2, 4 or 8 pieces where 3 or 5 would\ndo.  And a control point on its end point leaves that end no tangent\nto intersect, so the fit failed at every level down that end of the\ncubic, for ten more curves and a line: 3,473 pieces of Noto Sans SC\nreached the depth limit, and 17,988 of Noto Sans CJK TC.\n\nDo what cu2qu does past one quadratic.  Cut the cubic into n equal\npieces, give each an off-curve point between the two that its end\ntangents suggest, and let consecutive quadratics meet halfway between\ntheir off-curve points.  The spline is smooth, and it leaves the ends\nof the cubic along the cubic\u0027s own tangents, as the output did\nbefore.  Each quadratic is tested against its piece with the same\nexact test, now with the offsets of its end points, and n goes up\nuntil all fit.  It starts at the least n that can: at equal\nparameters no quadratic comes closer to a cubic than 1/32 of its\nthird difference.  For the single quadratic, a control point on its\nend point takes the direction from the other control point.\n\nA cubic that would take more than 64 quadratics is far beyond what\nthe encoder can store, and is emitted as its control polygon.  That\nis known from its third difference before any work, so the check of\nsplit points that the recursion needed is gone.\n\nWith one em to the font\u0027s own units, before and after:\n\n                        curves per cubic  blob bytes  instructions\n  Noto Sans SC           4.55 -\u003e 2.62      -17.4%       -22.7%\n  Source Code Pro        4.22 -\u003e 2.59      -13.9%       -18.2%\n  STIX Two Math          5.79 -\u003e 2.99      -23.5%       -30.8%\n  Noto Sans CJK TC VF    5.59 -\u003e 3.04      -17.9%       -22.8%\n\nInstructions are those of util/hb-gpu-encode-all, base and new\ninterleaved over 7 rounds; a TrueType and a COLRv1 font are within\n0.1%.  The curves now use the tolerance; the old ones stayed well\ninside it, since the test over-reported their distance.\n\nMeasured with counters over the 1.67 million cubics of those fonts:\nthe largest distance between a quadratic and its piece at equal\nparameters is 0.4998, against the tolerance of 0.5; the tangents at\nall 3.2 million joints and 3.3 million cubic ends agree to 0.000\ndegrees; no cubic takes more than 10 quadratics.  Random cubics with\ncontrol points across the whole range the encoder can store take up\nto 34.\n\nCompared before and after, the draw and paint blobs of up to 400\nglyphs of each font under test/ and four more, at four scales: the\n219,396 glyph and scale pairs of the 745 fonts without CFF or CFF2\nare identical.  Of the 137,440 pairs of the 445 fonts with one,\n79,731 change; none changes between encoding and failing to, and\ntheir blobs are 57.1% smaller in all.  At 30 units per em, where a\ncubic is a few units long, 5,133 blobs are larger, by 160 bytes at\nmost, and the total is 0.8% smaller.\n\nAdds a test of a cubic with a control point on its end point, which\nfails without the change.  The whole test suite passes; the gpu test\nand the gpu fuzzer over the seeds also pass under clang\u0027s ASan and\nUBSan.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "457dea58d786ff5fc20bb6b437e76d2d729d5845",
      "tree": "78da56226ce5352f93523e85c33f89f90c02f6c7",
      "parents": [
        "79cf238152201da786f7fcc352e3891315ccfc38"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sun Nov 22 21:25:08 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sun Nov 22 21:25:08 2026 -0600"
      },
      "message": "[limits] Take the glyph work budget back to 1\u003c\u003c24 (#6878)\n\nc4d061380 raised HB_BUDGET_GLYPH from 1\u003c\u003c24 to 1\u003c\u003c25 for headroom.\nIt measured the outline work of every glyph of Bitcount Ink at 28\nlocations of its design space at 2,058,912 units at most, which is\n8.1 times less than 1\u003c\u003c24 and 16.3 times less than 1\u003c\u003c25.\n\nThe budget is also what a font can make a session spend, and time\ngoes with it.  Two fonts from the fuzzers have since taken over 60\nseconds on the bot by spending whole budgets: one in hb-raster, whose\nregression ClusterFuzz put at the raise (#6876), and one in hb-gpu\n(#6875).  Here a whole budget costs 0.3 to 0.45 seconds of curve\nflattening in hb-raster and 0.8 of cubic conversion in hb-gpu, and\nhb-gpu-fuzzer draws and paints up to 16 glyphs per input.\n\nTake it back to 1\u003c\u003c24, which halves that.  Eight times the heaviest\nglyph known is ample.  Measured again here at 1024 pixels per em,\nover every glyph in hb-raster and hb-gpu: Bitcount Grid Double4 Color\nspends 1,281,108 at most with every axis at an extreme, and Noto\nCOLRv1 433,826.\n\nTesting: the whole test suite passes.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "79cf238152201da786f7fcc352e3891315ccfc38",
      "tree": "be4d5dbd15fc9657ee77865ef4c36ff8e82b8d8f",
      "parents": [
        "983020f990744d9b47601a0ab296abc7732b51df"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sun Nov 22 21:24:50 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sun Nov 22 21:24:50 2026 -0600"
      },
      "message": "[raster] End an outline at a curve that 12 halvings do not flatten (#6877)\n\nThe flatteners halved a curve up to 16 times and then took the chord\nof whatever was left.  A curve too large to flatten that way, as when\na transform puts an outline astronomically far away, went through all\n65,535 subdivisions.  Where there is a clip box the part outside it\nis cut short, but a draw with no extents set has none.  Few or none\nof the segments became an edge there, so the edge cap did not stop\nit, and such curves spent the whole outline budget of the session:\n0.39 to 0.47 seconds here.\n\nHalve 12 times at most, and when a curve is still not flat then, end\nthe outline: leave it no edges to add, as when the cap on them is\nreached, so that the curves after it are skipped and what was\naccumulated renders as it is.  Such a curve now costs 12\nsubdivisions, and the largest one still drawn 4,095.\n\nOne more halving flattens a curve four times the size.  The glyphs of\nNoto Sans (quadratics) and Source Code Pro (cubics) take at most 6 at\n1,000 pixels per em, 8 at 8,192, 9 at 65,536 and 11 at 1,048,576.  At\nfour times that, float coordinates no longer tell a flat curve from a\nbent one, and every curve went the full 16.\n\nCompared before and after: the draw and paint images and their\nextents of up to 200 glyphs of each of the 1,186 loadable fonts under\ntest/ at 12, 30, 64 and 300 pixels per em (249,060 glyph and size\npairs); of 40 glyphs of four fonts at 8,192, 65,536 and 1,048,576\npixels per em; and of 40,000 random outlines of lines, quadratics and\ncubics with coordinates up to 3e4, with and without fixed extents.\nAll are identical but 9 draws of the font of the last fuzzer timeout,\nwhose outline is of the kind this ends.\n\nutil/hb-raster-all, base and fix interleaved over 7 rounds, on a\nTrueType, two CFF and a COLRv1 font at 64 pixels per em and the\nTrueType one at 1000: 0.02% to 0.38% fewer instructions, CPU time\nwithin 1.2% either way.\n\nAdds a test of the draw funcs, which fails without the change.  The\nwhole test suite passes; the raster test and the raster fuzzer over\nthe seeds also pass under clang\u0027s ASan and UBSan.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "983020f990744d9b47601a0ab296abc7732b51df",
      "tree": "941fab58cf5fa63f16ad7d2c2326782ef284b3df",
      "parents": [
        "fe8f739f20f5e7906c7f73c6f83918f05998690b"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sun Nov 22 20:52:44 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sun Nov 22 21:15:42 2026 -0600"
      },
      "message": "[raster] Do not subdivide a curve whose flatness is NaN\n\nThe flatteners subdivide a curve until its deviation is within the\nflatness threshold, to a depth of 16.  The test was written as\n\"deviation \u003c\u003d threshold\", which is false for NaN, and so are the\ntests against the clip box.  A quadratic or cubic with a NaN\ncoordinate was therefore neither outside the clip box nor ever flat,\nand took the 65,535 subdivisions of the depth cap.\n\nIn the fuzzer\u0027s font some 60 nested VARC components multiply their\ntransforms into infinity and NaN.  Of the 1,134 quadratics its glyph\ndraws, 1,018 went to the depth cap: 66.6M subdivisions, and as many\nsegments that all round to the same y and are dropped as horizontal,\nso the edge cap never counted one.  Only the outline budget stopped\nit, in both the draw and the paint session.  That budget went from\n1\u003c\u003c24 to 1\u003c\u003c25 in c4d061380, which is when the font started to take\nover 60 seconds on the fuzzing bot; here it takes 0.64.\n\nWrite the tests as \"not (deviation \u003e threshold)\", which reads NaN as\nflat, and the font takes 0.02 seconds.  A curve through infinity gets\na NaN deviation in the half that is all infinity, so it costs at most\none subdivision per level.\n\nFor a deviation that is a number the two forms are the same test.\nCompared before and after: the draw and paint images and their\nextents of up to 200 glyphs of each of the 1,186 loadable fonts under\ntest/ at 12, 30, 64 and 300 pixels per em (249,060 glyph and size\npairs), and 40,000 random outlines of lines, quadratics and cubics\nwith coordinates from 1 to 1e30, with and without fixed extents.  All\nare identical but 12 draws of the fuzzer\u0027s own font, which ran out of\nbudget before and now render what is left of the outline.  Of 15,139\nrandom outlines with NaN and infinity among their coordinates, which\nhave no image to preserve, 1,993 render differently; none spends more\nbudget.\n\nutil/hb-raster-all, base and fix interleaved over 7 rounds, on a\nTrueType, two CFF and a COLRv1 font at 64 pixels per em and the\nTrueType one at 1000: instructions within 0.15% and CPU time within\n1% either way.\n\nAdds the fuzzer\u0027s font as a seed and a test of the draw funcs, which\nfails without the fix.  The whole test suite passes; the raster test\nand the raster fuzzer over the seeds also pass under clang\u0027s ASan and\nUBSan.\n\nFixes: https://issues.oss-fuzz.com/issues/588680064\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "fe8f739f20f5e7906c7f73c6f83918f05998690b",
      "tree": "3e2c1071ee48cb8b58317f00af21d74450f6f8c4",
      "parents": [
        "6386c89d62753c951a67e77e99dce45501b1a5ac"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sun Nov 22 20:38:17 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sun Nov 22 20:38:17 2026 -0600"
      },
      "message": "[gpu] Stop splitting a cubic at a point the encoder cannot store (#6875)\n\nhb_gpu_cubic_to_quadratics() splits a cubic that fits no quadratic up\nto ten levels deep: 2,047 nodes, each with a fit test, and 1,024\nlines.  A cubic far outside the coordinates the encoder can store\n(16 bits, in quarter units) fits none at any depth, so it took the\nwhole subdivision, although hb_gpu_draw_encode() rejects the outline\nwhatever is emitted for it.\n\nIn the fuzzer\u0027s font, nested PaintSkewAroundCenter transforms grow to\nbetween 1e7 and 1e32, and a CFF2 glyph of some 300 segments is the\nclip of many layers under them.  Each draw of that glyph ran 131K nodes\nbefore the 65,536-curve cap failed it.  The glyph\u0027s charstring also\nends in an error, so the draw counts as failed and the layer is\nskipped as one without an outline, which does not make the paint\nunsupported; the next layer then draws the glyph again.  That\nhappened 368 times before the work budgets ran out: 48M nodes and\n292M fit-test nodes, 3.4 seconds for a 3.9 KB font here and over 60\non the fuzzing bot.\n\nA split point is a point of the outline however the two halves are\nsplit further.  So when the encoder cannot store it, or it is NaN,\nemit the control polygons of the halves, which pass through it, and\nstop.  A cubic that is out of reach now costs a few nodes, and the\nfont above takes 0.02 seconds.\n\nAn outline the encoder accepts has no such split point, so it is\nencoded as before.  Compared before and after: the draw and paint\nblobs and their extents of up to 400 glyphs of each of the 1,185\nloadable fonts under test/ at four scales (upem, 30, 7 x upem and\n64 x upem; 350,396 glyph and scale pairs), and of 200,000 random\noutlines of lines, quadratics and cubics with coordinates from 1 to\n1e38.  All are identical, and the same outlines fail to encode.  What\nchanges is the extents hb_gpu_draw_encode() reports next to a failed\nencode, in 23,229 of the 68,310 font cases that fail: where the\nsubdivision stopped, they bound the control polygons, which contain\nthe curve.\n\nutil/hb-gpu-encode-all, base and fix interleaved over 7 rounds, takes\n0.33% to 0.45% more instructions on four CFF and CFF2 fonts\n(NotoSansSC, SourceCodePro, STIXTwoMath, NotoSansCJKtc-VF), with CPU\ntime within 0.3% either way.  A TrueType and a COLRv1 font, which\nhave no cubics, are within 0.1%.\n\nAdds the fuzzer\u0027s font as a seed and a test of the draw encoder.  The\nwhole test suite passes; the gpu test and the gpu fuzzer over the\nseeds also pass under clang\u0027s ASan and UBSan.\n\nClusterFuzz testcase 5907835161214976 (hb-gpu-fuzzer timeout).\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "6386c89d62753c951a67e77e99dce45501b1a5ac",
      "tree": "80af15b7cf1994b5a5aabf868ea911bb37a109af",
      "parents": [
        "ae4d826b7ec643fa36aea868cd12edcc04e5f386"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sun Nov 22 18:46:56 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sun Nov 22 18:47:25 2026 -0600"
      },
      "message": "[buffer] Increase message string buffer len\n\nWe now message the whole ligature components and whatnot.\n"
    },
    {
      "commit": "ae4d826b7ec643fa36aea868cd12edcc04e5f386",
      "tree": "f0155d97dd6ddc4ea5eb38f299ba0d51810aa44d",
      "parents": [
        "276cf4a74ab5d242a82a2b2ea1921b6c5af0a6ed"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sun Nov 22 18:40:19 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sun Nov 22 18:40:19 2026 -0600"
      },
      "message": "[ft] Paint no COLR linear gradient whose P1 or P2 is at its P0 (#6874)\n\nCOLR says of a linear gradient: \"If either point p1 or p2 is the same\nas point p0, the gradient is ill-formed and must not be rendered.\"\nSince 295b40d3b the OpenType font functions hand no such gradient to\nthe paint callbacks.  The FreeType ones dispatch FreeType\u0027s own paints\nand still did.  With P2 at P0 the backends then paint a gradient along\nthe line from P0 to P1: glyph j of colr-color-line-no-length.ttf was a\nsquare from red to blue with `--font-funcs\u003dft`, and nothing with\n`--font-funcs\u003dot`.\n\nCompare the anchors as FreeType gives them, which is with their\nvariation deltas applied, and hand no such gradient on.\n\nThe fontations font functions are not changed, and cannot be from\nhere: the COLR traversal of read-fonts, which they paint with, makes\nsuch a gradient a fill of its first stop\u0027s color before HarfBuzz gets\nit, so glyph j is a red square with `--font-funcs\u003dfontations`.\n\nTest: test-paint counts the linear gradients that get to the paint\ncallbacks, with the OpenType and the FreeType font functions, for\nglyphs of that font whose anchors are apart, whose P1 is at P0, whose\nP2 is at P0, and two that vary, at both ends of the font\u0027s axis, where\nthe deltas move P2 onto P0 and away from it.  It fails without the\nchange, with FreeType, and passes with it; FreeType 2.13.3 here.  The\nwhole suite passes.\n\n`hb-vector` writes the same SVG for those glyphs with both font\nfunctions now; librsvg showed the one for glyph j with\n`--font-funcs\u003dft` on 37636 of 40000 pixels, and shows it on none.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "276cf4a74ab5d242a82a2b2ea1921b6c5af0a6ed",
      "tree": "7faedcdf4b8c4b182628dbbc5206356ed38e98d7",
      "parents": [
        "ce1ecd7c08210383bd5f92da0374418db27c2a6c",
        "ba5d175c10929358e3ac5ff046fd7f6f44b2083f"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 17:07:01 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sat Nov 21 17:07:01 2026 -0600"
      },
      "message": "Merge pull request #6873 from harfbuzz/vector-pdf-group-bounds\n\n[vector] Make the box of a PDF form hold what the form paints"
    },
    {
      "commit": "ba5d175c10929358e3ac5ff046fd7f6f44b2083f",
      "tree": "7faedcdf4b8c4b182628dbbc5206356ed38e98d7",
      "parents": [
        "8c9a2a719375edc5c24838757d0091565d084366"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 15:32:28 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 16:54:03 2026 -0600"
      },
      "message": "[vector] Make the box of a PDF form hold what the form paints\n\nThe PDF writer puts groups in Form XObjects: a group that is popped,\nthe two groups that a Porter-Duff mode composites and the inverse of\na mask it composites through, the root when something in it blends,\nand the periods of a gradient that repeats.  What a form paints is\nclipped to the form\u0027s /BBox, and every one had the same box, from\n-32767 to 32767 in the form\u0027s own space.  A form is painted under the\ntransforms that were open where its group was, so what it holds can\nbe anywhere in that space: two squares at x \u003d 40000, each under a\ntranslation of its own, lost the group in every composite mode, plain\nSRC_OVER included.  The soft mask of a linear or radial gradient with\nalpha had a box of that size around a point of the gradient, and\nlost what the gradient is padded with further away than that.\n\nRecord what each paint operator paints, as the SVG writer does: a\nfill within what the open clips let through, a glyph or an image\nwithin its own extents too, and a group that is popped or composited\nwithin the bounds of what went into it.  A form\u0027s box is then made\nbigger where hb_vector_paint_t::box_around() those bounds reaches\npast it, in the space that the form is painted in: the current one\nfor a group that is popped and for the periods of a gradient, and\nthe one that the group starts in for the two operands of a\ncomposite, which are painted with what is open in the group closed.\nThe inverse of a mask has the box of the form painted through it,\nand its two rectangles fill that.  The box of a padded gradient\u0027s\nsoft mask is made bigger where what the open clips let through\nreaches past it.\n\nA box is not made smaller to fit what it holds, so every form that\nthe old box held is written as it was.  With boxes sized to what\nthey hold, viewers painted such forms otherwise: they render a group\nover the extent of its box.  Of 1100 random scenes of groups,\ncomposite modes and gradients, none stopped matching hb-raster, and\nGhostscript and pdfium painted them as before, to a level; but MuPDF\npainted 187 otherwise on antialiased edges, by up to 21 levels;\npoppler\u0027s cairo backend 209, by up to 60, the most where it draws\nthe edge of a luminosity mask in a form under a rotation sharper or\nsofter with the form\u0027s box; and poppler\u0027s Splash backend 25, most of\nthem where it does not antialias what a clip cuts in the last column\nof pixels of a group that is an odd number of them wide.\n\nNot changed: the rectangle of a plain fill, which still ends at\n32767 in its own space, and the reach of a sweep\u0027s mesh.\n\ntest-vector-composite paints the two squares at x \u003d 40000 in ten\nmodes, composited in the root, in a group under a transform, and\nwith a transform open in the group itself, and checks that every\nform\u0027s box holds what the form paints; test-vector-pdf-repeat does\nso for the groups of a repeating gradient and test-vector-pdf-alpha\nfor the soft mask of a padded one.  All three fail before this\nchange.\n\nRendered with poppler 25.07 (Splash and cairo), Ghostscript 10.05.1,\npdfium 159 and MuPDF 1.28.6: 61 composites of the two squares\n(eleven modes in five arrangements, five with translucent squares,\na blend in the root) and four gradients were wrong at x \u003d 40000 in\nall five viewers and are right now, but for two repeating gradients\nthat poppler\u0027s cairo backend paints a fraction of a pixel off.  The\ncomposites are right at x \u003d 1000000 and x \u003d 3000000 as well.\n\nNothing else that is written changes: the expected files are as\nthey were, and the 1100 random scenes and the 1083 mapped glyphs of\nthe 28 COLR fonts in test/api/fonts give the same PDF and SVG, byte\nfor byte, as before.\n\nThe vector tests and the seeds of the vector fuzzer pass under ASan\nand UBSan, as do 1600 runs of random scenes.\nA libFuzzer run of the vector fuzzer with coverage instrumentation,\nfailing allocations, ASan and UBSan, 180 seconds on eight jobs from\nthe COLR test fonts, made 240575 runs and took its corpus from 65\ninputs to 2332 with no crash, leak or timeout.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "8c9a2a719375edc5c24838757d0091565d084366",
      "tree": "84e6dc05e9c4ae9a0d8e2b3530963f86007897ad",
      "parents": [
        "ce1ecd7c08210383bd5f92da0374418db27c2a6c"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 15:32:28 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 16:54:02 2026 -0600"
      },
      "message": "[vector] Share the rectangle that goes around a group\u0027s bounds\n\nThe rectangle of an SVG mask is put around the bounds of what it\nmasks: brought into the space of the mask, and past the bounds on\nevery side by half their size and a unit.  The PDF writer is about to\nneed the same rectangle for the boxes of its forms.  Move the\narithmetic to hb_vector_paint_t::box_around(), and the bounds of what\nthe open clips let through, which painted() and clip_corners() each\nworked out for themselves, to open_clips().\n\nNothing that is written changes.  The suite passes; 600 random scenes\nof groups, composite modes and gradients give the same SVG and PDF,\nbyte for byte, as before, and so do the 1083 mapped glyphs of the 28\nCOLR fonts in test/api/fonts.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "ce1ecd7c08210383bd5f92da0374418db27c2a6c",
      "tree": "ad2f6a6092b62da3fd0b6bbb4149038d0a087ddd",
      "parents": [
        "df8f443730b8ea6c761a9d2d4568dfbb73d8b2c9"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 16:50:44 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sat Nov 21 16:50:44 2026 -0600"
      },
      "message": "[use] Give the generic bases named by code point their class (#6870)\n\nThe USE specification makes U+2015, U+2022 and U+25FB..U+25FE generic\nbases (GB) by naming them in its table of classes: they have no\nIndic_Syllabic_Category.  is_BASE_OTHER lists them, but the generator\nonly classifies a code point that has a record, and it makes records\nfrom the Unicode Indic files, ArabicShaping.txt and the default\nignorables.  These six are in none of those, so the list never\napplied, and they came out as O.\n\nGive them records, the way the section \"not in Unicode Indic files,\nbut used in USE\" did for other characters until 13bb46cfd removed it.\n\nA standard cluster can start with a repha or a consonant with\nstacker, and a symbol cluster cannot, so that is where it shows:\n\n  U+11D46,U+2022,U+11D31\n  before  [uni25CC\u003d0|Repha.MGondi\u003d0|.notdef\u003d1|MatraAa.MGondi\u003d1]\n  after   [.notdef\u003d0|MatraAaRepha.MGondi\u003d0]\n\nwhich is what U+25CC, a generic base by its Unicode category, gets.\n\nThe table is regenerated from the data files it was last generated\nfrom.  test-use-table gives another category for these six code\npoints and for no other.\n\nTesting: new in-house test, a subset of Noto Sans Masaram Gondi,\nwhich has a glyph for none of the six, hence .notdef.  It fails with\nthe old table.  Full test suite passes.\n\nMicrosoft is asked to give the six an Indic_Syllabic_Category\noverride, so that the list is not needed:\nhttps://github.com/MicrosoftDocs/typography-issues/issues/1249\n\nFixes: https://github.com/harfbuzz/harfbuzz/issues/6828\n\nReported as How HarfBuzz Works issue 82.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "df8f443730b8ea6c761a9d2d4568dfbb73d8b2c9",
      "tree": "250da3a3da226d991b9ec4896628d2f8afd96dde",
      "parents": [
        "95b30548ab89bc65b9432a03d4148f37f5d06fa8"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 16:49:43 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sat Nov 21 16:49:43 2026 -0600"
      },
      "message": "[coretext] Load a face that has no PostScript name (#6872)\n\nSince #6683, when Core Text returns several descriptors for a file or\na blob, the face is found among them by its PostScript name.  A file\nhas several descriptors when it is a collection, and also when its\none face has named instances.  A face with no name ID 6 has nothing\nto match, so creating it failed: from a file at any index, and from\na blob, or in the coretext shaper, at a named-instance index.  Before\n#6683 these worked.\n\nWhen such a face is the only face of its file, every descriptor is\nof that face, at one of its named instances.  Create the CGFont from\nthe font data itself, as is done for a blob at index 0.  That is the\ndefault instance, and hb_font_create() applies the named instance.\nA member of a collection that has no PostScript name still fails:\nthere is nothing to tell it by.\n\nTesting: test-coretext gets a font with three named instances and no\nname ID 6, and puts it through both loaders, the Core Text font\nfunctions and the coretext shaper at each instance.  The generator\nwrites the two existing fonts as they were.  This was written where\nCore Text is not available, so it is CI on macOS that builds and\ntests it.\n\nReported as How HarfBuzz Works issue 84.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "95b30548ab89bc65b9432a03d4148f37f5d06fa8",
      "tree": "a7d207c97ef44db3291dcebc3f7b8e8dac5bf5e0",
      "parents": [
        "544484dca7fe57b1473a59657b83b4a41ccdb34c"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 16:49:00 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sat Nov 21 16:49:00 2026 -0600"
      },
      "message": "[kern] Apply vertical kerning values in the advance direction (#6871)\n\nThe value of a kerning pair moves the two glyphs apart when it is\npositive and together when it is negative.  OpenType and Apple both\nsay so of \u0027kern\u0027, and Apple of \u0027kerx\u0027, with no exception for vertical\nsubtables.  HarfBuzz added the value to the vertical advances as it\nis.  Vertical advances are negative, so a negative value made them\nlonger and moved the glyphs apart, and a positive one moved them\ntogether.  trak had the same mistake (#6700).\n\nSubtract the value in vertical text: in the kern machine, which kern\nformats 0, 2 and 3 and kerx formats 0, 2 and 6 run on, and in the\nstate-machine kerning of kern and kerx format 1.  Fallback kerning\nthrough the deprecated glyph_v_kerning callback runs on the kern\nmachine too.  Cross-stream values are not changed.\n\nFor the font of kern-vertical.tests, whose vertical subtable has the\npairs a b -100 and b c -200, with --direction\u003dttb --features\u003dvkrn:\n\n  before  [a\u003d0@-250,-850+0,-1050|b\u003d1@-250,-900+0,-1150|c\u003d2@-250,-950+0,-1100|d\u003d3@-250,-850+0,-1000]\n  after   [a\u003d0@-250,-850+0,-950|b\u003d1@-250,-800+0,-850|c\u003d2@-250,-750+0,-900|d\u003d3@-250,-850+0,-1000]\n\nb is now 100 units nearer to a, where it was 100 further, and c 200\nnearer to b.\n\nTesting: the expectations of kern-vertical.tests came with #6734 and\nrecorded what it did; they are updated.  A new font has the same two\npairs as a vertical kerx format 1 subtable, and puts its glyphs in\nthe same places.  12 of the 24 lines fail without the fix.  Full test\nsuite passes.\n\nReported as How HarfBuzz Works issue 85.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "544484dca7fe57b1473a59657b83b4a41ccdb34c",
      "tree": "5ce48a9556f7f72c41533b207f1c2ef39ed05b73",
      "parents": [
        "4cea535e911f23ee755e5e7a5fdf2d620ae1456f"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 16:48:35 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sat Nov 21 16:48:35 2026 -0600"
      },
      "message": "[aat] Fail the buffer when a state machine spends the work budget (#6869)\n\nA state-machine transition that does not advance is charged to the\nbuffer\u0027s work budget, so that a machine that loops comes to an end.\nWhen the budget ran out, the driver went on to the next glyph and\ncarried on: the buffer stayed successful, the subtables after it ran,\nand hb_buffer_allocation_successful() reported success.  A caller\ncould not tell that the text had not been shaped in full.\n\nOpenType lookups mark the buffer unsuccessful when they run the\nbudget out.  AAT used to get there too: the charge for the next\nsubtable\u0027s pass failed the buffer, until #6605 dropped that charge.\n\nStop the machine and fail the buffer.  The loops over subtables\nalready stop for a buffer that is not successful.\n\nTesting: a new test with a morx whose Contextual subtable replaces\n\u0027a\u0027 by itself without advancing.  After shaping \"ab\" the buffer is\nunsuccessful, where it was successful before; \"b\" alone, which the\nmachine does not act on, stays successful.  Full test suite passes.\n\nReported as How HarfBuzz Works issue 86.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "4cea535e911f23ee755e5e7a5fdf2d620ae1456f",
      "tree": "196208dd157a384947cc8a2261b3821590191529",
      "parents": [
        "1b988bc381ce757a2195d0a02479fe1527fdc565"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 16:48:12 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sat Nov 21 16:48:12 2026 -0600"
      },
      "message": "[docs] Describe the rest of the build options in the user manual (#6868)\n\nThe \"Configuration options\" section of the user manual described ten\nof the options in meson_options.txt, mostly the outside libraries\nHarfBuzz can use.  It left out HarfBuzz\u0027s own optional libraries and\nthe newer backends, some of which change what hb_shape() returns, and\nit gave Graphite\u0027s option its deprecated name.\n\nAdd the sixteen that matter to someone building HarfBuzz:\n\n  subset, raster, vector, gpu, utilities\n  harfrust, fontations, kbts, wasm\n  png, zlib, chafa, introspection\n  icu_builtin, experimental_api\n\nand graphite2, in place of graphite, which is noted as its deprecated\nname.  The Graphite2 and WebAssembly entries say that a build with\nthem shapes fonts that have their tables through those backends.\n\nThe eight options left are for tests, benchmarks, fuzzing and\npackaging; the section now ends by pointing to meson_options.txt and\n`meson configure` for them.\n\nThe defaults given for gobject and docs said \"no\"; both are \"auto\".\n\nTesting: the file is well-formed XML, and every option of\nmeson_options.txt but those eight is now named in it.\n\nReported as How HarfBuzz Works issue 83.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "1b988bc381ce757a2195d0a02479fe1527fdc565",
      "tree": "fe4b6243049bb84ac74c786685ef8f938cf26347",
      "parents": [
        "956525e7c6c239832afc2b84ac40e56ad3bc7783",
        "c366881cefe1c0460c5597fd3474554bf552b66c"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 15:30:57 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sat Nov 21 15:30:57 2026 -0600"
      },
      "message": "Merge pull request #6863 from harfbuzz/fidelity-vector\n\n[vector] Fix composite modes, gradients, alpha, clips and images in SVG and PDF"
    },
    {
      "commit": "956525e7c6c239832afc2b84ac40e56ad3bc7783",
      "tree": "208a0b356c01e6fe021629e8fb0e9afb6e49ef41",
      "parents": [
        "d41768ee518a2b52002a4ed0ae11ea19adb6fafd",
        "295b40d3b4d7d2ed5e45a184afed132941091eaa"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 15:25:20 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sat Nov 21 15:25:20 2026 -0600"
      },
      "message": "Merge pull request #6862 from harfbuzz/fidelity-paint\n\n[paint] Fix color lines and gradients across the backends"
    },
    {
      "commit": "d41768ee518a2b52002a4ed0ae11ea19adb6fafd",
      "tree": "872de00f896eff974f3481a10c5c11d8417b5f3b",
      "parents": [
        "29009f86bfa2b2146fed1c4396b688046dc24f9d"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 15:22:09 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sat Nov 21 15:22:09 2026 -0600"
      },
      "message": "[cairo] Refuse a PNG image larger than cairo makes a surface of (#6867)\n\nhb-cairo hands the PNG data of an image glyph to\ncairo_image_surface_create_from_png_stream().  cairo makes no image\nsurface of more than 32767 pixels a side, but its PNG reader finds\nthat out only after it has allocated the whole image at the size the\nPNG says it has.  A font decides that size: the PNG in\ntest/fuzzing/fonts/cbdt-png-indexed-trns-smask-dimension-oob.ttf\nsays 65536 by 65536, and showing its glyph made cairo allocate 17 GB\nbefore it painted nothing.\n\nThe memory is not touched unless the allocator writes to what it\nhands out, which glibc\u0027s does under MALLOC_PERTURB_, and meson sets\nthat for tests.  test_hb_cairo_image_not_paintable shows that font\nsince 4181c2df8, and took 7 seconds here with the variable set, and\n9 to more than 30 on the Linux runners, where it timed out on main:\nhttps://github.com/harfbuzz/harfbuzz/actions/runs/44949240926\nBuilds with another allocator (ASan, valgrind, macOS, Windows) ran\nit in a fraction of a second.\n\nRead the size from the PNG\u0027s header and return before cairo sees an\nimage wider or taller than 32767.  Nothing that was painted is not\npainted now: cairo 1.18.4 makes a surface of a PNG 32767 pixels wide\nand refuses one of 32768, either way round.\n\nTesting: with MALLOC_PERTURB_\u003d162 and G_DEBUG\u003dgc-friendly, as meson\nruns it, test-cairo took 6968 ms in that one test and takes 30 to 55\nms in all; its largest mapping was 17.18 GB and is 2 MB.  There is no\nresult to assert that differs, so the test only gets a comment saying\nwhat that case costs without this.  Full test suite passes.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "c366881cefe1c0460c5597fd3474554bf552b66c",
      "tree": "7cbe2a967c06450441e1230a6c1d2a68b23ee576",
      "parents": [
        "b1c8fd20abc4b8e0e8f9b637fb167d547080a242"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 15:09:25 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 15:09:25 2026 -0600"
      },
      "message": "[vector] Render a PDF page that has nothing on it\n\nhb_vector_paint_render() gave no PDF for a page with extents whose\nroot group held nothing, unless the page had a background: that is a\npage that nothing was painted on, or one where a group popped with\nCLEAR took away what was.  The SVG writer renders such a page, and so\ndo the SVG and PDF writers of hb_vector_draw_t; a caller got a blob\nfrom each of them and NULL from this one.\n\nRender the page, blank: a content stream of no length.  A render with\nno extents still fails.\n\ntest-vector-composite renders a cleared root and a root that nothing\nwas painted in with no background, and expects a document with an\nempty content stream; test-vector-reset expected NULL for PDF, from\nwhen it was written to check that a failed render clears its state\n(it still has a failed render, the one with no extents), and expects\na blob now.  Both fail without the change.  The blank page shows\nwhite, with no complaint, in poppler and Ghostscript.  The whole\nsuite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "29009f86bfa2b2146fed1c4396b688046dc24f9d",
      "tree": "d6eb0ba3c007f76bd9053def9f3ee89102586368",
      "parents": [
        "81708f758b228c9860cdf842c0ef38cf2c855d70",
        "9e738ccde95116ff6fba561b75b6a6306fc6c762"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 15:04:56 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sat Nov 21 15:04:56 2026 -0600"
      },
      "message": "Merge pull request #6865 from harfbuzz/fidelity-raster\n\n[raster] Fix radial gradients past the tip and image glyphs"
    },
    {
      "commit": "81708f758b228c9860cdf842c0ef38cf2c855d70",
      "tree": "e62ce5d0e7f8af8be0cacafc06ac3dabfe6cdffe",
      "parents": [
        "0880a1146098d5fa3f07bde886707bb32478e120",
        "712dc5a1fcef02d58d2a47985a87a3a0284b7aa0"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 15:00:28 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sat Nov 21 15:00:28 2026 -0600"
      },
      "message": "Merge pull request #6864 from harfbuzz/fidelity-cairo\n\n[cairo] Fix sweep gradients, glyphs that put cairo in error, and PNG glyph heights"
    },
    {
      "commit": "295b40d3b4d7d2ed5e45a184afed132941091eaa",
      "tree": "bde85b42fc70ccffd5374eea81324a627901b32e",
      "parents": [
        "ba023c2894cac7e4be3e822418ba41f4111d0ea3"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:52:58 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:52:58 2026 -0600"
      },
      "message": "[paint] Paint no COLR linear gradient whose P1 or P2 is at its P0\n\nCOLR says of a linear gradient: \"If either point p1 or p2 is the same\nas point p0, the gradient is ill-formed and must not be rendered.\"\nWith P1 at P0 the backends already painted nothing, each on its own:\nhb_paint_reduce_linear_anchors() gives them a gradient along no line.\nWith P2 at P0 it passes P0 and P1 through, as it is documented to,\nand they painted a gradient along that line: glyph j of the test\nfont, from red to blue, covered its whole square in hb-raster,\nhb-cairo, and hb-vector\u0027s SVG and PDF.\n\nSuch a gradient is now not handed to the paint callbacks at all.\nPaintLinearGradient compares the anchors where it has them with their\nvariation deltas applied, so every backend and every other user of\nthe callbacks gets the same, and the helper keeps its contract.  The\nFreeType font functions dispatch FreeType\u0027s own paints and are not\nchanged: `hb-vector --font-funcs\u003dft` still writes glyph j\u0027s gradient.\n\nTest: colr-color-line-no-length.ttf, regenerated with its generator,\nhas three more glyphs: j with P2 at P0, and k and l, variable, whose\nP2 the deltas at the end of the font\u0027s new axis move onto P0 and away\nfrom it.  test-raster checks that j paints nothing, and k and l at\nboth ends of the axis; test-cairo and test-vector-color-line check\nj.  All three failed on j before the change: hb-raster and hb-cairo\npainted it, and hb-vector wrote a gradient that librsvg shows on\n37636 of 40000 pixels, now on none.  test-paint\u0027s budget test had a\ngradient with all its anchors at the origin, which was only there to\nhave its stops fetched; it has anchors apart now.  The whole suite\npasses.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "ba023c2894cac7e4be3e822418ba41f4111d0ea3",
      "tree": "c372256f960ed0e03bf375c5b4dddce2a71780ca",
      "parents": [
        "2633374702cd860384baa85a013c990c2f828f6e"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:40:37 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:52:58 2026 -0600"
      },
      "message": "[vector] Write no piece of no length in a PDF gradient function\n\nThe function of a PDF gradient was stitched from one piece for every\ntwo stops next to each other, with the offsets of the stops between\nthem as /Bounds.  Two stops at one offset, a hard stop, made a piece\nof no length and the same bound twice: /Bounds [0.5 0.5], and\n[0.0625 0.0625] for the stretch that pads a color line with two stops\nat its end; [0] and [1], which are the ends of the /Domain, for one\nthat does not pad.  PDF 32000-1:2008, 7.10.4, wants Domain0 \u003c Bounds0\n\u003c Bounds1 \u003c ... \u003c Domain1, the pieces being half-open intervals, and\nexcepts only a last bound equal to Domain1.\n\nA piece is now written only between stops whose offsets differ as\nthey are written, to four decimals; where they do not, the function\nchanges at once from the piece that ends there to the piece that\nstarts there.  /Functions, /Bounds and /Encode are all written for\nthe pieces kept, in the color function and in the alpha function of\nthe soft mask alike.  If one piece is left, it is written alone, with\nno stitching.  The duplicate was written on main already for a hard\nstop inside a color line; the stretch at a padded end still has its\nown piece, between 0 and the one bound.\n\nTest: test-vector-pdf-pad checks the stitching functions of all it\nwrites (a piece more than bounds, bounds growing and inside the\ndomain, two /Encode numbers a piece), and has a hard stop in the\nmiddle and two stops 0.00004 apart; it expects /Bounds [0.0625] and\nthe like where it had them twice.  test-vector-gradient and\ntest-vector-color-line are updated for the pieces that are gone.  All\nthree fail without the change.  No file under test/vector/data\nchanges.\n\nRendered before and after at 400 pixels in poppler (Splash and\ncairo), Ghostscript, pdfium and MuPDF, 22 gradients (linear and\nradial; hard stops at the start, the end, both, in the middle, three\nstops at one offset, with alpha, through transparent; pad, repeat and\nreflect) are pixel for pixel the same in every viewer, but for one in\nGhostscript: a line that repeats with two stops at its start, where\nthe piece of no length at /Bounds [0] was a column of its color one\npixel wide, which is gone, and other pixels are one level off.  Of\nthe mapped glyphs of the COLR test fonts, only the three of\ncolr-color-line-no-length.ttf with a hard stop have their PDF\nchanged.  The whole suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "9e738ccde95116ff6fba561b75b6a6306fc6c762",
      "tree": "fc0445684e4b2c4d59abac80a06ac4ad1875ea57",
      "parents": [
        "6c9f8d33ee710b69d6755e98a39ca9f6ce5bcd95"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:45:59 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:45:59 2026 -0600"
      },
      "message": "[raster] Charge an image that is shrunk for the samples it takes\n\nAn image is charged a pass over the clip and one over itself.  Since\nit is averaged where it is shrunk, a pixel can take a grid of up to\n16 by 16 samples, and nothing was charged for those.  The area of\nthe image does not cover them: an image stretched one way, shrunk\nthe other and turned is shrunk along both axes of the surface, and\ntakes a full grid for each pixel, while it covers as many pixels as\nit has.  A 16384x4 image shrunk 64 times one way, enlarged 64 times\nthe other and turned 45 degrees onto 256x256 pixels took 14,011,392\nsamples and was charged 131,072; painting it until the budget of\nthat surface was spent took 7.2 billion samples and 183 seconds.\n\nCount the grid samples as they are taken and charge for them after\neach row; once that spends the budget the rows that are left are not\npainted, and as elsewhere nothing more is painted in the session.  A\nsample costs what a pixel of the pass over the clip does, which for\nan image that is not shrunk is one sample too.  Such an image takes\nno grid samples and costs what it did.\n\nThe same paint is now charged 14,142,464, and the budget is spent\nafter 5 paints, 66 million samples and 1.7 seconds.  Without the\nturn, 1,048,576 samples a paint: 14 seconds before, 1.5 now.  An\nimage shrunk 8 times both ways is charged a quarter more than it\nwas, 5,308,416 for 4,259,840.  One paint takes the same time as\nbefore in all of these.\n\nTesting: test-raster-paint checks the charge of an image that is not\nshrunk (unchanged) and of one shrunk four times, and that painting\nstops with the row that spends the budget; it fails without the\nchange.  528 renderings of the sbix and CBDT test fonts with\nhb-raster, and 16 of a line of 200 glyphs of an sbix emoji font with\nstrikes up to 160 pixels at 12 to 300 pixels, are byte-identical to\nbefore.  test-raster and test-raster-paint are clean under ASan and\nUBSan.  Full test suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "b1c8fd20abc4b8e0e8f9b637fb167d547080a242",
      "tree": "dedac563670a844bf46ffbd4eb3930d69dea784e",
      "parents": [
        "e4d59ba66d1417bf1c6e3776995f05700a1f6e97"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:40:38 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:40:38 2026 -0600"
      },
      "message": "[vector] Render the background of a PDF page that has nothing on it\n\nhb_vector_paint_render_pdf() returned no document when the root\ngroup held nothing, before it got to the page\u0027s background.  The\nroot holds nothing when nothing was painted, and also when a group\npopped in it with CLEAR has taken away what was: a red fill and a\nblue group popped with CLEAR, on a page with extents and an opaque\nbackground, gave NULL where the SVG writer gives the background.\n\nRender the page when it has a background, with the background alone.\nA page with nothing on it and no background is still not rendered,\nas test-vector-reset expects of it.  The SVG writer and the PDF\nwriter of hb_vector_draw_t render a page with extents whatever is on\nit, and are not changed.\n\ntest-vector-composite renders a root cleared with CLEAR and a root\nthat nothing was painted in, on an opaque and on a translucent\nbackground, in PDF, and on an opaque one in SVG.  It fails before\nthis change, at the first PDF.  The two PDFs with the opaque\nbackground show a page of that color and nothing else in poppler\n(Splash and cairo), Ghostscript, pdfium and MuPDF.  The whole suite\npasses.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "712dc5a1fcef02d58d2a47985a87a3a0284b7aa0",
      "tree": "dfe2107a643f64ed2506c90de8acef2fefa22a05",
      "parents": [
        "d95221169668f47f743bb8ca8973d972795807a9"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:39:06 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:39:06 2026 -0600"
      },
      "message": "[cairo] Skip the test of PNG image sizes where cairo has no PNG\n\ncairo can be built without PNG support and still have color user\nfonts.  hb-cairo has cairo read PNG images, under\nCAIRO_HAS_PNG_FUNCTIONS, and paints none without it.  The two sbix\nglyphs of test_hb_cairo_image_not_square have no outline to paint\ninstead, so the test found 0x00000000 where it expects the red of\nthe image.\n\nSkip that test under the same condition as the library\u0027s.  The\nother tests do not need cairo to read a PNG;\ntest_hb_cairo_image_not_paintable only requires that the context\nstays usable.\n\nTesting: there is no cairo without PNG here, so the condition was\nforced: with CAIRO_HAS_PNG_FUNCTIONS undefined after the includes of\nhb-cairo-utils.cc, the test fails as described; with it undefined in\ntest-cairo.c as well, the test compiles without warnings with the\nbuild\u0027s flags, and as C99 with gcc and clang, is skipped, and the\nother six pass.  Full test suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "d95221169668f47f743bb8ca8973d972795807a9",
      "tree": "4cda4597af3d7cfcecd33154880dcbbc9b9455dc",
      "parents": [
        "30d1a66c99dfd672f614ffcda225ddb91b4cfadb"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:39:06 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:39:06 2026 -0600"
      },
      "message": "[cairo] Ask cairo whether a transform has an inverse\n\nhb-cairo decides, before it hands a transform to cairo, whether cairo\nwill take it, and clips everything out if not: cairo_transform()\nrefuses a matrix that has no inverse, and a context that has refused\nanything draws nothing more.  It decided with a check of its own:\nthe determinant had to be finite and more than 1e-12 of the sum of\nthe two products it is the difference of, a margin for a determinant\nthat cancels to zero in cairo and not quite here.\n\nThat margin clipped out glyphs that cairo paints.  With Q \u003d (1, 1,\n1, -1) and D \u003d scale (1024, 1/2048), the transforms Q, D, D, Q one\nin another have a determinant of 1, the difference of two products\nof 1.1e12 each: under the margin.  Followed by what undoes each of\nthe four, they change nothing, and the layer under all eight was not\npainted.\n\ncairo\u0027s check (cairo-gstate.c and cairo-matrix.c, read in 1.18.4) is\nthat the determinant is finite and not zero, for the matrix and for\nwhat it makes of the current transformation.  Have cairo compute it,\nwhich needs no margin: cairo_matrix_invert() on a copy fails exactly\nthen.  Except for a matrix that only scales, which it inverts\nwithout looking at the determinant, refusing a scale of zero only:\nthe product of two scales can be zero or infinite where neither of\nthem is, as with forty scales one in another, and cairo_transform()\nrefuses those.  So that case keeps a check here; with nothing to\nsubtract, the product of the scales is the determinant.\n\nTesting: the font gets a ninth glyph, the eight transforms over the\nsquare that paints, and the test expects the square: it had\n0x00000000 for 0xff00ff00 in the middle.  It also fails, with\nCAIRO_STATUS_INVALID_MATRIX, if cairo_matrix_invert() is asked about\nthe scales as well (the two glyphs of forty scales), or if either\nhalf of the check of scales is dropped.\n\nAgainst cairo_transform() itself on 80 million random matrices and\ncurrent transformations, many of them close to having no inverse or\nwith entries that are not numbers, the new check said what cairo\n1.18.4 did every time; the margin clipped 14.4 million that cairo\ntakes, and cairo_matrix_invert() alone would have passed 411\nthousand that cairo refuses.  Showing the 439695 glyphs of the fonts\nunder test/ at 64 pixels leaves no context in error, as before, and\nchanges one picture: the new glyph.  Full test suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "e4d59ba66d1417bf1c6e3776995f05700a1f6e97",
      "tree": "537978882761df55163dfe1ac9ffe7b84116837d",
      "parents": [
        "24fd5fbf630f3228cd1d634826b4320c85d14c9a"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:37:53 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:37:53 2026 -0600"
      },
      "message": "[vector] Keep the transparent sample of a gray or RGB PNG out of PDF\n\nA PNG with no alpha channel and no palette can still name one sample\nthat is transparent, in its tRNS chunk: two bytes for each color,\nwhatever the depth of the samples (PNG, third edition, 11.3.1.1).\nThe PDF writer made a mask from tRNS only for an image with a\npalette, so a gray glyph of one bit a pixel with white transparent\nwas painted with its white opaque.  The same went for gray of 2, 4\nand 8 bits and for RGB.\n\nWrite the sample as a color key mask, `/Mask [v v]` for gray and\n`/Mask [r r g g b b]` for RGB (ISO 32000-1, 8.9.6.4): each number is\na sample as it is in the image, before decoding, so the image\u0027s rows\nare still embedded as they are and no zlib is needed.  Only the bits\nof a sample are taken from each two bytes, as PNG says a decoder\nmust.  A tRNS chunk of another length is not one, and is left out,\nand so is that of an indexed image that has no palette.\n\nsbix-png-kinds.ttf gains five glyphs, from its generator: gray of 1,\n2, 4 and 8 bits and RGB, each with one sample transparent; the six\nimages that the expected PDF already had are the same bytes in it.\ntest-vector-png checks the mask of three such images written by\nhand, with the unused bits of tRNS set in two of them.  Both fail\nbefore this change.  On a colored page, the 80 keyed pixels of the\nfive glyphs show the page and the other 240 keep their color in\npoppler (Splash and cairo), Ghostscript, pdfium and MuPDF; before,\nnone of the 80 did in any of them.  A build without zlib writes the\nsame PDF.  The whole suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "24fd5fbf630f3228cd1d634826b4320c85d14c9a",
      "tree": "2763989b3cf11f224dedbba7ed9fd7a6af10b899",
      "parents": [
        "c1cfbc99f8fcc6ab4044b64411f176347e2f4075"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:34:24 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:34:24 2026 -0600"
      },
      "message": "[vector] Size the rectangle of an SVG mask to what it masks\n\nSRC_IN, DEST_IN, SRC_OUT, DEST_OUT, SRC_ATOP, DEST_ATOP and XOR are\nwritten in SVG with a mask that is a rectangle, white through the\nalpha of one group, over a white one for the inverse.  The rectangle\nwent from -32767 to 32767, in the space of the group that the two are\ncomposited in.  What is masked is under transforms and clips of its\nown, and can be painted anywhere: two squares at x \u003d 40000, each\nunder its own translation, composited with SRC_IN, came out with\nnothing painted, as the mask ended before them.  (A fill has the same\nrectangle, but under the clip that bounds it.)\n\nKeep the bounds of what each group paints, in the space of the root:\nevery fill is within what the open clips let through, a glyph or an\nimage also within its own extents, and a group that is popped adds\nits bounds to those of its parent.  A mask\u0027s rectangles, the white\none of an inverse mask too, now cover the bounds of the group that\nthe mask is put on, brought into the space that the current group\nstarts in, with half their size and a unit to spare on every side so\nthat the antialiased edges of the rectangle stay clear of what is\nmasked.  Where nothing bounds what is painted, or the transform has\nno inverse, the rectangle is the one it was.\n\ntest-vector-composite has the two squares at x \u003d 40000 in all seven\nmodes, composited in the root, in a group under a transform, and\nwith a transform open in the group itself, and checks that every\nmask rectangle is around the square it masks; it fails before this\nchange.  Rendered, the seven modes are right at x \u003d 100 and x \u003d 40000\nin librsvg 2.61, Chrome and Firefox, where all seven were blank at\nx \u003d 40000 in all three.  300 random scenes of these modes render the\nsame as before against hb-raster (Chrome 300, librsvg 267, Firefox\n295 of 300 within tolerance, both before and after); over a page, no\npixel moves by more than 23 levels in Chrome, 3 in librsvg and 5 in\nFirefox.  The expected SVG of the Porter-Duff test glyphs changes in\nthe size of these rectangles only, and renders pixel for pixel as\nbefore in the three viewers.  The whole suite passes.\n\nThe PDF writer is not changed: the group forms there have a fixed\n/BBox, which main has too.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "6c9f8d33ee710b69d6755e98a39ca9f6ce5bcd95",
      "tree": "4d42e06b7e2e0bd66bde72ca9c67d91dec0d1276",
      "parents": [
        "ebf5d13c7cddcff5dd75481997d9a09627f79cb7"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:33:13 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:33:23 2026 -0600"
      },
      "message": "[raster] Paint nothing for a radial gradient of two zero radii\n\nIf the radius is zero at both ends of a radial gradient it is zero\nall along its line, and COLR paints only the circles whose radius\nis more than zero: \"When both radii are 0 (r₀ \u003d r₁ \u003d 0), then r(ω)\nis always 0 and nothing is painted.\"\n\nhb-raster solves for the circle through each pixel center and takes\none whose radius is not negative.  With both radii zero and the two\ncenters apart, a pixel center on the line through the centers is on\na circle of radius zero, which was taken: from (0, 1.5) to (8, 1.5)\non 8 by 3 pixels the whole middle row was painted, whether the\ncolor line pads, repeats or reflects.  With the two centers in one\nplace nothing was painted already.\n\nPaint nothing if the radius is zero at both ends.  A radius of zero\nis still taken otherwise: it is the tip of a cone, or the middle of\nrings that start from a point, and the pixel centered there belongs\nto what is painted around it.\n\nTesting: the new test paints that gradient and the one with a single\ncenter, in the three extend modes, and expects nothing; it fails\nwithout the change (8 pixels painted).  It also paints a cone and\nrings from a radius of zero with a pixel centered on the tip, which\nare painted as before.  The 482 mapped glyphs of the COLR test fonts\nrender byte-identical to before with hb-raster at two sizes.  Full\ntest suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "2633374702cd860384baa85a013c990c2f828f6e",
      "tree": "0add6d485cc0f2dbdf5c974452358c56896e0560",
      "parents": [
        "bf7f5bf2b6995fce119b8023091c0dfd597bbc5d"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:32:00 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:32:12 2026 -0600"
      },
      "message": "[vector] Start a PDF cone no further after its tip than its next stop\n\nA padded cone that starts at its tip is started a hair after it in\nPDF, because pdfium draws a line through the tip otherwise, and the\ncolor at the hair goes on back to the tip.  The hair was a 256th of\nthe color line, or more where it takes more for the radius to be\nwritten as more than zero.  A 256th can be past a stop: a cone to a\ncircle of radius 20000 that is red up to a 512th along and blue from\nthere on was started after its red stretch, and was written blue from\nthe tip on.\n\nThe hair is now a 256th of the way to the next stop.  That is within\nthe first stretch of the color line, and gives up at most a level of\nits color.  The radius still has to be written as more than zero, so\na stop is still passed where its circle has a radius under two\nhundredths of a unit of the output: what is given up there is a\nsliver thinner than coordinates are written to, and the line through\neverything in pdfium would be the worse of the two.  A cone whose\nnext stop is at the end of its color line is written as it was.\n\nTest: test-vector-radial-tip has that cone, and checks that it starts\nat a radius of 0.15, before the stop, with its red stretch written;\nit failed before.  At 300x300 around the tip, poppler shows 432\npurely red pixels without the hair, none before this change and 392\nwith it (the stop is now written as 0.0019 instead of 0.002);\nGhostscript 451, 0 and 398.  In pdfium (pypdfium2) the line is there\nwithout the hair, and nothing is painted outside the cone with this\nchange at 150, 300, 777 and 1200 pixels: for this cone, for the cone\nof the existing test, whose output is byte for byte what it was, and\nfor cones whose start radius is written as 0.02, at a scale factor of\n1 and of 64.  No mapped glyph of the COLR test fonts has its SVG or\nPDF changed.  The whole suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "ebf5d13c7cddcff5dd75481997d9a09627f79cb7",
      "tree": "3a99d11253322e2d2ddb74e005747b1416e27016",
      "parents": [
        "70eb1549436c0194eb2a165a78341ba1c1e2da8b"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:30:35 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:30:35 2026 -0600"
      },
      "message": "[raster] Paint a sample on the edge between two images once\n\nThe image painter took a sample to be in the image from 0 through\nthe image\u0027s width and height, both ends included.  A sample on the\nedge between two images side by side was then in both, and painted\ntwice: two 1x1 images at alpha 128, moved half a pixel so that pixel\ncenters are on their edges, painted the pixel on the edge between\nthem at alpha 192.  For the same reason an image painted a row and a\ncolumn more than it covers when pixel centers are on its edges.\n\nAn image now has the two edges its extents start at and not the two\nacross from them, in the single-sample path and in the grid used for\nshrinking alike.  The far edges are compared in glyph space, where\none image ends at the very number the next starts at.  Comparing the\nimage coordinate with the image\u0027s width is not enough: that\ncoordinate is a division by a rounded scale, and for an image of 7\npixels over 1 unit, or 11 over 47, it is just under the width on the\nfar edge itself.\n\nTesting: test_image_edges paints four images two by two with pixel\ncenters and grid samples on their edges; it fails without the change,\nand with a comparison of the image coordinate alone.\n\nA sweep of such arrangements through the API, each image rendered on\nits own and the alphas added up (extents started at each of the four\ncorners, with and without a quarter turn, 1 to 48 pixels over 1 to 48\nunits, scales 1/8 to 2): before, 35992 of 36656 not shrunk and 14688\nof 14800 shrunk had a sample in two images.  Comparing the image\ncoordinate alone left 1624 and 1024, and 90 with a sample in none.\nNow none has either; the sums are exact where not shrunk and within\none level where shrunk.\n\nShrinking a 256x256 image is as close to the box average as before:\nwithin one level down to 32x, 13 levels at 64x.\n\nOf 528 renderings of the 11 sbix and CBDT test fonts with hb-raster\n(8 sizes, ot and ft font functions, upright, slanted and with a ppem)\n518 are byte-identical to before.  The other 10 differ in 4 to 33\npixels each, all along the right edge of an image, where pixel\ncenters are on that edge.\n\nFull test suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "bf7f5bf2b6995fce119b8023091c0dfd597bbc5d",
      "tree": "3641d4a1b4d661c231a1e2902cd8d065fc121849",
      "parents": [
        "3dd2eb752f3387a3a0db3bc3b7bc365ecfa405ba"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:21:53 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:22:06 2026 -0600"
      },
      "message": "[vector] Tile a repeating sweep all the way around before adding stops\n\nA sweep gradient is written as the tiles that\nhb_paint_sweep_gradient_tiles() makes of its color line, which stops\nafter HB_PAINT_MAX_SWEEP_TILES of them and leaves the rest of the\ncircle unpainted.  The SVG and PDF writers rewrite the stops first, so\nthat a viewer interpolating them comes to COLR\u0027s premultiplied colors,\nand that adds up to 15 stops between two stops that differ in alpha.\nFor a color line that repeats or reflects, each of those is a tile in\nevery period: a sweep from opaque red to blue at alpha 64 that repeats\nevery degree took 16 tiles a period, ran out of tiles after 256\ndegrees, and painted nothing in the last 104.  Before the stops were\nrewritten it took 360 tiles and went all the way around.\n\nThe stops of a sweep are now rewritten with as many stops added as\nleave the tiles enough to cover the circle: 16 stretches between two\nstops, or 8, 4, 2, or none; and if the color line cannot be tiled all\nthe way around with the transparent stops fixed either, its stops are\nused as they are.  The sweep above gets 8 stretches a period, 2880\ntiles.  Nothing changes for a sweep that had tiles enough.\n\nhb-cairo does not rewrite the stops of a sweep, so its sweeps are as\nthey were.\n\nTest: test-vector-gradient paints that sweep, repeating and\nreflecting, and checks that the wedges of the SVG and the patches of\nthe PDF mesh cover every tenth of a degree around the center; before\nthis change the directions from 255.9 to 360 degrees had none.\nRendered at 200x200, clipped to the square: librsvg left 11200 pixels\ntransparent and poppler and Ghostscript left 11199 and 11100 white,\nall three none now.  In librsvg no pixel is transparent for periods\nfrom 0.0879 to 1 degree either, and the SVG and PDF for periods of 2\ndegrees and more are byte for byte what they were.  The whole suite\npasses.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "c1cfbc99f8fcc6ab4044b64411f176347e2f4075",
      "tree": "80c8fa9f6d343fb329316b3a960a144d8819c61e",
      "parents": [
        "0c06b3fdb709bb730618618976e47b92909478c3"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:17:29 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 14:17:29 2026 -0600"
      },
      "message": "[vector] Write every period of a PDF gradient that a one-sided clip shows\n\nA linear or radial gradient that repeats is written in PDF a period\nof its color line at a time, for the periods that the open clips let\nthrough, and no more than 256 of them.  The 256 were taken as 128 on\neach side of the period nearest the color line, whatever the clips\nlet through.  Under a clip that lies to one side of the color line,\nhalf of them were kept for a side that nothing shows: a repeat one\nunit long from x \u003d 0, clipped to x \u003d 0..200, was written as 128\nperiods, and the rest of the clip, 72 units, was left blank.\n\nTake all the periods that the clips let through when they are no more\nthan the limit.  When they are more, take as many as the limit among\nthem: those around the period nearest the color line, moved to lie\nwithin what the clips let through.  The periods of a radial gradient\nare chosen by the same function, so rings and cones gain the same.\n\ntest-vector-pdf-repeat has such clips on either side of the color\nline and away from it, with fewer periods than the limit and with\nmore, and rings under a clip to one side of their center.  It fails\nbefore this change.  Rendered at 4 px a unit, the first case had 36%\nof its columns blank in poppler (Splash and cairo), Ghostscript,\npdfium and MuPDF, and has none now; the rings had 33% of the clip\nblank and have none.  The whole suite passes, and no expected output\nchanges.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "3dd2eb752f3387a3a0db3bc3b7bc365ecfa405ba",
      "tree": "be7449a27a9ec2dff25c5da921c1f08bc959ac3c",
      "parents": [
        "2da26ba00f3b91127336a1aa582bfca45fe8a6fa"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 02:05:34 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 02:10:10 2026 -0600"
      },
      "message": "[vector] Pad a PDF gradient in its last color where that comes late\n\nA color line that pads goes on after its last stop in that stop\u0027s\ncolor.  pdfium takes 256 samples of a shading\u0027s function, at 0, 1/256\nand so on to 255/256, and goes on after the shading in the last of\nthem: in what the function gives at 255/256, not at 1.  For a color\nline of two stops that is within a level of the last color.  Where\nthe last two stops are close together it is not: with red at 0, green\nat 0.9895 and white at 1, pdfium padded in (160, 208, 160), the color\n63% of the way from green to white, where it should be white.\n\nTwo stops at the last offset already get the color line lengthened\nby a stretch in the last color.  Do that as well where the color\nline is more than two levels short of its last color at 255/256, in\nalpha or in what shows of red, green or blue, which is that times\nalpha.  The stretch for it is the last 128th of the lengthened line,\nwhich has pdfium\u0027s last sample in it; two stops at one offset keep\ntheir sixteenth, which puts them at a sample.  A radial gradient\nthat ends at a radius of zero paints nothing after it and is left\nalone there.  It no longer counts as lengthened at that end when the\nstretch at its start is sized, so two stops at its start are a\nsixteenth in as well.\n\nTesting: test_glyphs-glyf_colr_1_variable.ttf has those stops at\nCOL1\u003d0.496,COL3\u003d-0.885.  At 160 pixels per em, the pixels of its\nthree glyphs with gradients that pad that pdfium has more than 24\nlevels from hb-raster\u0027s:\n\n                                              before  after\n  linear_gradient_extend_mode_pad                57%   none\n  radial_contained_gradient_extend_mode_pad      64%   none\n  radial_horizontal_gradient_extend_mode_pad     17%   0.15%\n\nMuPDF, poppler, Ghostscript, Chrome and librsvg have them as before:\nnone, and 0.12% for the last one.\n\nReplaying the same paint calls on hb-raster and hb-vector for 300\nrandom scenes of linear and radial gradients with a stop from 0.001\nto 0.2 of the length in from an end, how many have the same pixels:\n\n                  before  after\n  pdfium             223    300\n  MuPDF              300    300\n  poppler cairo      300    300\n  poppler Splash     300    300\n  Ghostscript        290    288\n  Chrome (SVG)       300    300\n  librsvg (SVG)      300    300\n\nThe two that Ghostscript newly differs on, by 0.4% and 0.2% of the\npixels, both reduce to a linear gradient under a rotation, as do the\ntwo largest of the ten that it differed on before.\n\nScenes of other gradients, 1800 of them, are written byte for byte\nas before, those with two stops at an end among them.  Of the 1553\nmapped glyphs of the COLR test fonts the PDF of four changes, the H\nof BitcountInk and the three glyphs of KalniaGlaze; their pictures\nin pdfium, MuPDF, poppler and Ghostscript stay as they were to within\n0.03% of the pixels.  No SVG changes.\n\nThe test for padding has more cases, and fails without the change.\nIt is clean as C99 with -pedantic under gcc and clang, and the vector\ntests pass under ASan, UBSan and MSan.  hb-vector-fuzzer, built with\ncoverage instrumentation and run from the COLR test fonts with\nfailing allocations, made 289591 runs in three minutes on eight jobs\nwithout a finding.  Full test suite passes.\n\nFound comparing every glyph of the variable test font at random\nlocations in its design space.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "0c06b3fdb709bb730618618976e47b92909478c3",
      "tree": "3a9576e161d6f5b52f583a442c77474bcaf7e84d",
      "parents": [
        "11cfbe6b82599ba8d3d1cd1f646e8ed9f1640340"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 01:22:33 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 01:27:51 2026 -0600"
      },
      "message": "[vector] Write an SVG clip rectangle from whichever corner it is given\n\nA clip rectangle comes as two corners, and nothing holds the first to\nbe the lower left one.  The clip box of a COLR glyph in a variable font\nhas its four sides vary on their own, so they can cross: xMin ends up\nabove xMax.\n\nThe SVG writer wrote the first corner and the difference to the second\nas the x, y, width and height of a rect, so that such a rectangle got a\nnegative width or height.  Viewers do not render a rect like that, and\na clip path with nothing in it clips everything out: what was painted\nunder the clip did not show.  hb-raster takes the bounds of the four\ncorners, hb-cairo hands cairo the same numbers as a rectangle to add\nto its path, and the PDF writer writes them as a `re`; all three clip\nto the rectangle between the two corners.  The SVG writer\u0027s own record\nof the clip\u0027s bounds took the smaller and the larger of each pair as\nwell.\n\nWrite the rect from its lower left corner with sizes that are not\nnegative.  A rectangle given the usual way is written as before, to\nthe byte.\n\nTesting: test_glyphs-glyf_colr_1_variable.ttf has a glyph,\ninset_clipped_radial_reflect, whose clip box is inset by the CLIO axis,\nand another, clip_box_center, that paints it as a PaintColrGlyph.  At\nCLIO\u003d500 the box goes from 600 to 400 both ways.  Against hb-raster at\n160 pixels per em, hb-vector\u0027s SVG of both glyphs lacked all of the\ngradient square in Chrome, Firefox, librsvg and Inkscape, and matches\nin all four now; the PDF matched in poppler, pdfium, MuPDF and\nGhostscript before and does now.  hb-view matches hb-raster as well.\nChrome\u0027s own COLR renderer paints the square inside clip_box_center,\nwhere the crossed box is that of a nested glyph, and paints nothing\nfor inset_clipped_radial_reflect itself.\n\nThis turned up comparing the font\u0027s 219 mapped glyphs that paint, at\nfour random locations in its design space, between hb-raster and\nhb-vector\u0027s output in librsvg, poppler and pdfium: at two of the four.\n\nA new test gives the same rectangle from each of its four corners and\nexpects the same document for all, with no negative size; it fails\nwithout the change.  It is clean as C99 with -pedantic under gcc and\nclang, and the vector tests pass under ASan and UBSan.\nhb-vector-fuzzer, built with coverage instrumentation and run from\nthe COLR test fonts with failing allocations, made 376934 runs in\nthree minutes on eight jobs without a finding.  Full test suite\npasses.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "0880a1146098d5fa3f07bde886707bb32478e120",
      "tree": "050c99716e4ee90ca3c39165f4273028956061c8",
      "parents": [
        "5b8f48160347885f76f679b39f31aa48bfc4f8bd"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 01:05:29 2026 -0600"
      },
      "committer": {
        "name": "GitHub",
        "email": "noreply@github.com",
        "time": "Sat Nov 21 01:05:29 2026 -0600"
      },
      "message": "[raster] Paint a padded sweep whose color line has no length (#6837)\n\nA sweep gradient\u0027s color line has no length when its start and end\nangles are equal, or when all its stops share one offset.  The\nspecification draws nothing then for the repeat and reflect extend\nmodes only.  With pad the sweep still paints: the first color up to\nthe angle, the last color from it on.\n\nhb-raster returned early for all three modes, so such a padded\nsweep came out empty.  hb_paint_sweep_gradient_tiles(), which the\nvector and cairo paths use, already paints it.\n\nPaint it as a color line of the two colors over a sliver of an\nangle, which the existing loops then render as the sharp\ntransition.\n\nTesting: the eight sweep_coincident_*_pad glyphs of\ntest_glyphs-glyf_colr_1.ttf were blank and now match hb-vector\u0027s\nPDF output rendered with poppler, to a mean difference of 0.2 of\n255; the sixteen reflect and repeat ones stay blank; no other\nsweep glyph of the font changes.  A new test covers both, and\nfails without the fix.  Full test suite passes.\n\nFound while testing a fix for How HarfBuzz Works issue 67.\n\nCo-authored-by: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e"
    },
    {
      "commit": "2da26ba00f3b91127336a1aa582bfca45fe8a6fa",
      "tree": "cbdfa3f5e890eeda572411b616609bb500027022",
      "parents": [
        "51714b8ba1da9277e126fa226159d2379ad2bc41"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Fri Nov 20 21:52:10 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 00:51:05 2026 -0600"
      },
      "message": "[vector] Pad a PDF gradient in the color of the outer stop at its end\n\nA color line that pads goes on before its first stop in that stop\u0027s\ncolor, and after its last stop in that one\u0027s.  Two stops can share\nthe first offset, or the last: red before the gradient, say, and blue\nright from where it starts.\n\nhb-vector wrote that as a shading whose function has a piece of no\nlength at its end, and a shading that extends goes on in what its\nfunction gives at 0 and at 1.  In pdfium, MuPDF and poppler that is\nthe color of the inner one of the two stops, so the padding on that\nside was the wrong color; Ghostscript had the start right and the end\nwrong.  The SVG output has both right.\n\nLengthen such a color line by a stretch in the outer stop\u0027s color,\nand move that end of the shading out with it.  The stretch is a\nfifteenth of the length, which puts the two stops a sixteenth in from\nthe end: pdfium samples the function at every 256th, and has a sample\nthere.  A radial gradient is lengthened no further than halfway to a\nradius of zero; one that starts or ends there paints nothing beyond,\nand is written without the outer stop.\n\nTesting: a new test checks what is written for linear and radial\ngradients with such stops, and fails without the change.  Replaying\nthe same paint calls on hb-raster and hb-vector for 300 random scenes\nof them, the pixels are the same in:\n\n                  before  after\n  pdfium             145    300\n  MuPDF              145    300\n  poppler cairo      144    300\n  poppler Splash     144    300\n  Ghostscript        207    296\n\nand in Chrome and librsvg in all 300 before and after.  Of the four\nthat Ghostscript still differs on, the two that were reduced are a\nlinear gradient under a rotation, which it gets wrong whatever the\ncolor line.  Scenes of other gradients, 1500 of them, are written\nbyte for byte as before, and so are all 1553 mapped glyphs of the\nCOLR test fonts.\n\nFound with a font of random COLR glyphs.  The test and the vector\nfuzzer are clean under ASan and UBSan, and the test under MSan; three\nminutes of fuzzing with coverage and failing allocations (6 jobs, 241\nthousand runs) found nothing.  Full test suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "51714b8ba1da9277e126fa226159d2379ad2bc41",
      "tree": "88a418ba6ece7fd7525dd81e640b9a3d3c81b21e",
      "parents": [
        "90f592ba58ad7e1c788a4718a3742fe869a19de0"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Fri Nov 20 20:09:01 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 00:51:05 2026 -0600"
      },
      "message": "[cairo] Give cairo no color line of no length\n\nhb-cairo gave cairo a linear gradient between two points that are\none, or a radial gradient between two circles that are one, when the\ncolor stops all shared one offset.  cairo paints the first in the\naverage of its colors, however it is extended, and the second not at\nall.  So two colors that meet on a line came out as one flat color,\nas did such a gradient that repeats, which is to paint nothing; and\na radial gradient was missing, even with one stop.\n\nGive the color line a length, as hb-raster and hb-vector now do, and\npaint nothing if it repeats or reflects.  Paint nothing either for a\nlinear gradient along no line, which the specification calls\nill-formed and which cairo painted in the average color as well.\n\nTesting: a new test checks pixels of the nine gradients of the new\nfont as cairo shows them, and fails without the change.  hb-view\npaints all nine as hb-raster does; it had three of them so before.\nThe test is clean under ASan and UBSan.  Full test suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "90f592ba58ad7e1c788a4718a3742fe869a19de0",
      "tree": "da5be4310afd23075cfe64df348f3dcf37df9dc2",
      "parents": [
        "12fc1d49e22909b97e2ad2e074983c6b083678d3"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Fri Nov 20 20:08:59 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 00:51:05 2026 -0600"
      },
      "message": "[vector] Write a color line of no length as its two colors\n\nhb-vector wrote a linear or a radial gradient whose color stops all\nshare one offset with its two ends at one point, or as one circle,\nand viewers each make something else of that.  For two colors that\nmeet on a line, pdfium, MuPDF and Ghostscript painted nothing,\npoppler the first color everywhere, Chrome the last, and librsvg the\naverage of the two.  One that repeats, which is to paint nothing, was\npainted by Chrome and librsvg.\n\nGive the color line a length, as hb-raster now does.  The gradient is\nwritten as long as the font has it, around where the colors meet,\nwith two stops at one offset halfway along; nothing is written if it\nrepeats or reflects.\n\nA sliver of a gradient would paint the same, were its ends not\nwritten to two decimals, which leaves it pointing somewhere else:\nwith one, the PDF matched hb-raster in no more than 170 of 300 random\nscenes.\n\nWrite nothing either for the gradients that the specification calls\nill-formed: a linear one along no line, and a radial one between two\ncircles that are one, or of no radius.  hb-raster paints nothing for\nthem; viewers painted the first color, the last, their average, or a\nspeck.  The check on the circles is in\nhb_paint_radial_gradient_circles(), which hb-cairo shares.\n\nTesting: a new test checks what is written for the nine gradients of\nthe new font in both formats, and fails without the change.  Shown\nby pdfium, MuPDF, Ghostscript, Chrome and librsvg, all nine are what\nhb-raster paints, and so they are in poppler but for a strip where\ntwo colors meet, which it blends.  No viewer had more than four of\nthem so before.\n\nReplaying the same paint calls on hb-raster and on hb-vector for 300\nrandom scenes of such gradients, the pixels are the same in:\n\n                  before  after\n  pdfium               8    300\n  MuPDF                6    300\n  poppler cairo       14    300\n  poppler Splash       6    300\n  Ghostscript          8    299\n  Chrome               5    300\n  librsvg              6    300\n\nand, for 300 scenes of opaque colors, in all but two in Ghostscript,\nwhich has a linear gradient under a rotation wrong whatever its color\nline.  Scenes of gradients that have a length are written byte for\nbyte as before, and so are all mapped glyphs of the COLR test fonts\nbut six of colr-var-overflow.ttf: ill-formed gradients under an empty\nclip, which are no longer written.\n\npdfium and MuPDF take the colors of a shading from samples along it,\nand have the two meet a quarter of a percent of the gradient\u0027s length\nlate; poppler\u0027s cairo backend blends them over 1.3% of it, which is\ntwo pixels in the font\u0027s glyphs at 256 pixels to the em.  They do the\nsame for any two stops at one offset.\n\nThe test and the vector fuzzer are clean under ASan and UBSan, and\nthe test under MSan.  Full test suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "12fc1d49e22909b97e2ad2e074983c6b083678d3",
      "tree": "54842c4f68e412889cd6b9d1781f74aad6cffdbc",
      "parents": [
        "fc934bbebe61537f0a2510954607fca64dba7ee7"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Fri Nov 20 19:58:42 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 00:51:05 2026 -0600"
      },
      "message": "[raster] Paint a color line of no length as its two colors\n\nA color line whose stops all share one offset has no length.  The\nCOLR specification still gives it two colors if it pads: that of the\nfirst stop before the offset, and that of the last from it on, which\nis one color if it has one stop.  If it repeats or reflects it is\nill-formed, and nothing is painted.\n\nhb-raster painted nothing for a linear or a radial gradient with such\na color line, however it was extended: the gradient came out along no\nline, or between two circles that are one.\n\nGive such a color line a length before it is normalized, if it pads:\nof 1, around its offset, with its two colors meeting halfway along.\nThat is a color line like any other, and its gradient is painted like\nany other.  The stops are taken as the font has them, before they are\nsorted, so that the first and the last are the font\u0027s.  The helper is\nin hb-paint.hh, for hb-vector and hb-cairo to share.\n\nOne stop that repeats or reflects still paints nothing, as in\nhb_paint_sweep_gradient_tiles(), and as in Chrome.  Sweep gradients\nare #6837.\n\nTesting: a new font has nine gradients, seven whose color line has no\nlength and two that are ill-formed, and a new test checks what\nhb-raster paints for each.  It fails without the change, where the\nfive that pad came out empty.  hb-raster paints all 1553 mapped\nglyphs of the COLR test fonts as before.  The test and the raster\nfuzzer are clean under ASan and UBSan.  Full test suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "fc934bbebe61537f0a2510954607fca64dba7ee7",
      "tree": "9092c65a2a7d2baaefaea6d02552198a4b0cee35",
      "parents": [
        "8147528e139db9019bc25729b92cda776fa53a49"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Fri Nov 20 21:33:38 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 00:51:05 2026 -0600"
      },
      "message": "[paint] Cut a color line at a color with alpha multiplied in\n\nWhere a color line is cut, at the tip of a radial gradient\u0027s cone,\nits new stop took the color and the alpha of the two stops around it\napart.  OpenType requires gradient colors to be interpolated with\nalpha multiplied into them, and between two stops that differ in\nalpha that is another color: three eighths of the way from red to\ntransparent blue it is red at five eighths, not purple at five\neighths.\n\nInterpolate that stop\u0027s color with alpha multiplied in.\n\nIt showed in hb-view with a random COLR font once the stops are\nrewritten for cairo after the cut (#6850): a radial gradient from\nwhite to transparent cyan, whose color line starts before the tip,\ncame out tinted cyan.\n\nTesting: a new case in the radial tip test, fading out to a\ntransparent stop, fails without the change.  The test and the vector\nfuzzer are clean under ASan and UBSan, and the test under MSan.  Full\ntest suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "8147528e139db9019bc25729b92cda776fa53a49",
      "tree": "0179158f30d0c4f78a4bd067938ed7e46d431f37",
      "parents": [
        "af6e2b1662717ca9d7ea9e05accf667bde7097dc"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Fri Nov 20 17:57:38 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 00:51:05 2026 -0600"
      },
      "message": "[vector] Start a PDF cone a hair after its tip\n\npdfium draws a line through the tip of a cone, across everything the\nclip lets through, if the radial shading starts at the tip, with a\nradius of zero, and goes on before it with /Extend.  A gradient\nbetween a point and a circle that the point is outside of is written\nthat way, and so is one whose color line has just been cut at the\ntip.\n\nStart such a shading a hair after the tip: at 1/256 of the color\nline, or as far as it takes for the radius to be written as more than\nzero.  Its first color then goes on to the tip.  The shading cannot\nbe told not to go on at that end alone: poppler\u0027s cairo backend then\npaints the whole page.  A cone that ends at its tip has no line.\n\nTesting: written by hand, the shading of a cone from a point has a\nline through the tip in pdfium, and none starting 0.1 after it; MuPDF,\npoppler and Ghostscript paint both alike.  With the change the same\nholds for what hb-vector writes for that gradient, and for the cone\nof the previous commit that is cut at its tip.  The radial test\nchecks the circle written; no mapped glyph of the COLR test fonts has\nsuch a cone, and none has its output changed.  The test is clean\nunder ASan, UBSan and MSan.  Full test suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "af6e2b1662717ca9d7ea9e05accf667bde7097dc",
      "tree": "634c68f18c4aa30355e9d250426c70449bd4586f",
      "parents": [
        "637a6abc20e994a222ab3af359edce689079e657"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Fri Nov 20 18:14:05 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 00:51:05 2026 -0600"
      },
      "message": "[cairo] Give cairo no circle of negative radius for a radial gradient\n\nThe color line of a radial gradient starts where the radius is\nnegative if a color stop lies before the tip of the cone.  hb-cairo\npassed that radius to cairo_pattern_create_radial(), which takes a\nnegative radius for a positive one: a gradient between two other\ncircles.\n\nUse hb_paint_radial_gradient_circles(), as hb-vector does.  It cuts\nthe color line where the radius is zero, or takes one that repeats a\nwhole number of periods further along.\n\nTesting: the new font has six such gradients.  Rendered by hb-view,\n71% to 96% of the pixels of the five whose circles share a center\ndiffered from hb-raster\u0027s by more than 24 levels, and none do now.\nThe sixth is a cone, where 25% did and 3% do: the mirror image of the\ncone, which hb-raster paints until #6845.  The new test looks at a\npixel of two of them, and fails without the change.  It is clean\nunder ASan and UBSan.  Full test suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "637a6abc20e994a222ab3af359edce689079e657",
      "tree": "d044e8ca7ee654105b14688c153bea7dbba259a4",
      "parents": [
        "6bafcca22ab008e87f362f3fb296c8d3ee956f58"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Fri Nov 20 17:34:23 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 00:51:05 2026 -0600"
      },
      "message": "[vector] Write no circle of negative radius for a radial gradient\n\nA radial gradient is given by the two circles where its color line\nstarts and ends, and paints the circles between and beyond them that\nhave a radius.  The color line goes from the first color stop to the\nlast, and stops are not held to 0 and 1: one before the tip of the\ncone starts the color line where the radius is negative.\n\nhb-vector wrote that circle as it was, and a negative radius is valid\nin neither PDF nor SVG.  For such a PDF shading Ghostscript painted\nnothing, and MuPDF and poppler\u0027s cairo backend a disc, or part of\none, in one flat color; pdfium and poppler\u0027s Splash backend had it\nright.  The SVG writer left out a negative `fr`, which moved the\ncolors along and narrowed the cone, and wrote a negative `r`.\n\nGive the gradient two circles that can be written.  A color line that\nrepeats is taken a whole number of periods further along, an even\nnumber if it reflects, which paints the same.  One that does not is\ncut where the radius is zero, and starts or ends there with the color\nit has there; its other end keeps its stops, which say what color\ngoes on from it.  If all of it is past the tip, the color at its nearer\nend is painted from the tip on, and if no circle has a radius,\nnothing is.  This is done in hb-paint.hh, for hb-cairo to share.\n\nTesting: a new test checks the circles and colors written in both\nformats, and fails without the change.  No mapped glyph of the COLR\ntest fonts has its output changed: none has such stops.\n\nReplaying the same paint calls on hb-raster, with #6845 so that it\npaints no circle of negative radius itself, and on hb-vector for 300\nrandom scenes of radial gradients between two circles apart from each\nother, most with stops outside of 0 to 1, the pixels are the same in:\n\n               before  after\n  Ghostscript     235    297\n  MuPDF           292    300\n  poppler cairo   201    212\n  Chrome          267    300\n  librsvg         255    300\n\nand in all 300 with pdfium and Splash before and after.  poppler\u0027s\ncairo backend paints other cones in one color too.  For 300 scenes of\ngradients that repeat or reflect as well, written as SVG, they go\nfrom 180 to 300 in Chrome and from 174 to 300 in librsvg.\n\nThe test and the vector fuzzer are clean under ASan and UBSan, and\nthe test under MSan.  Three minutes of fuzzing from the COLR test\nfonts, with coverage and failing allocations, found nothing.  Full\ntest suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "6bafcca22ab008e87f362f3fb296c8d3ee956f58",
      "tree": "05fdbfb99b4cbb96a77275f16ec59d1e7d67fcc1",
      "parents": [
        "12e8b4202943fa06ab03563c0291e5ca2290490d"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Fri Nov 20 20:28:32 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 00:51:04 2026 -0600"
      },
      "message": "[cairo] Interpolate gradient colors with alpha multiplied in\n\nOpenType requires the colors of a COLR gradient to be interpolated\nwith alpha multiplied into them.  cairo interpolates the color and\nthe alpha of a pattern\u0027s stops apart, which differs between two stops\nthat differ in alpha.  From opaque red to transparent blue, hb-view\nwent through purple where hb-raster has red fading out: a transparent\nstop has no color to give.\n\nRewrite the stops of linear and radial gradients for cairo as\nhb-vector does for viewers, with the helper it now shares.  Sweep\ngradients are not touched: hb-cairo paints them in mesh patches and\ninterpolates their colors itself.\n\nTesting: a new font has four gradients from opaque red to blue,\nlinear and radial, to transparent blue and to blue at a quarter.  A\nnew test checks pixels of each against the two colors interpolated\nwith alpha multiplied in, to within four levels, and fails without\nthe change.\n\nComparing hb-view with hb-raster at 160 pixels to the em, 39% to 55%\nof the pixels of those four glyphs differed by more than 24 levels,\nand none differs by more than 2 now.  For\nforeground_color_linear_alpha_0.3 and its radial sibling in\ntest_glyphs-glyf_colr_1.ttf it was 27%, and is none by more than 2.\nOf the 1553 mapped glyphs of the COLR test fonts hb-view paints\nseven differently: those two in each of three fonts, and one of\nsixtyfour_subset.ttf by at most six levels; the rest pixel for pixel\nas before.\n\nThe test is clean under ASan and UBSan.  Full test suite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "12e8b4202943fa06ab03563c0291e5ca2290490d",
      "tree": "979ba479d98006aba35d4ffe036129b1d01d248c",
      "parents": [
        "e9cda272a2162db2cab7c89d3003013f91f66d09"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Fri Nov 20 20:28:00 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 00:51:04 2026 -0600"
      },
      "message": "[paint] Share the rewriting of color stops that differ in alpha\n\nhb-vector rewrites the color stops of a gradient so that a viewer,\nwhich interpolates their color and their alpha apart, comes to what\nCOLR asks for: colors interpolated with alpha multiplied in.  cairo\ninterpolates the way those viewers do, and hb-cairo needs the same.\n\nMove the rewriting from hb_vector_paint_t to hb-paint.hh, where it\ntakes the stops from an array and gives them in a vector.  Nothing\nelse changes: hb-vector writes all 1553 mapped glyphs of the COLR\ntest fonts byte for byte as before, in SVG and in PDF.  Full test\nsuite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    },
    {
      "commit": "e9cda272a2162db2cab7c89d3003013f91f66d09",
      "tree": "8c0b28db3a2c008b76510fd23295d34919b97cab",
      "parents": [
        "17f841444954fb4da9230cce193c451f482c4c60"
      ],
      "author": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Fri Nov 20 14:58:58 2026 -0600"
      },
      "committer": {
        "name": "Behdad Esfahbod",
        "email": "behdad@behdad.org",
        "time": "Sat Nov 21 00:51:04 2026 -0600"
      },
      "message": "[vector] Interpolate gradient colors with alpha multiplied in\n\nOpenType requires the colors of a COLR gradient to be interpolated\nwith alpha multiplied into them, hb_color_stop_t\u0027s documentation says\nso, and hb-raster and hb-gpu do it.  hb-vector writes the stops as an\nSVG or PDF gradient, and viewers interpolate the color and the alpha\nof the stops separately.  That differs between two stops that differ\nin alpha.  From an opaque orange to black at 30%, hb-vector\u0027s output\nwent through a dark brown that hb-raster\u0027s does not have, and a color\nfading out to a transparent stop took on that stop\u0027s color on the\nway, though a transparent stop has none.\n\nRewrite the stops so that the viewers\u0027 interpolation gives COLR\u0027s.\nA transparent stop takes its neighbor\u0027s color, on each side, which\nmakes those gradients exact.  Between two other stops that differ in\nalpha the color is not linear in the offset, and stops are added\nalong its curve: up to 15, as many as keep the premultiplied color\nwithin about two levels out of 255.  Stops that share an alpha are\nwritten as before.\n\nThe PDF function builder sorted stops that its callers had already\nsorted.  That sort is not stable past 24 stops and could now reorder\nstops that share an offset, so it goes.\n\nTesting: foreground_color_linear_alpha_0.3 and its radial and sweep\nsiblings in test_glyphs-glyf_colr_1.ttf differed from hb-raster on\n18% to 29% of their pixels in Chrome and librsvg (SVG) and in pdfium,\nMuPDF and poppler\u0027s cairo backend (PDF); now on none, but for the\nsweep in librsvg, which drops wedges of any sweep at that size\n(#6841).  Of the mapped glyphs of the COLR test fonts, these three in\neach of three fonts change their picture, two more change their bytes\nonly, and the rest are byte for byte what they were.\n\nReplaying the same paint calls on hb-raster and hb-vector for 300\nrandom scenes of linear, radial and sweep gradients of two or three\nstops with alphas from 0 to 255, about 140 had the pixels hb-raster\ngives them in each of those five renderers, and all 300 do now, as\ndo the first 100 in Firefox.  Ghostscript differs on eight; the two\nthat were reduced are a linear gradient under a rotation, whose\nlength Ghostscript gets wrong whatever its colors.\n\nThe new test paints gradients into SVG, reads the stops back, and\nchecks what a viewer makes of them against what COLR makes of the\nstops given, at a thousand offsets; without the change it fails.\nThe vector tests and fuzzer are clean under ASan and UBSan, the new\ntest under MSan, and the fuzzer with failing allocations.  Full test\nsuite passes.\n\nCo-Authored-By: Claude Fable 5.2 \u003cnoreply@anthropic.com\u003e\n"
    }
  ],
  "next": "17f841444954fb4da9230cce193c451f482c4c60"
}
