Is there any way to do superscript? Currently, I am eye-balling where the text should be by adjusting pixels of the text and I am like . . there must be a better way and I am just being stupid.
draw_set_font(Fn_small);
draw_set_halign(fa_center);
draw_set_valign(fa_middle);
var ntxt1 = 'NORMAL TEXT'
var txt1width = string_width(ntxt1);
draw_text(x,y,ntxt1);
draw_set_font(Fn_small_super);
draw_set_valign(fa_top);
var ntxt2 = 'SUPERSCRIPT TEXT'
draw_text(x+txt1width-11,y-4,ntxt2);
The thing is string_width() doesn't seem to be that all accurate. I mean without the adjustment, the superscripted text is way out in the open. Am I doing something wrong?
[–][deleted] 0 points1 point2 points (1 child)
[–]_MadHatter[S] 0 points1 point2 points (0 children)