Bug Report B94619
Visible to All Users

Exception when initialize BarManager

created 17 years ago

Hello!
I receive this exeption from one of our clients. Whats may be wrong and how correct this error?
MESSAGE: Font 'Monotype Corsiva' does not support style 'Bold'.
EXCEPTION TYPE: System.ArgumentException
STACK:
System.Drawing.Font.CreateNativeFont()
System.Drawing.Font.Initialize(FontFamily, Single, FontStyle, GraphicsUnit, Byte, Boolean) System.Drawing.Font…ctor(Font, FontStyle)
DevExpress.XtraBars.ViewInfo.BarColorConstants.InitAppearance()
DevExpress.XtraBars.ViewInfo.BarColorConstants.Init()
DevExpress.XtraBars.ViewInfo.BarDrawParameters.InitDefaults()
DevExpress.XtraBars.ViewInfo.BarDrawParameters.UpdateScheme()
DevExpress.XtraBars.BarAndDockingController…ctor()
DevExpress.XtraBars.BarAndDockingController.get_Default()
DevExpress.XtraBars.BarManager.GetController()
DevExpress.XtraBars.BarManager.get_PaintStyle()
DevExpress.XtraBars.Utils.BarManagerHelpers.get_PaintStyle()
DevExpress.XtraBars.Utils.BarManagerHelpers.CreateLink(BarItemLinkReadOnlyCollection, BarItem, Object) DevExpress.XtraBars.BarItem.CreateLink(BarItemLinkReadOnlyCollection, Object)
DevExpress.XtraBars.BarItemLinkCollection.CreateLink(BarItem)
DevExpress.XtraBars.BarItemLinkCollection.Add(BarItem)
DevExpress.XtraBars.BarLinkContainerItem.AddItem(BarItem)
DevExpress.XtraBars.InternalItems.BarSystemMenuItem…ctor(BarManager)
DevExpress.XtraBars.Utils.BarMdiHelper.Init()
DevExpress.XtraBars.BarManager…ctor()
DevExpress.XtraBars.BarManager…ctor(IContainer)
WonderLand.MainForm.InitializeComponent()
WonderLand.MainForm…ctor()
WonderLand.Program.Main(String[])
Thanks,
   Andrew

Comments (3)
DevExpress Support Team 17 years ago

    Hi Andrew,
    It appears that you have customized XtraBars appearances to use the "Monotype Corsiva" font, and this font doesn't support the Bold style. Please use fonts that support all standard style combinations.
    Thanks,
    Michael.

    AK AK
    Andrew Kondabarov 17 years ago

      Hello Michael.
      Thanks for reply. But I don't see any reference to "Monotype Corsiva" fonts (user or from form designer) in code or in resources of the program. The form, where exeption was rised, used only default appearance settings.
      This exeption reproduced only at one user. Is it possible, that the "Monotype Corsiva" font may be used by BarManager as default font, and if YES, what OS settings can control this behavior?
      Thanks,
      Andrew

      DevExpress Support Team 17 years ago

        Hi Andrew,
        The only font that is hardcoded in our assemblies is Tahoma. Please verify, that this standard font is installed on the client machine. Please also check whether standard desktop fonts are overridden in the Control Panel|Display Properties|Appearance|Advanced dialog.
        Please let us know if this makes sense.
        Thanks,
        Michael.

        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.