/// <summary> /// Calculates whether there's enough screen area to draw the specified text and stuff /// </summary> /// <param name="text">The text to check</param> /// <param name="at">The location the text will be drawed at</param> /// <param name="size">The size of the text</param> /// <returns>Whether there's enough screen are to draw with the specified data</returns> public static bool IsSizeOk(CharFont font, String text, Vec2 at, float size) { Vec2 s; if (font.CalculateDrawWrappedSize(text, at, size, Stuff.ScreenWidth - at.X - WrapLessX, out s)) { return(at.Y + s.Y < Stuff.ScreenHeight - WrapLessY); } return(false); }