memononen / fontstash

Light-weight online font texture atlas builder
zlib License
692 stars 88 forks source link

Allow unicode paths for loading fonts on windows. #28

Closed mkassner closed 7 years ago

mkassner commented 7 years ago

On windows a font that sits a path containing non ascii charaters fopen fails.

I m not sure what the best fix would be...

memononen commented 7 years ago

Looking at this thread: https://github.com/ocornut/imgui/issues/917 Maybe something like this could work: https://github.com/Wohlstand/UTF8-fopen If you get it working, would you mind making a pull request?