-
Notifications
You must be signed in to change notification settings - Fork 9
Text Printing #2
Description
download this for text to image: https://gnuwin32.sourceforge.net/downlinks/netpbm-bin-zip.php
download this for font format change: https://sbiswas.tripod.com/ttf2bdf/
convert arial.ttf (normal 12 pt) to arial.bdf
copy catprinterble.exe and arial.bdf to netpbm bin folder
open cmd in here
use this command for text:
pbmtext -nomargins -width 300 -lspace 2 -font arial.bdf "Text Here Text Here Text Here" | ppmtobmp -bpp=1 -windows > temp.bmp && catprinterble -p 100 1bpp FloydSteinberg temp.bmp
use this command for text file:
pbmtext -nomargins -width 300 -lspace 2 -font arial.bdf < metin.txt | ppmtobmp -bpp=1 -windows > temp.bmp && catprinterble -p 100 1bpp FloydSteinberg temp.bmp
I used 300px width with the -width command, but I don't know what the correct width should be, you need to try it. The same goes for the -lspace command.
Maikelchan maybe you can include these tools or your own methods in your program