2 Commits e05c908627 ... fd80e5c582

Author SHA1 Message Date
  Digit fd80e5c582 check poke forward 3 years ago
  Digit 56a251ff84 poke forward 3 years ago

+ 48 - 0
scripts/fontcatdir/fontcat-dev-snapshot-2020-06-15_14060703

@@ -0,0 +1,48 @@
+#!/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 

+ 9 - 2
scripts/fontcatdir/fontcat-devtest-while

@@ -16,14 +16,16 @@ __          __             __
 
 #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
+fontydir="~/.fonts"
 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
+#usefonty=nztt 
 
+function themagic
 #here's the imagemagick magic:
 convert \
     -size 420x90 \
     xc:black \
-    -font nztt \
+    -font $i \
     -pointsize 5 \
     -fill white \
     -draw "text 0,0 '
@@ -40,3 +42,8 @@ __          __             __
 #    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 i in $fontylist; do themagic; end 

+ 12 - 2
scripts/fontcatdir/fontcat-devtest-while~

@@ -15,12 +15,17 @@ __          __             __
 "
 
 #usefonty for not just being a 1-piece variable, will become all(*)'able and specifyiable from cl.
-usefonty=nztt
+#this'll need some thought beyond just making this a list.  will need some whilings or for'ings
+fontydir="~/.fonts"
+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 \
+    -font $i \
     -pointsize 5 \
     -fill white \
     -draw "text 0,0 '
@@ -37,3 +42,8 @@ __          __             __
 #    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 i in $fontylist; do themagic; end