fontcat 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. usefonty=nztt
  17. convert \
  18. -size 420x90 \
  19. xc:black \
  20. -font nztt \
  21. -pointsize 5 \
  22. -fill white \
  23. -draw "text 0,0 '
  24. __ __ __
  25. \ \_________\ \____________\ \___
  26. \ _ \ _\ _ \ _\ __ \ __\ /
  27. \___/\__/\__/ \_\ \___/\__/\_\_\
  28. Bedrock Linux
  29. '" \
  30. fontcat-(echo $textstringn)-(echo $usefonty)-(echo (date +%F_%H%M%S)).png
  31. #the pseudocode development refines closer n closer to real code
  32. #the simple test develops closer to the complete featureset.
  33. # fontcat-(echo $textstringn)-(echo $usefonty)-(echo (date +%F_%R%M%S)).png
  34. # fontcat-bedrock-nztt(echo date +%F_%T).png
  35. # fontcat-bedrock-nztt.png