The first system I know of that does solve this very well is DirectWrite. Sergey Malkin describes the solution here: https://github.com/harfbuzz/harfbuzz/issues/1463#issuecommen...
It sounds like Chromium has since also adapted the "safe to break" API. Great to see people engaging these hard problems!