solemnwarning / rehex

Reverse Engineers' Hex Editor
https://rehex.solemnwarning.net/
GNU General Public License v2.0
2.31k stars 116 forks source link

Render wide characters in document view #173

Closed solemnwarning closed 2 years ago

solemnwarning commented 2 years ago

Only characters whose width matches "normal" ASCII characters in the selected font are drawn, as drawing them in the string would misalign characters afterwards and cause rendering glitches.

In the case of multibyte characters, we could check that the required width is less than the sum of the underlying bytes in the font, and skip them to preserve alignment when so.

image

(See #172)