Windows displaying division sign

B

bushrat

Guest
I'm trying to display a division sign in my game by using the chr() method. Here is an extract of the code:

question[0] = "17 "+chr(247)+" 9 = ";
...
draw_set_font(fnt_large);// setting up the font
draw_set_halign(fa_center);
draw_text(x,y-10, question);

...
show_message("Incorrect the answer is " + question+" "+answer+" you typed "+ string(ans) );


the message box displays the division sign but the draw_text() method results in a space where the sign should be. I'm using an arial font, not sure if this is the problem, but the problem persisted when I commented that line of code out. Perhaps someone can suggest another font that will work?
 
H

Humphrey M

Guest
Weird problem, alternatively you could just draw a sprite of the division symbol in between the text...
 

jo-thijs

Member
Hi and welcome to the GMC!

Are you using the default font?
I think the default font only shows the characters with an ascii code between 32 and 127.
If you use your own font, you can decide the range of viewable characters in the box above the +, - and "clear all" buttons.
Add a range that contains 247.
 
B

bushrat

Guest
Thanks guys! I didn't realised that I could change the range.
 
Top