Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unicode support? #11

Closed
bmcorser opened this issue May 19, 2019 · 2 comments
Closed

Unicode support? #11

bmcorser opened this issue May 19, 2019 · 2 comments

Comments

@bmcorser
Copy link

Looking at @floooh's browser demo https://floooh.github.io/sokol-html5/wasm/sgl-microui-sapp.html, when I type eg. the § character into the input for the log window and click the submit button, what looks like a deformed copy of the sprite sheet for the font appears.

Not sure if this is just because the demo isn't written to support unicode, or a bug? Feel free to close this issue if the former is the case.

@rxi
Copy link
Owner

rxi commented May 20, 2019

Though the library is written to support unicode, the demo itself is meant only as the most minimal implementation of rendering as to provide a basic demonstration of the library itself. The demo code shouldn't typically be used anywhere else. That being said I should probably change the demo rendering code to, at the very least, ignore characters outside the 0-127 range.

@rxi
Copy link
Owner

rxi commented May 29, 2019

Changed the demo's renderer to use a unicode replacement glyph for unicode characters: 808b46f

@rxi rxi closed this as completed May 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants