#define font_get_mono //Description: This script returns whether your font is monoscaped or not, by checking for Numerical Values, Lowercase Letters, and Capital Letters. //Syntax: font_get_mono(font) //Credit: No credit required //Note: Because Gamemaker can't return the current font index, you will have change the font back to it's original value after calling this script. //Variable setup var base,mono,i; mono=true draw_set_font(argument0) //Loop to test values base=string_width(chr(48)) for(i=49;i<57;i+=1){if string_width(chr(i))!=base mono=false} for(i=65;i<90;i+=1){if string_width(chr(i))!=base mono=false} for(i=97;i<122;i+=1){if string_width(chr(i))!=base mono=false} //Finish return mono;