Mail Archives: djgpp/1999/08/31/07:18:01
Erik Ellingsson wrote:
>
> Hello!
>
> We are two swedish boys, we are currently working with a project using
> DJGPP and ALLEGRO. Because -we are swedish we want to use ASCII
> characters in the function textout( ); The characters are between the
> value 128-255. Is this possible using ALLEGRO? and if it is possible
> how are we going to do this? Do we have to alter the keyboard
> settings/file or something like that?
1. Set your font to include whatever characters you need.
2. Use chars in the string to display those characters.
For example:
Say I created a font with "ò" in ANSI (not ASCII) #149.
To display this in Allegro:
textprintf(mybmp,myfont,myx,myy,mycolor,"oo%coo",149); /* this will
display "ooòoo" */
OR
sprintf(mystr,"oo%coo",149);
textout(mybmp,myfont,mystr,myx,myy,mycolor);
*note: I'm not sure as to the exact argument order.
-Mike
- Raw text -