Skip to content

How to set the font in exported pdf? #7

@shimin-happy

Description

@shimin-happy

I convert a dwg file to pdf, but the font in pdf is not what I want. How can I set the font. I have tried the following code, but does not work. And I can see the lines in the graph are too thick in the exported pdf. Can I also set the size of the line when converting dwg file to pdf file?

// Iterate over the items of CadStyleDictionary
for (CadStyleTableObject style : (Iterable)objImage.getStyles())
{
// Set the font name
style.setPrimaryFontName("sans-serif.ttf");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions