public static Vector2 GetFontCenter(string fontName, string String) { return(new Vector2( FontProvider.GetFont(fontName).MeasureString(String).X / 2, FontProvider.GetFont(fontName).MeasureString(String).Y / 2)); }