public float MeasureText(string text) { lock (MeasurementGraphics) { return MeasurementGraphics.MeasureString(text, _font).Width; } }