Closed Eugeny closed 2 years ago
Easy repro is probably to throw in the registerCharacterJoiner callback
On a sidenote - the particular issue might be fixed in opentype.js
v0.9.0 (see https://github.com/opentypejs/opentype.js/issues/348), while font-ligatures
still uses v0.8.0.
It's not unfortunately - I've tried forcibly upgrading ot.js to their latest release
Ah ok. Well even if it was fixed, the character joiner should not tear down the whole terminal in the first place.
What if we create an anonymous function to try catch the handler (which returns empty array on catch) and use that instead of the actual handler at
Does this seem ok?
I think we just need to catch and handle exceptions here:
Yeah, that's the only place it's called at right now, so we can update there. I was suggesting wrapping it, so that we don't have to worry about it later, in case it's called from other places. But that might not be necessary.
Should I go ahead and open a pr for this?
@LabhanshAgrawal I think that's the only place and probably won't change. That would be great!
In particular,
opentype.js
cannot parse the updated Monaco font file in macOS Monterey (No valid cmap sub-tables found.
), rendering xterm unusable when the ligature addon is active.