Skip to content

How can I use Chinese in the caption #597

@hjdbenny

Description

@hjdbenny

Hello. How can I use Chinese garbled characters? For example Chinese .

 var square = new makerjs.models.Square(100);
    square.caption = {
      text: "测试",
      anchor: new makerjs.paths.Line([0, 50], [100, 50])
    };
    square.layer = 'blue';
    let dxf = makerjs.exporter.toDXF(square, { fontSize: 16 });

When exporting DXF in this way, Chinese garbled characters will be displayed
Dingtalk_20240725154827

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions