QNX RTOS v4 Knowledge Base
QNX RTOS v4 Knowledge Base
Title |
Writing special characters with the Unicode font |
Ref. No. |
QNX.000004807 |
Category(ies) |
Development |
Issue |
I'm writing an application under Photon and I have to use Unicode fonts to write some special characters. I know that my special chars have the Unicode: 0x011E and 0x015E.
|
Solution |
Here is a code example of how to do this: wchar_t wc[1]; char caBuff[100];
wc = 0x011E wctomb(caBuff, wc); PgDrawText(caBuff, .........); // or pass the string to a widget.
Also, take a look at the wcXXXX() and mbXXXX() functions for a better understanding of Unicode, and fonts. |
|