Nevron Forum

NErmShape .SizeToContent();

https://www.nevron.com/Forum/Topic3881.aspx

By Golay Jean-Philippe - Monday, July 26, 2010

If I use a NErmShape and call mappingShape.SizeToContent();
The result is like the attachment?
Is there any solution to really fit first line?
By Nevron Support - Tuesday, July 27, 2010

Erm shapes automatically resize themselves to their content, but in order for the autosize to work you must add them to a drawing document first.

By Golay Jean-Philippe - Tuesday, July 27, 2010

It's what I have done
nDrawingDocument1.ActiveLayer.AddChild(mappingShape);
NStyle.SetTextStyle(mappingShape, new NTextStyle(fontStyle, Color.Black));
mappingShape.Style.TextStyle.StringFormatStyle.HorzAlign = Nevron.HorzAlign.Left;
mappingShape.SizeToContent();

But the text is still on 2 lines
By Golay Jean-Philippe - Friday, August 6, 2010

Solved using courrier new font arial give unexpected results