1
0
mirror of git://projects.qi-hardware.com/antorcha.git synced 2025-04-21 12:27:27 +03:00

tornado/fw/txt/: tools for text conversion

txt2xbm: convert text to XBM, using ghostscript
stretch: resample XBM with rotation correction (x-axis only)
xbm2gp: convert XBM to gnuplot, taking into account rotation
plot: plot xbm2gp output
t: run all the above to display "TEST"
This commit is contained in:
Werner Almesberger
2012-12-04 00:56:36 -03:00
parent 6ccdd5255a
commit a5694eba05
5 changed files with 151 additions and 0 deletions

9
tornado/fw/txt/txt2xbm Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/sh
gs -sDEVICE=pbmraw -sOutputFile=- -g256x64 -q - <<EOF | pbmtoxbm
/Helvetica-Bold findfont
80 scalefont
setfont
0 4 moveto
($1) show
showpage
EOF