I'm pretty sure this needs to be up here, because I don't think the solution is one to be found in the Novice/Intermediate forum.
I have a script that will re-size text to text within the bounds of a certain area. My script is as follows:
var card_lore, px, py, space_width, space_height, lore_height, factor;
draw_set_font(font_card_lore) ;
card_lore = argument0 ;
px = 35.2 ;
py = 398.2 ;
space_width = 272 ;
space_height = 50 ;
lore_height = string_height_ext(card_lore,-1,space_width) ;
if (lore_height > space_height)
{factor = space_height / lore_height}
else
{factor = 1} ;
draw_text_ext_transformed(px,py,card_lore,-1,space_width / factor,factor,factor,0) ;This works, more or less, except that every time the text needs to get smaller, it ends up wrapping back onto less lines, and not utilizing all of it's vertical space. This is a bit of a problem because the text is already pretty small to start with.
Does anybody know how I might scale it down just enough so that it fills the space, rather than leaving empty lines at the bottom?
Edited by Shadow Archangel, 09 April 2012 - 12:52 AM.













