/// <summary> /// Creates a SimpleWrite action with the specified CharFont and text. The size is /// calculated based on needed drawing area but wont exceed SimpleWrite.DefaultSize /// </summary> public static SimpleWrite CreateSimpleWrite(CharFont font, String text) { // suck it, optimization. Let's just f*****g try lowering the size slightly until it's good enough. float size = SimpleWrite.DefaultSize; while (!SimpleWrite.IsSizeOk(Program.font, text, SimpleWrite.DefaultAt, size)) { size -= 2; } return(new SimpleWrite(Program.font, text, size)); }
public WriteRemoveWrite(CharFont font, String txt1, float size1, String txt2, float size2) { first = new SimpleWrite(font, txt1, size1); second = new SimpleWrite(font, txt2, size2); }