svenhb / GRBL-Plotter

A GCode sender (not only for lasers or plotters) for up to two GRBL controller. SVG, DXF, HPGL import. 6 axis DRO.
https://grbl-plotter.de/
GNU General Public License v3.0
699 stars 176 forks source link

How to add missing words to the lff file? #130

Closed lianzaozi closed 4 years ago

lianzaozi commented 4 years ago

The Chinese in unicode.lff is not complete, I want to add the missing words, but I don’t know what tool to edit it and the steps of operation.

lianzaozi commented 4 years ago

Where are the fonts in the screenshot below stored?

image1

svenhb commented 4 years ago

These fonts are inside GCodeCreation\CreateFromForm\GCodeFromFontHershey.cs Check here: https://gitlab.com/oskay/hershey-text/tree/master/hershey-text/svg_fonts and here https://www.evilmadscientist.com/2019/hershey-text-v30/

lianzaozi commented 4 years ago

Thank you, I know the source of these fonts.

What tools do you use to edit lff fonts? For example, I want to add Chinese to unicode.lff font, how do I do it? Do you mean that you can edit and make lff fonts using inkscape software?

Does the software after version V1.5.0.1 support the analysis of numbers and letters (ttf) in dxf files? I tested that the following numbers and letters can be displayed, but Chinese does not support display.

svenhb commented 4 years ago

I didn't edit any font, I just took the data I found.
With inkscape it may work: http://write.flossmanuals.net/start-with-inkscape/creating-fonts/#:~:text=Creating%20Custom%20Fonts,-With%20HTML5%20and&text=Fonts%20can%20be%20saved%20in,under%20Text%20%3E%20SVG%20Font%20Editor%20.

svenhb commented 4 years ago

Can't help here.