This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

RDK 4.0 OSD font

hello everyone.

i want to know in the file "unicode_cn_420sp_420_30.c", the array char cn_420sp_420_30_CharList[] =
"0\0001\0002\0003\0004\0005\0006\0007\0008\0009\000-\000:\000通道";

what is the "0\0001\0002\0003\0004\0005\0006\0007\0008\0009\000-\000:\000" meaning?

tks

  • please reference the APP note Text_Based_SoftwareOSD_for_DVR_UserGuide in RDK. chapter 5.

     

    for unicode, you should following the following example

                    in unicode: UInt16 example8[]= "ʾÀý8\0008\000"; because it is unicode, so '8' is just 1 byte, we need

                    convert it to 2 byte, so we add '\000' to the end of this string, because of this, we can't use the libc

                    string api, because it consider '\000' as the end of string. so you'll lost the second '8'.