Jump to content


Photo

Text/font problems in GM 8.1


  • Please log in to reply
1 reply to this topic

#1 Canite

Canite

    Canigget

  • GMC Member
  • 1358 posts
  • Version:GM8

Posted 18 April 2011 - 08:10 PM

I don't know if this was changed on purpose in gm 8.1, but all of my drawing is messed up :/
Here's some screenshots to explain it better:
In GM 8.0
Posted Image
In GM 8.1
Posted Image

The code for actually drawing all of the menu options is quite long, but I'll give a little sample of it:
draw_text(room_width/2,room_height/2 +(i*32), menutext[menupage,i]);
draw_set_blend_mode_ext(bm_inv_dest_color,bm_inv_src_color);
draw_rectangle_color(room_width/2-(string_width("Achievements")/2),room_height/2 +(i*32)-12,room_width/2+(string_width("Achievements")/2),room_height/2 +(i*32)+12,c_white,c_white,c_white,c_white,false)
draw_set_blend_mode(bm_normal);

That's for the text and rectangles. It also doesn't draw the title (which is also just text).
Note that I didn't change anything from GM 8 to GM 8.1, I simply downloaded it and tested this game in it.
I can still navigate the menus (without seeing what I'm doing), so it's only the drawing that's messing up. Has anyone else encountered this or know why this is happening?

edit: In the pictures, disregard the black/white squares, they are just moving around and works fine in game, but they also use the exact same method as the other draw_rectangle_color()'s I have for the menu boxes, so I'm confused..

edit again: I've determined that it's something to do with the new font options. I'm not sure how to navigate the new font thing, but it's not drawing any text (and the rectangles used the text's width in it's coordinates, so they aren't drawn either)

edit yet again!: It's something wrong with the font I'm using, Small Fonts. If I change this to something else, everything is drawn. I really want to use this font though, so any help is appreciated. Is it something to do with the Character Set? I have no idea what that is or if it's supposed to be something else (it's on DEFAULT_CHARSET right now).

Edited by Canite, 18 April 2011 - 08:34 PM.

  • 0

#2 Water Chicken

Water Chicken

    Got it memorized?

  • GMC Member
  • 1191 posts
  • Version:GM:Studio

Posted 18 April 2011 - 08:37 PM

I'm also having the same problem with fonts. And small fonts/terminal are my most used...
Maybe with the next update when you are able to turn the anti-aliasing off it will work.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users