Get following exception when there is no Arial font installed on target computer. Exception causes the loading of RichEditor control to fail. This exception should be handled inside the control.
System.ArgumentException: Font 'Arial' does not support style 'Regular'.
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, FontStyle style, GraphicsUnit unit)
at DevExpress.Office.Drawing.GdiPlusFontInfoMeasurer.CreateDefaultFont()
at DevExpress.Office.Drawing.GdiPlusFontInfoMeasurer.Initialize()
at DevExpress.Office.Drawing.FontInfoMeasurer…ctor(DocumentLayoutUnitConverter unitConverter)
at DevExpress.Office.Drawing.GdiPlusFontCache.CreateFontInfoMeasurer(DocumentLayoutUnitConverter unitConverter)
at DevExpress.Office.Drawing.FontCache…ctor(DocumentLayoutUnitConverter unitConverter)
at DevExpress.Office.Drawing.GdiPlusFontCache…ctor(DocumentLayoutUnitConverter unitConverter)
at DevExpress.Office.Drawing.GdiPlusFontCacheManager.CreateFontCache()
at DevExpress.Office.DocumentModelBase.UpdateFontCache()
at DevExpress.XtraRichEdit.Model.DocumentModel.Initialize(Boolean addDefaultsList, Boolean changeDefaultTableStyle)
at DevExpress.XtraRichEdit.Model.DocumentModel…ctor(Boolean addDefaultsList, Boolean changeDefaultTableStyle)
at DevExpress.XtraRichEdit.Internal.InnerRichEditDocumentServer.CreateDocumentModelCore()
at DevExpress.XtraRichEdit.Internal.InnerRichEditDocumentServer.GetDocumentModel()
at DevExpress.XtraRichEdit.Internal.InnerRichEditDocumentServer.BeginInitialize()
at DevExpress.XtraRichEdit.Internal.InnerRichEditControl.BeginInitialize()
at DevExpress.XtraRichEdit.RichEditControl.BeginInitialize()
at DevExpress.XtraRichEdit.RichEditControl…ctor(Boolean useGdiPlus)
at DevExpress.XtraRichEdit.RichEditControl…ctor()
Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.
Hello Tomer,
According to the information you provided, it is likely that the 'Arial' font on your client's machine has been corrupted or changed, and its "Regular" style is missing. Since this situation might not be covered by the default Windows font substitution mechanism, I recommend that you reinstall the 'Arial' font on the problematic machine, and then check whether this problem is gone.
See Also:
Font 'Tahoma' does not support style 'Regular'.
Font 'Arial' does not support …
Font 'Arial' does not support style 'Regular'.
Thanks,
Alessandro.