|
Re: Unicode issue
[Re: BES]
#229705
09/29/08 18:46
09/29/08 18:46
|
Joined: Aug 2003
Posts: 7,440 Red Dwarf
Michael_Schwarz
Senior Expert
|
Senior Expert
Joined: Aug 2003
Posts: 7,440
Red Dwarf
|
I know that 3DGS doesn't currently support Unicode It does ,but before I purchased the engine, I emailed Conitec about this and they assured me that it was possible. see? Does anyone know how this is possible? The application I'm developing require the use of the asian language. Well, first you need to use TrueType fonts and not Bitmap fonts. (before you ask: Look under "FONTS" in the manual) Second, the font must be Unicode compatible (Like Arial Unicode for example) and third, the customer needs to have that font installed, if necessary make the installer/setup program install it. I'd like to know if this is possible or did I choose the wrong engine? As you can see, you didn't, as it is possible.
"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
|
|
|
Re: Unicode issue
[Re: DavidLancaster]
#229765
09/30/08 05:30
09/30/08 05:30
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
@BES: refer to the thread link i posted. The Chinese project is not mine.(bomber's i guess.)
@david: i cant help about japanese chars, this time. Maybe someone else...
3333333333
|
|
|
Re: Unicode issue
[Re: DavidLancaster]
#229788
09/30/08 12:51
09/30/08 12:51
|
Joined: Aug 2003
Posts: 7,440 Red Dwarf
Michael_Schwarz
Senior Expert
|
Senior Expert
Joined: Aug 2003
Posts: 7,440
Red Dwarf
|
Hey guys, myself and Simon have been trying to implement unicode.
Here is how we are defining the font:
FONT* GlobalFont = "Arial Unicode MS#16";
We are then reading text from a unicode .txt file and storing the data into a string. But when I display the string on screen the text isn't in Japanese it's just normal Ariel font. Any ideas how to implement it? my guess is, that the textfile uses a specific chinese font for Western PC's (like I have some Thai fonts you can use to type thai text on western keyboards). In that case you'd have to use that specific font. Try to open the file in notepad and set the font from notepad to arial unicode and if you see normal characters you know that you are using the wrong font type the text was written in.
"Sometimes JCL reminds me of Notch, but more competent" ~ Kiyaku
|
|
|
Re: Unicode issue
[Re: DavidLancaster]
#229861
10/01/08 05:30
10/01/08 05:30
|
Joined: Nov 2004
Posts: 862 Australia
DavidLancaster
User
|
User
Joined: Nov 2004
Posts: 862
Australia
|
This is how it looks:  Here is my code:
var filehandle_n;
STRING* strUNICODE = " ";
TEXT* testing_text =
{
pos_x = 0; pos_y = 0; red = 0; green = 0; blue = 0; layer = 99;
font = GlobalFont; string (" "); flags = FILTER | VISIBLE;
}
function testing_startup()
{
str_cpy(gString,"LoadThisString.txt");
filehandle_n = file_open_read(gString);
if (filehandle_n != 0)
{
file_str_read(filehandle_n,strUNICODE);
}
file_close(filehandle_n);
str_cpy((testing_text.pstring)[0],strUNICODE);
}
Last edited by DavidLancaster; 10/01/08 05:30.
|
|
|
Re: Unicode issue
[Re: DavidLancaster]
#229874
10/01/08 09:18
10/01/08 09:18
|
Joined: Oct 2007
Posts: 5,211 İstanbul, Turkey
Quad
Senior Expert
|
Senior Expert
Joined: Oct 2007
Posts: 5,211
İstanbul, Turkey
|
try copying your text file into a TEXT*. if this does work, then it has something to do with file_str_read.
3333333333
|
|
|
|