)]}'
{
  "commit": "d42be0a1027f597331bb48ef3dd0ef70b6226f65",
  "tree": "7c039e10415cdafd3424162535203a4645443909",
  "parents": [
    "9f0db02f31da8d0675aa66a174503cc593b7ba7d"
  ],
  "author": {
    "name": "luigi-rosso",
    "email": "hello@rive.app",
    "time": "Thu Jul 25 01:04:43 2024 +0000"
  },
  "committer": {
    "name": "luigi-rosso",
    "email": "hello@rive.app",
    "time": "Thu Jul 25 01:04:43 2024 +0000"
  },
  "message": "Make an HBFont from a CTFontRef.\n\nBy including ```rive/text/font_hb.hpp``` in iOS you\u0027ll get access to ```HBFont::FromSystem``` along with the ```HBFont::Decode``` (which we\u0027ve been using so far to generate Font objects to put into the fallback list).\n\nYou can get a UIFont with [this API](https://developer.apple.com/documentation/uikit/uifont/1619027-systemfontofsize?language\u003dobjc).\n\nYou should be able to cast that to a CTFontRef:\n```\nCTFontRef ctFont \u003d (__bridge CTFontRef)uiFont;\nauto fallbackFont \u003d HBFont::FromSystem((void*)ctFont);\n```\n\nYou can then use that in a fallback font procedure (like the example from the editor below) to load on demand/cache/provide from a list etc:\nhttps://github.com/rive-app/rive/blob/b5b930f88f18280afa44683c5756066abaa9b1dc/packages/rive_common/macos/rive_text/rive_text.cpp#L153-L175\n\nDiffs\u003d\nda1bb7745 Make an HBFont from a CTFontRef. (#7661)\n\nCo-authored-by: Luigi Rosso \u003cluigi-rosso@users.noreply.github.com\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "fadf9ed6dbd1775ca8edd3a5352a9cc296834e2e",
      "old_mode": 33188,
      "old_path": ".rive_head",
      "new_id": "0ec88f5081233809c774d9cc3dc4ceec6a5bcb1b",
      "new_mode": 33188,
      "new_path": ".rive_head"
    },
    {
      "type": "modify",
      "old_id": "52dd2a6991242f5fb73a9321a3e274465c2b0507",
      "old_mode": 33188,
      "old_path": "build/premake5.lua",
      "new_id": "66c7d20be09075b25f6eb879342f504e5a7a45a5",
      "new_mode": 33188,
      "new_path": "build/premake5.lua"
    },
    {
      "type": "modify",
      "old_id": "1123265c8396de1ccc6c2a09f4b263f691dbe6fc",
      "old_mode": 33188,
      "old_path": "dependencies/premake5_harfbuzz.lua",
      "new_id": "9c16173192fb54b690b87fcfd74e94de439f90b5",
      "new_mode": 33188,
      "new_path": "dependencies/premake5_harfbuzz.lua"
    },
    {
      "type": "modify",
      "old_id": "428aa156192b931862075333d9f8169cf39e7fe8",
      "old_mode": 33188,
      "old_path": "dependencies/premake5_harfbuzz_v2.lua",
      "new_id": "9265555254ea2115a0f77c7476e5afae77db8107",
      "new_mode": 33188,
      "new_path": "dependencies/premake5_harfbuzz_v2.lua"
    },
    {
      "type": "modify",
      "old_id": "318aeba4aefd73c31cfe61156c91227c491982ee",
      "old_mode": 33188,
      "old_path": "dev/test/premake5.lua",
      "new_id": "0cbd906277662bf295554211befb56a29666b1a2",
      "new_mode": 33188,
      "new_path": "dev/test/premake5.lua"
    },
    {
      "type": "modify",
      "old_id": "95346110a3343e9367d8841e044135f2cce44eb0",
      "old_mode": 33188,
      "old_path": "include/rive/text/font_hb.hpp",
      "new_id": "ea112b6e2c5757ca5a010601d34abc6b55e59cad",
      "new_mode": 33188,
      "new_path": "include/rive/text/font_hb.hpp"
    },
    {
      "type": "modify",
      "old_id": "3d6c8aa5cf23ff42c98cce85231980069dac7763",
      "old_mode": 33188,
      "old_path": "premake5_v2.lua",
      "new_id": "5abc30edf6c82fb6b97990071ef4f2d8d0b348c4",
      "new_mode": 33188,
      "new_path": "premake5_v2.lua"
    },
    {
      "type": "modify",
      "old_id": "8bd2324d1a98b737ad78ca39044f9e0d09c5f98b",
      "old_mode": 33188,
      "old_path": "src/text/font_hb.cpp",
      "new_id": "4c477085679b49bc8051f55fa9d9cdb156809ea4",
      "new_mode": 33188,
      "new_path": "src/text/font_hb.cpp"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "0277d74da75e34c6c6e107dc641342a44a63fc6e",
      "new_mode": 33188,
      "new_path": "src/text/font_hb_apple.mm"
    }
  ]
}
