gendotmatrix icon indicating copy to clipboard operation
gendotmatrix copied to clipboard

Sample input and output files?

Open WeileiZeng opened this issue 5 years ago • 4 comments

The repo is great and I am trying to use it. Can you give some samples of input and output files?

I am trying to generate some Chinese dot matrix as a replacement for HZK16, but the output file doesn't looks right and doesn't work for my other program yet.

Thanks!

WeileiZeng avatar Apr 26 '20 06:04 WeileiZeng

Hi. To generate the dot matrix font, you can use any vector font (e.g., 文泉驿).

This command will generate the dot matrix font named out.font, with 32 height:

gendotmatrix.py -o out.font  -s "32x32" "input_vector.ttf"

hmgle avatar Apr 26 '20 06:04 hmgle

This page also lists many other Chinese fonts for free: https://wiki.ubuntu.org.cn/%E5%85%8D%E8%B4%B9%E4%B8%AD%E6%96%87%E5%AD%97%E4%BD%93

hmgle avatar Apr 26 '20 06:04 hmgle

Thanks. I tried that. But when I print the output file using less, I got pure symbols of the following for the whole file ^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@ That looks like an empty file for me.

My goal is to replace HZK16 in this repo. And I expect that your program would convert any ttf file into the same format as the HZK16 file.

WeileiZeng avatar Apr 26 '20 22:04 WeileiZeng

What is the input font file? Make sure that the input input_vector.ttf file contains Chinese characters.

hmgle avatar Apr 27 '20 13:04 hmgle