When I want to add a Text to my DxfDocument, the FontFamilyName gets overwritten.
Code to reproduce the bug:
DxfDocument doc = new DxfDocument();
TextStyle textStyle = TextStyle.Default;
textStyle.FontFamilyName = "Arial";
Text text = new Text() { Value = "Some Text", Position = new Vector3(0), Style = textStyle };
doc.Entities.Add(text);
doc.Save(@"C:\Temp\Test.dxf");
I can open the exported DXF-File with my CAD program an the text is at right position, but the Font is now "simplex"
The only workaround that I found was to add the following line after adding the entity:
text.Style.FontFamilyName = "Arial";