UTF8 encoding in text icons
Anton Reiser (471) 63 posts |
I’m trying to display unicode characters in a text icon within a Latin1 alphabet environment. This works with using a antialiased font instead the system font and the encoding sequence ‘\EUTF8’ in the font name. Unfortunately UTF8 codes, containing WIMPSymbol byte codes are shown as WIMPSymbol. Is there a workaround for WIMPSymbol substitution in UTF8 context? Of course, as the WindowManager is not aware of UTF8, all key pressed in such a icon, must be handeled by the program itself. I found one inconsistity: the WimpPoll GainCaret event delivers the index as character count, contrary to Wimp_GetCaretPosition, here the index is a byte count. |