public void SetText(String text) { this.text = text; this.size = new Vector2(FONT_SIZE * text.Length + 2*MARGIN, this.size.Y); }