revery-ui / revery

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

fix(harfbuzz/#933): Invalid glyph counts w/ Ligatures #934

Closed zbaylin closed 4 years ago

zbaylin commented 4 years ago

@bryphe caught that we were incorrectly calculating the length of the returned buffer. I fixed the call order and the glyph_count.

The string "fi" now correctly only returns one glyph in Roboto Mono, and the other strings work as they did before.