podgorskiy / bimpy

imgui for python
https://podgorskiy.github.io/bimpy/
MIT License
204 stars 32 forks source link

How can bimpy import unicode? #33

Closed 529324416 closed 9 months ago

529324416 commented 4 years ago

how to show chinese or japanese with your package ?

podgorskiy commented 3 years ago

Japanese or Chinese should not be a problem, you need to load the font with the needed glyphs. On the other hand, Arabic, Thai, and others that require complex text shaping likely won't be supported.

I might add a section on how to use other fonts to the readme file.

podgorskiy commented 3 years ago

This should work now, please see: https://github.com/podgorskiy/bimpy#non-english-text

Mayorc1978 commented 2 years ago

This should work now, please see: https://github.com/podgorskiy/bimpy#non-english-text

bp.load_fonts(chinese=True, latin_ext=True, japanese=True, cyrillic=True)

This line of code will crash the program, giving this error, and by the way the demo file doesn't work either (tested on Windows10): raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found

I've also tried using "\u" or "\x" strings to have special characters but apart from trademark and some other symbols, it looks like most symbols are not supported, for instance I've tried to get ↓ ⇓ or ▼ and they don't work, they show as '?' How do I solve and import all of the symbols correctly?