Thank you for you kindness and quik reply. I tried in QEMU and it is much easier. However I found it was hard to adapt for Chinese.
1. Chinese has thousands of chars and it will explode the memory.
2. RBF font doesn't support for Chinese codepage.
3. Your code assumes every character can be indexed by a char type in [0,255], but Chinese needs wchar.
As conclusion, only languages which have less than 256 characters can be used.
Tell me if I am wrong. Thank you.
1. Chinese has thousands of chars and it will explode the memory.
2. RBF font doesn't support for Chinese codepage.
3. Your code assumes every character can be indexed by a char type in [0,255], but Chinese needs wchar.
As conclusion, only languages which have less than 256 characters can be used.
Tell me if I am wrong. Thank you.