mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-23 23:23:02 +00:00
05e7306bf9
This font is licensed under the OFL-1.1 License and copyright: Copyright 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries. Signed-off-by: Sven Peter <sven@svenpeter.dev>
27 lines
469 B
Bash
Executable file
27 lines
469 B
Bash
Executable file
#!/bin/bash
|
|
width=$1
|
|
height=$2
|
|
size=$3
|
|
fontfile=$4
|
|
outfile=$5
|
|
shift 5
|
|
|
|
(
|
|
for ord in $(seq 32 126); do
|
|
printf "\\x$(printf %x $ord)\\n"
|
|
done
|
|
) | convert \
|
|
-page ${width}x$((height*95)) \
|
|
-background black \
|
|
-fill white \
|
|
-antialias \
|
|
-font $fontfile \
|
|
-density 72 \
|
|
-gravity north \
|
|
-pointsize $size \
|
|
$* \
|
|
-define quantum:format=unsigned \
|
|
-depth 8 \
|
|
label:\@- \
|
|
-crop ${width}x$((height*95)) \
|
|
gray:$outfile
|