Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
5 registered members (AbrahamR, wdlmaster, 7th_zorro, dr_panther, 1 invisible), 764 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 3 1 2 3
Unicode issue #229699
09/29/08 18:08
09/29/08 18:08
Joined: May 2008
Posts: 123
B
BES Offline OP
Member
BES  Offline OP
Member
B

Joined: May 2008
Posts: 123
I know that 3DGS doesn't currently support Unicode, but before I purchased the engine, I emailed Conitec about this and they assured me that it was possible. Does anyone know how this is possible? The application I'm developing require the use of the asian language. I'd like to know if this is possible or did I choose the wrong engine?

Re: Unicode issue [Re: BES] #229705
09/29/08 18:46
09/29/08 18:46
Joined: Aug 2003
Posts: 7,439
Red Dwarf
Michael_Schwarz Offline
Senior Expert
Michael_Schwarz  Offline
Senior Expert

Joined: Aug 2003
Posts: 7,439
Red Dwarf
Originally Posted By: BES
I know that 3DGS doesn't currently support Unicode


It does

Quote:
,but before I purchased the engine, I emailed Conitec about this and they assured me that it was possible.


see?

Quote:
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.

Quote:
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: Michael_Schwarz] #229715
09/29/08 21:10
09/29/08 21:10
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
you know just wanted to post .


and some chinese characters:

project thread: http://www.coniserver.net/ubb7/ubbthreads.php?ubb=showflat&Number=221090#Post221090

Last edited by Quadraxas; 09/29/08 21:44.

3333333333
Re: Unicode issue [Re: BES] #229755
09/30/08 01:49
09/30/08 01:49
Joined: May 2008
Posts: 123
B
BES Offline OP
Member
BES  Offline OP
Member
B

Joined: May 2008
Posts: 123
I'm glad to hear that 3DGS is unicode ready. Quadraxas, your screenshot looks real cool. Do you have some code examples of how you got the asian characters on the screen. I've installed Arial Unicode MS, but can't anything to show up. Thanks.

Re: Unicode issue [Re: BES] #229756
09/30/08 02:00
09/30/08 02:00
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
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?

Re: Unicode issue [Re: DavidLancaster] #229765
09/30/08 05:30
09/30/08 05:30
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İ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,439
Red Dwarf
Michael_Schwarz Offline
Senior Expert
Michael_Schwarz  Offline
Senior Expert

Joined: Aug 2003
Posts: 7,439
Red Dwarf
Originally Posted By: DavidLancaster
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: Michael_Schwarz] #229860
10/01/08 05:24
10/01/08 05:24
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
Hi Michael,

Thanks for your help. I've set the font to Arial Unicode MS and the text appears as it should, in japanese (in notepad). The problem is either the font in gamestudio or that strings can't hold unicode text??? I load the text into a 3DGS string, display it on screen with the font Arial Unicode MS, and it displays incorrectly.

Any ideas?

David

Re: Unicode issue [Re: DavidLancaster] #229861
10/01/08 05:30
10/01/08 05:30
Joined: Nov 2004
Posts: 862
Australia
DavidLancaster Offline
User
DavidLancaster  Offline
User

Joined: Nov 2004
Posts: 862
Australia
This is how it looks:



Here is my code:

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,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İ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
Page 1 of 3 1 2 3

Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1