Page 1 of 1

DrawText ( Is it possible other language??)

PostPosted: Apr 8, 2002 @ 6:33am
by cat48
Hi...

I have a problem :cry:
DrawText function support other language???
Just English???
How can I use font files???

PostPosted: Apr 8, 2002 @ 8:30am
by
Gapitools supports bitmapped fonts, so you could prepare a bitmap containing special characters (á,è, etc) and load it using Initializefont. You could then use DrawText to display the text correctly, providing you'd mapped the special character to a normal character, e.g "Hello!" would become "Hèllo!" using DrawText. Don't know if Gapitools supports non-standard characters natively, haven't used it much yet.

PostPosted: Apr 9, 2002 @ 8:49pm
by Johan
Yes, as T1 says, DrawText using bitmapped fonts is the way to go.

GapiDraw/Tools actually supports all extended characters using DrawText (bitmapped). The problem is that the TEXT macro does not correctly map extended characters to their ASCII values.

I would suggest doing as T1 says.. Map "é" to "#" or another character you do not use regularly. Stick with characters lower that 128. Or (the advanced way) use the TEXT macro, check the ASCII value of your character, and place the correct character at the correct offset in the bitmapped font.

/Johan

Thanks But....

PostPosted: Apr 10, 2002 @ 11:51am
by cat48

PostPosted: Apr 10, 2002 @ 12:36pm
by Johan