Knowledge Base
cancel
Showing results for 
Search instead for 
Did you mean: 

TGML Graphic Editor error: Font 'Arial' does not support style 'Regular'.

Issue

Trying to open TGML Graphics Editor and an error appears before the editor crashes.  Crash report shown below:

Font 'Arial' does not support style 'Regular'.
ArgumentException
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..ctor(FontFamily family, Single emSize, FontStyle style, GraphicsUnit unit)
at SE.Graphics.Viewer.Windows.GDIPlus.RenderText..ctor(Double left, Double top, String textContent, Double fontSize, String fontFamily, Int32 fontStyle, Int32 fontWeight, Int32 horizontalAlign, Int32 verticalAlign, Int32 textDecoration)
at SE.Graphics.Viewer.Windows.GDIPlus.DrawingFactory.createText(Double left, Double top, String textContent, Double fontSize, String fontFamily, Int32 fontStyle, Int32 fontWeight, Int32 horizontalAlign, Int32 verticalAlign, Int32 textDecoration)
at SE.Graphics.DOM.TGML.TgmlText.getUncachedShape()
at SE.Graphics.DOM.TGML.TgmlStrokeShape.getShape()
at SE.Graphics.DOM.TGML.TgmlTextShape.getShape()
at SE.Graphics.DOM.TGML.TgmlStrokeShape.getUncachedBoundingBox()
at SE.Graphics.DOM.TGML.TgmlShape.getBoundingBox()
at SE.Graphics.DOM.TGML.TgmlShape.HandleAfterBoundingBoxChanged()
at SE.Graphics.DOM.TGML.TgmlShape.OnAfterBoundingBoxChanged()
at SE.Graphics.DOM.TGML.TgmlShape.OnChildElementChanged(Node element, ChangeType changeType)
at SE.Graphics.DOM.TgmlInheritedElement.FireChildElementChanged(Node element, ChangeType changeType)
at SE.Graphics.DOM.TgmlInheritedElement.insertBefore(Node newChild, Node refChild)
at com.sun.org.apache.xerces.internal.dom.NodeImpl.appendChild(Node newChild)
at com.sun.org.apache.xerces.internal.dom.ParentNode.cloneNode(Boolean deep)
at com.sun.org.apache.xerces.internal.dom.ElementImpl.cloneNode(Boolean deep)
at SE.Graphics.DOM.TGML.TgmlShape.cloneNode(Boolean deep)
at com.sun.org.apache.xerces.internal.dom.ParentNode.cloneNode(Boolean deep)
at com.sun.org.apache.xerces.internal.dom.ElementImpl.cloneNode(Boolean deep)
at SE.Graphics.DOM.TGML.TgmlShape.cloneNode(Boolean deep)
at TAC.Graphics.Editor.Core.GraphicsComponent.ExtractContent()
at TAC.Graphics.Editor.Core.ComponentStencilItem.LoadItem(String file, String imageFile, String& description, Image& image)
at TAC.Graphics.Editor.Core.FileStencilItem.Load(String file)

Environment

TGML Graphics Editor

Multiple installations of Microsoft Office

Cause

If a PC comes with Microsoft Office 2010 (which is not currently compatible with Vista) and additional versions of Excel 2007 are installed, for example, it could remove or corrupt the installation of certain fonts.

Resolution

  1. Obtain a fresh copy of the font .TTF file.  In this example, Arial.ttf.
  2. Install the font by dragging and dropping the .TTF file into C:\Windows\Fonts directory.
Tags (1)
Labels (1)
Version history
Revision #:
1 of 1
Last update:
2 weeks ago
Updated by: