GLBasic forum

Main forum => GLBasic - en => Topic started by: Carlos on 2009-Jul-25

Title: Can GLBasic draw text with Eastern languages such as Chinese?
Post by: Carlos on 2009-Jul-25
Hi, all. I am new to GLBasic.
I see that GLBasic use bitmap fonts to draw text and the font tool seems only can generate ASCII 256 characters.
So are there any ways to use eastern languages fonts to draw text?
Other apps like Darkbasic Pro can draw eastern languages text by choosing suitable charsets.
Can GLBasic do that?

Thanks
Title: Re: Can GLBasic draw text with Eastern languages such as Chinese?
Post by: Moru on 2009-Jul-25
It's all up to you as a programmer to create a system to draw other character sets. I have seen someone creating one for russian character sets last year.

See this post: http://www.glbasic.com/forum/index.php?topic=1609.0 (http://www.glbasic.com/forum/index.php?topic=1609.0)
Title: Re: Can GLBasic draw text with Eastern languages such as Chinese?
Post by: MrTAToad on 2009-Jul-25
Doesn't GLBasic use unicode internally and then converts it to ASCII for printing ?
Title: Re: Can GLBasic draw text with Eastern languages such as Chinese?
Post by: Moru on 2009-Jul-25
Unicode = ascii as long as you only use the "normal" characters in the english alphabed. The higher characters are encoded as two bytes or more depending on what character you use, the rest is still in ascii. That makes string handling a bit problematic if you expect one character = one byte :-)
Title: Re: Can GLBasic draw text with Eastern languages such as Chinese?
Post by: MrTAToad on 2009-Jul-25
Sounds like a mixture of 1 and 2 bytes are used for character - might just be worth fixing on 2 bytes...
Title: Re: Can GLBasic draw text with Eastern languages such as Chinese?
Post by: Moru on 2009-Jul-26
Finaly found what I was realy looking for:

http://www.glbasic.com/forum/index.php?topic=2321.0

Had to search manually, couldn't think of any search-terms that helped :-)