void Advance(ref float x, ref float y, float maxWidth, float size, float fontHeight) { if (x + size < maxWidth) { x += size; } else { x = curTabIndent; y += fontHeight; } }