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