Shadow64
Member
Hi there. I previously posted this as a bug, but was asked to open it as a suggestion in the forums. I've been told that if there is enough desire shown in the thread for this kind of functionality then the team will possibly add it to the list. I figure it's worth a shot! So please sound off, if you agree. 
It would be really great to have better text formatting functions in GMS2. For instance, I've noticed that you can change the height of separation for lines of text if you use:
but outside of that function you can't change the line height value. It would be very useful if that was a value which could be retrieved and set, just like draw_set_font.
My suggestion would be:
After calling this, people could use draw_text(x, y, string); without having to worry that it was just going to use the default line height value.
Since the value is clearly accessible by another function, it would be nice if this was something we could access and change for all text - not just when using draw_text_ext. It also seems like it wouldn't take long to add. Obviously, it would still default to the value of a font's "M" height if left unaltered.
Here are some other text functions which would be INCREDIBLY helpful:
I recently created a dialogue system and it would have been much easier if I could have controlled the text at this level. I had to spend a lot of time "tricking" GameMaker to do these things and I know some people think that's the point, but a lot of these are fairly basic functions when it comes to controlling the look of text.
Thank you for listening. With any luck someday we'll have these functions or others like them.
It would be really great to have better text formatting functions in GMS2. For instance, I've noticed that you can change the height of separation for lines of text if you use:
Code:
draw_text_ext
My suggestion would be:
Code:
draw_set_font_sep(height);
Since the value is clearly accessible by another function, it would be nice if this was something we could access and change for all text - not just when using draw_text_ext. It also seems like it wouldn't take long to add. Obviously, it would still default to the value of a font's "M" height if left unaltered.
Here are some other text functions which would be INCREDIBLY helpful:
Code:
draw_set_font_kerning(width); - altered kerning (space between letters)
draw_text_indented(x, y, indent, string); - indented text which raps back to the origin
string_replace_at(index, string); - replace a character at a specific location with a string
Thank you for listening. With any luck someday we'll have these functions or others like them.
Last edited: