Gamestudio Links
Zorro Links
Newest Posts
Zorro plugin for Hyperliquid.xyz
by mayarik. 10/24/26 09:14
ZorroGPT
by TipmyPip. 10/24/26 01:54
Tradestation missing in table of contents
by AndrewAMD. 10/23/26 14:35
No connection to MT4
by JeyKey II. 10/22/26 15:33
Zorro tutorial ideas?
by mistery. 10/21/26 05:28
Avoid "log\ - delete old files" message
by Martin_HH. 10/20/26 07:23
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 5,885 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
JimSimons, julienp, julienper, KelleyAbbey, Yopachi
19246 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,142
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 28,142
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