When running "HtmlRenderer Mono Demo.exe" or "HtmlRenderer WinForms Demo.exe" and selecting
"Test Samples > Fonts decorations", application shows following exception in MessageBox.
Running "HtmlRenderer WPF Demo.exe", exception does not occur.
__MessageBox Title:__ Error in Html Renderer
__MessageBox text:__
Exception in box layout
__System.ArgumentException: The font 'Berlin Sans FB Demi' does not support style 'Regular'.__
in System.Drawing.Font.CreateNativeFont()
in System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
in System.Drawing.Font..ctor(FontFamily family, Single emSize, FontStyle style)
in TheArtOfDev.HtmlRenderer.WinForms.Adapters.WinFormsAdapter.CreateFontInt(RFontFamily family, Double size, RFontStyle style)
in TheArtOfDev.HtmlRenderer.Adapters.RAdapter.CreateFont(RFontFamily family, Double size, RFontStyle style)
in TheArtOfDev.HtmlRenderer.Core.Handlers.FontsHandler.CreateFont(String family, Double size, RFontStyle style)
in TheArtOfDev.HtmlRenderer.Core.Handlers.FontsHandler.GetCachedFont(String family, Double size, RFontStyle style)
in TheArtOfDev.HtmlRenderer.Core.Dom.CssBox.GetCachedFont(String fontFamily, Double fsize, RFontStyle st)
in TheArtOfDev.HtmlRenderer.Core.Dom.CssBoxProperties.get_ActualFont()
in TheArtOfDev.HtmlRenderer.Core.Parse.CssValueParser.ParseLength(String length, Double hundredPercent, CssBoxProperties box, Boolean fontAdjust)
in TheArtOfDev.HtmlRenderer.Core.Dom.CssBoxProperties.get_ActualMarginLeft()
in TheArtOfDev.HtmlRenderer.Core.Dom.CssLayoutEngine.FlowBox(RGraphics g, CssBox blockbox, CssBox box, Double limitRight, Double linespacing, Double startx, CssLineBox& line, Double& curx, Double& cury, Double& maxRight, Double& maxbottom)
in TheArtOfDev.HtmlRenderer.Core.Dom.CssLayoutEngine.CreateLineBoxes(RGraphics g, CssBox blockBox)
in TheArtOfDev.HtmlRenderer.Core.Dom.CssBox.PerformLayoutImp(RGraphics g)
in TheArtOfDev.HtmlRenderer.Core.Dom.CssBox.PerformLayout(RGraphics g)
"Test Samples > Fonts decorations", application shows following exception in MessageBox.
Running "HtmlRenderer WPF Demo.exe", exception does not occur.
__MessageBox Title:__ Error in Html Renderer
__MessageBox text:__
Exception in box layout
__System.ArgumentException: The font 'Berlin Sans FB Demi' does not support style 'Regular'.__
in System.Drawing.Font.CreateNativeFont()
in System.Drawing.Font.Initialize(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit, Byte gdiCharSet, Boolean gdiVerticalFont)
in System.Drawing.Font..ctor(FontFamily family, Single emSize, FontStyle style)
in TheArtOfDev.HtmlRenderer.WinForms.Adapters.WinFormsAdapter.CreateFontInt(RFontFamily family, Double size, RFontStyle style)
in TheArtOfDev.HtmlRenderer.Adapters.RAdapter.CreateFont(RFontFamily family, Double size, RFontStyle style)
in TheArtOfDev.HtmlRenderer.Core.Handlers.FontsHandler.CreateFont(String family, Double size, RFontStyle style)
in TheArtOfDev.HtmlRenderer.Core.Handlers.FontsHandler.GetCachedFont(String family, Double size, RFontStyle style)
in TheArtOfDev.HtmlRenderer.Core.Dom.CssBox.GetCachedFont(String fontFamily, Double fsize, RFontStyle st)
in TheArtOfDev.HtmlRenderer.Core.Dom.CssBoxProperties.get_ActualFont()
in TheArtOfDev.HtmlRenderer.Core.Parse.CssValueParser.ParseLength(String length, Double hundredPercent, CssBoxProperties box, Boolean fontAdjust)
in TheArtOfDev.HtmlRenderer.Core.Dom.CssBoxProperties.get_ActualMarginLeft()
in TheArtOfDev.HtmlRenderer.Core.Dom.CssLayoutEngine.FlowBox(RGraphics g, CssBox blockbox, CssBox box, Double limitRight, Double linespacing, Double startx, CssLineBox& line, Double& curx, Double& cury, Double& maxRight, Double& maxbottom)
in TheArtOfDev.HtmlRenderer.Core.Dom.CssLayoutEngine.CreateLineBoxes(RGraphics g, CssBox blockBox)
in TheArtOfDev.HtmlRenderer.Core.Dom.CssBox.PerformLayoutImp(RGraphics g)
in TheArtOfDev.HtmlRenderer.Core.Dom.CssBox.PerformLayout(RGraphics g)