revery-ui / revery

:zap: Native, high-performance, cross-platform desktop apps - built with Reason!
https://www.outrunlabs.com/revery/
MIT License
8.06k stars 196 forks source link

fix(font-fallback): Hang when fallback font also does not have character #989

Closed bryphe closed 4 years ago

bryphe commented 4 years ago

Issue: Font-fallback can hang, when the fallback font does not have a glyph for a character.

Defect: We assume that, if we get a fallback-font from Skia for a particular character, that it will be able to provide a glyph for that character. If it doesn't - we end up spinning in an infinite loop. It looks like there are cases where we can ask for a fallback font for a character, and get a font, but the font won't actually provide the character.

Fix:

TODO:

Fix for https://github.com/onivim/oni2/issues/2286