/// <summary> /// Constructor of display options for the matrix control /// </summary> /// <param name="ctrl"></param> public DisplayOptions(MatrixControl ctrl) { _matrix = ctrl; Font sysFont = SystemFonts.MessageBoxFont; //this.Font = new Font(sysFont.Name, sysFont.SizeInPoints, sysFont.Style); for (int i = 0; i < 6; i++) { int fontSize = 5 + i * 2; int cellHeight = 3 * fontSize; int rootHeight = 6 * fontSize; _zoomSettings[i] = new ZoomLevel(rootHeight, cellHeight, new Font(sysFont.Name, fontSize), new Font("Tahoma", fontSize)); } }