Come Chat with us live! Learn how HERE!
step 0) realize that you can not load all unicode characters. step 0) so pick "Basic Multilingual Plane"step 1) also pick a few blocks you need from that planestep 1) create extra images and font data files for thosestep 2) create a clear text master font filestep 2) a line like "[block range start]-[block range end] [datafile]" for each blockstep 2) load them at startupstep 3) use utf8 everywherestep 4) remember that fonts use first 128 chars. you should increase thatstep 4) (at least to 256 since most of the code blocks have ~256 chars)step 5) detect non ascii in utf8 during drawing chars, convert to wide charstep 6) (actually you might convert the whole string to wide char)step 6) find the unicode value of the char and use ranges to find the right datafilestep 7) use the corresponding datafile and draw it (as you'd draw a char with a different font)step how? convert utf8 char to int index. check ranges for index. pick the corresponding onestep set new_index to index - [block range start]. this is the image index in the datafileINPUT? -> problem? :/
You make up Qrntz, u always angry, just calmdown.
I am stupid idiot who dares to open mouth and start debating
"Basic Multilingual Plane"