about display other language

How are you doing?

I have a question.

I’d like to display Korean characters by Raw Drawing using PgDrawText
function. We have Korean fonts(*.phf)
ASCII characters are displayed well.
ex1.
char *s = “Hello”;
PhPoint_t p = {100, 100};

PgSetFont = “hev18”;
PgSetTextColor(Pg_WHITE);

PgDrawText(s, stren(s), &p, 0);

result:
Hello

But Korean characters are not.
ex2.
char *s ="Korean Characters "; // Actually Korean Characters are broken.
PhPoint_t p = {100, 100};

PgSetFont = “???”; // How can I set this font?
PgSetTextColor(Pg_WHITE);
PgDrawText(s, stren(s), &p, 0);

result:
// Nothing displays.

Is it possible to be showen Korean Characters?


Thanks a lot…
Good day!


de ppojung
(ppojung@yahoo.co.kr)

ex2.
char *s ="Korean Characters "; // Actually Korean Characters are broken.

Your charactor string will need to use UTF-8 charactors,
which is a translation of the 16 bit Unicode.

PgSetFont = “???”; // How can I set this font?

Look in /usr/photon/font for the correct font name.

Mitchell Schoenbrun --------- maschoen@pobox.com