12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #!/usr/bin/fish
- # #!/bin/sh
- #this is just an early test, not even proof of concept yet, nothing variablised yet, just testing this one...
- #fontcat's being made to use the bedrock logo for now. eventually will be able to be used with any string.
- #what to call the string:
- textstringn=bedrock
- #what the text string actually is:
- textstringy="
- __ __ __
- \ \_________\ \____________\ \___
- \ _ \ _\ _ \ _\ __ \ __\ /
- \___/\__/\__/ \_\ \___/\__/\_\_\
- Bedrock Linux
- "
- #usefonty for not just being a 1-piece variable, will become all(*)'able and specifyiable from cl.
- #this'll need some thought beyond just making this a list. will need some whilings or for'ings
- usefonty=(ls $(fontydir) | egrep 'ttf|otb') #this is the janky point at which i decided i should save/add/commit/push before i jank it up worse noisey mess n lose the basics.
- #usefonty=nztt
- function themagic
- #here's the imagemagick magic:
- convert \
- -size 420x90 \
- xc:black \
- -font nztt \
- -pointsize 5 \
- -fill white \
- -draw "text 0,0 '
- __ __ __
- \ \_________\ \____________\ \___
- \ _ \ _\ _ \ _\ __ \ __\ /
- \___/\__/\__/ \_\ \___/\__/\_\_\
- Bedrock Linux
- '" \
- fontcat-(echo $textstringn)-(echo $usefonty)-(echo (date +%F_%H%M%S)).png
- #the pseudocode development refines closer n closer to real code
- #the simple test develops closer to the complete featureset.
- # fontcat-(echo $textstringn)-(echo $usefonty)-(echo (date +%F_%R%M%S)).png
- # fontcat-bedrock-nztt(echo date +%F_%T).png
- # fontcat-bedrock-nztt.png
- end
- #and it all starts here:
- #ehrmagerd wat pseudocode madness is this? n_n
- for whatsits in $fontylist; do themagic; end
|