treeform / fidget

Figma based UI library for nim, with HTML and OpenGL backends.
MIT License
763 stars 32 forks source link

Support for unicode char #140

Closed SOVLOOKUP closed 3 years ago

SOVLOOKUP commented 3 years ago

After using demo in examples/demo, I find that it doesn't support displaying unicode chars like emoji or chinese/korea characters even though I tried to change the font.

Will fidget support unicode text? It's important to me, thanks.

treeform commented 3 years ago

I do support chinese/korean characters but the font you use also needs to support it. Its rare for fonts too, most of the time it falls back to system. I don't have system fonts fall back. See the typography lib for more details: https://github.com/treeform/typography

image

I support hanazono font which support CJK: https://github.com/treeform/typography/tree/master/tests/fonts/hanazono

I do not support emoji right now.