Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

FontFamilyName getting overwritten #471

@ChristianSchroth

Description

@ChristianSchroth

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";

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions