void BaseSize(int size) { string matchSize = "O"; for (int i = 0; i < size - 1; i++) { matchSize += "k"; } SizeF s = PlainText.MeasureString(matchSize); this.SetBounds(null, null, s.Width, s.Height); }
void SetText(string text) { renderText = text; textAppearence.Text = text; float unscaledWidth = (this.size.X).UnScaleHorizontalSize(); while (PlainText.MeasureString(renderText).Width > unscaledWidth) { renderText = renderText.Remove(0, 1); } textAppearence.Text = renderText; }