greenfork / nimraylib_now

The Ultimate Raylib gaming library wrapper for Nim
MIT License
151 stars 17 forks source link

Can codepoints map to unicode.Rune #69

Open planetis-m opened 2 years ago

planetis-m commented 2 years ago

It would be nice if we can replace codepoints arrays with seq[Rune]. Need to investigate if such conversion is possible.

planetis-m commented 2 years ago

So yes they can:

GetCodepointCount -> unicode.runeLen GetCodepoint -> runeAt but it doesn't return 0x3f on error CodepointToUTF8 -> $, toUtf8 TextCodepointsToUTF8 -> $