fontcat-dev-snapshot-2020-06-15_14060703 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. #!/usr/bin/fish
  2. # #!/bin/sh
  3. #this is just an early test, not even proof of concept yet, nothing variablised yet, just testing this one...
  4. #fontcat's being made to use the bedrock logo for now. eventually will be able to be used with any string.
  5. #what to call the string:
  6. textstringn=bedrock
  7. #what the text string actually is:
  8. textstringy="
  9. __ __ __
  10. \ \_________\ \____________\ \___
  11. \ _ \ _\ _ \ _\ __ \ __\ /
  12. \___/\__/\__/ \_\ \___/\__/\_\_\
  13. Bedrock Linux
  14. "
  15. #usefonty for not just being a 1-piece variable, will become all(*)'able and specifyiable from cl.
  16. #this'll need some thought beyond just making this a list. will need some whilings or for'ings
  17. 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.
  18. #usefonty=nztt
  19. function themagic
  20. #here's the imagemagick magic:
  21. convert \
  22. -size 420x90 \
  23. xc:black \
  24. -font nztt \
  25. -pointsize 5 \
  26. -fill white \
  27. -draw "text 0,0 '
  28. __ __ __
  29. \ \_________\ \____________\ \___
  30. \ _ \ _\ _ \ _\ __ \ __\ /
  31. \___/\__/\__/ \_\ \___/\__/\_\_\
  32. Bedrock Linux
  33. '" \
  34. fontcat-(echo $textstringn)-(echo $usefonty)-(echo (date +%F_%H%M%S)).png
  35. #the pseudocode development refines closer n closer to real code
  36. #the simple test develops closer to the complete featureset.
  37. # fontcat-(echo $textstringn)-(echo $usefonty)-(echo (date +%F_%R%M%S)).png
  38. # fontcat-bedrock-nztt(echo date +%F_%T).png
  39. # fontcat-bedrock-nztt.png
  40. end
  41. #and it all starts here:
  42. #ehrmagerd wat pseudocode madness is this? n_n
  43. for whatsits in $fontylist; do themagic; end