Convert shx font
Is there any way or software that can convert shp/shx (shx files decompiled to get shx files) fonts to lff fonts?
I think you need convert shx to tff then use ttf2lff convert ttf to lff
Do you know what conversion software can convert shx to ttf?
Sorry, i don't find it still.
请问解决了吗,cad的单线矢量字体hztxt能在librecad上面显示吗
Is there any way or software that can convert shp/shx (shx files decompiled to get shx files) fonts to lff fonts?
Yes. See:
- https://sourceforge.net/p/shx-font-converter/code/ci/master/tree/
- https://github.com/Kharabadze/SHX_font_converter
@dxli @lordofbikes, Could it be merged to LibreCAD repo?
Also, on forum discussed some other way of SHX2LFF converting:
- https://forum.librecad.org/Another-Font-Conversion-Experiment-tp5723057.html
- https://forum.librecad.org/SHX-to-LFF-td5723053.html
@dxli @lordofbikes, Could it be merged to LibreCAD repo?
I had a look at the repo and I don't want to merge this into LibreCAD's code base. It looks like a quick'n'dirty hack, there are various issues which will surely raise CVE's in future.
This doesn't mean, that the converter does not work. It may work for what it is built and it may be fine as an external tool. But to bundle it with LibreCAD it is too vulnerable, it might affect LibreCAD's trust and security rating. The code would need a general refactoring or even a complete rewrite.
OK, there is SHX to Hershey Python lib: https://github.com/tatarize/shxparser
And source of Hershey to LFF fontconverter has been found (it might could be merged to ttf2lff, as derivated from it itself):
- https://github.com/LibreCAD/LibreCAD/issues/1245#issuecomment-2295078081
Interesting point about keeping conversion programs separate from the main CAD program.
CVE's being Common Vulnerabilities and Exposures.
Was interesting to learn that "Hershey" is the name of a government tech person that wrote some important font data.
Noticed that the book on QCAD did not seem to mention the term CXF (or LFF) in the table of contents. Seems like all common file extensions should be listed there for users. So that they can become familiar with this stuff.
BTW, I can imagine sign makers wanting to get access to SHX conversions for detailed CAM work, cutting out letters and such. Not really the main market for LibreCAD though.