Skip to content

Text style font renamed to arial_1.ttf after read/write #955

@SRajapandi7

Description

@SRajapandi7

Hi @DomCR ,

While copying entities from multiple CAD files into a single empty source CAD file using ACadSharp, I was observing an issue with text fonts.

Although the original files use Arial (arial.ttf), after merging the entities into the target file, the font style is automatically changed to arial_1.ttf. This font file does not exist on the system and is not explicitly defined by us.

It appears that ACadSharp automatically generates this font name when multiple TextStyle definitions with the same font (Arial) but different properties are merged into one drawing. As a result, a duplicate font alias (arial_1.ttf) is created internally.

I would like to understand:

Why this automatic font renaming occurs during entity copy/merge

How we can enforce the use of arial.ttf only, without generating arial_1.ttf, when consolidating entities into a single CAD file

Please advise on the recommended approach to control or standardize the TextStyle during this process.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions