[Tuxpaint-devel] Some character is not rendered on windows.
An award-winning drawing program for children of all ages
Brought to you by:
wkendrick
|
From: TOYAMA Shin-i. <sh...@wm...> - 2021-11-05 07:07:07
|
Hi, TOYAMA Shin-ichi wrote in <6183db00.5009%sh...@wm...> >Bill Kendrick wrote in <202...@sh...> >>Regarding those characters that did not appear in the OSK for you, >>I made the above discover by simply replacing the code that converts >>any >= 0x00010000 values in str[] to UTF-8, for sending to SDL_Pango, >>and just doing this: >> >> utfstr[j++] = 'X'; >> >>...But I could still see the symbols (and not an "X"). :) >> >>Perhaps that's a font issue? Can you play around with it? > >In my understanding, we shoud have rectangle shape instead of the >correct symbol if it is a font issue, wright? > >However, nothing appears this case by clicking those simbols on >the OSK. > >I guess this might not be caused by render_text_w(), but by >something else in the OSK codes. It was not in the OSK codes. Taking the "EuroSign (U+20AC)" as an example, iswprint() returns 0 to it but it is actually printable. I confirmed it by disabling the check by iswprint() around the line 3018 in tuxpaint.c as follows. --- - else if (iswprint(*im_cp) && (cur_tool == TOOL_TEXT || cur_label == LABEL_LABEL)) + else if ((cur_tool == TOOL_TEXT || cur_label == LABEL_LABEL)) --- Hrm... Do I have to write private iswprint() ? -- TOYAMA Shin-ichi mailto:sh...@wm... |