Get "Font 'Calibri' does not support style 'Regular'" error trying to export connections
说明
When trying to export connections from the connection window, the following error is received.
Exception: System.ArgumentException Message : Font 'Calibri' does not support style 'Regular'. Stack Trace: at System.Drawing.Font.CreateNativeFont() at System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont) at System.Drawing.Font.Initialize(String familyName, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont) at System.Drawing.Font..ctor(String familyName, Single emSize) at TagInterface.TagIt.InitializeComponent() at TagInterface.TagIt..ctor() at Quest.Toad.DataCuration.DataCurationSaveDetails.InitializeComponent() at Quest.Toad.DataCuration.DataCurationSaveDetails..ctor() at Quest.Toad.Gui.MainForm.GetSaveFileAsFileName(String filter, String fileName, List`1 infoItems) at Quest.Toad.ConnectionManager.ExportConnectionForm.SaveRootToFile(ConnGroupNode rootNode) at Quest.Toad.ConnectionManager.ExportConnectionForm.btnPanelControl_OKButtonClick(Object sender, EventArgs e) at Quest.Toad.Controls.ButtonPanelControl.DoOkButtonClicked(Object sender, EventArgs args) at System.Windows.Forms.Control.OnClick(EventArgs e) at DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e) at DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) at System.Windows.Forms.Control.WndProc(Message& m) at DevExpress.Utils.Controls.ControlBase.WndProc(Message& m) at DevExpress.XtraEditors.BaseControl.WndProc(Message& msg) at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
解决办法
RESOLUTION #1 Reinstall the Calibri font in Windows.
RESOLUTION #2 Get a fresh copy of the Calibri font and place it in the C:\Windows\Fonts directory. A fresh copy can be obtained from a co-worker with the same Window OS.