I am trying to use ezdxf.odafc to open dwg files drawn with autocad and save them as svg files. However, the files contain existing shx font files. How should I import the font files and export them to svg correctly?
What I have tried
import ezdxf
ezdxf.options.support_dirs = [
'D:\Fonts' # this Fonts folder has shx files.
]
## ...
doc.styles.add_shx('font.shx', dxfattribs={'font': 'font.shx'})
The code does not work, what can I do to import shx file and use it?
Hi, need help.
Question
I am trying to use
ezdxf.odafc
to open dwg files drawn with autocad and save them as svg files. However, the files contain existing shx font files. How should I import the font files and export them to svg correctly?What I have tried
The code does not work, what can I do to import shx file and use it?