Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
0 registered members (), 18,654 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
draw_obj with unicode strings #413759
12/17/12 13:11
12/17/12 13:11
Joined: Nov 2012
Posts: 62
Istanbul
T
Talemon Offline OP
Junior Member
Talemon  Offline OP
Junior Member
T

Joined: Nov 2012
Posts: 62
Istanbul
Hi, I think draw_obj has problems with unicode strings. I tried many ways to use it but it just draws the first character of the string. I think that's because second byte of a 16-bit char is most of the times zero(0x0) and draw_obj interprets it as a 8-bit null char.
If this is not the case, can you provide me an example to use draw_obj with a unicode string?

Re: draw_obj with unicode strings [Re: Talemon] #413768
12/17/12 15:22
12/17/12 15:22
Joined: Jul 2000
Posts: 28,024
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,024
Frankfurt
Code:
function main() {
	TEXT* textUnicode = txt_create(10,0);  
	textUnicode.font = font_create("Arial Unicode MS#30");  
	txt_loadw(textUnicode,"Unicode.txt");
  	while(1) {
  		draw_obj(textUnicode);
  		wait(1);
  	}
 }



Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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