3x3/fakoo figlet font - update

Figlet/Toilet font

3x3

  • : and . chars are added.
  • space is full-width

fakoo

  • full font implemented, exluding bottom “.
  • space is 2/3 of font width

Atributions

Fakoo font designed by Alexander Fako, and it seems to be under
https://creativecommons.org/licenses/by-sa/3.0/

3x3 font author and license is unclear https://en.wikipedia.org/wiki/3x3.

Install 3x3 font

cd /usr/share/figlet
sudo wget https://raw.githubusercontent.com/brontosaurusrex/bucentaur/master/usr/share/figlet/3x3.flf

Install (more complete) fakoo figlet font

cd /usr/share/figlet
sudo wget https://raw.githubusercontent.com/brontosaurusrex/bucentaur/master/usr/share/figlet/fakoo.flf

Usage examples

date +%H:%M | figlet -f 3x3

██  ███  █  █ █ █ █ 
 █   ██     ███ ███ 
 ██ ███  █    █   █ 
 
figlet --metal -f 3x3 brontosaurusrex 

██  ███ ███ ███ ███ ███  ██  █  █ █ ███ █ █  ██ ███ ███ █ █ 
███ █   █ █ █ █  █  █ █  █  ███ █ █ █   █ █  █  █   ██   █  
███ █   ███ █ █  █  ███ ██  █ █ ███ █   ███ ██  █   ███ █ █

date +%H%M | toilet -f 3x3 -F right
  ██▀▀██
  ▀▀▀▀▀▀
    ████
  ▀▀▀▀▀▀
  ██▄▄▄▄
      ▀▀
    ██▀▀
  ▀▀▀▀▀▀

Permanently updating clock

watch -t -c 'date +%H%M | figlet -f 3x3'

██  ███  ██  ██
 █   ██  █   █ 
 ██ ███ ██  ██ 

Localized, script

#!/bin/bash
# clock2
watch -t -c 'echo; echo; echo; LC_TIME=sl_SI.UTF-8 date "+%H:%M %A" | figlet -tc -f 3x3'

gives

 ██  ██   █   ██ ██      ███ ███ ███ ███ █ █ 
  █   █       █   █       █  █ █ █   ██  ██  
 ███  ██  █  ██   ██      █  ███ █   ███ █ █ 

start with custom urxvt (big fonts, smaller line space)

urxvt --lineSpace 0 --font xft:FantasqueSansMono-Regular:size=32 -sh 0 -bl -g 17x4 -e watch -t -c 'date +%H%M | figlet -f 3x3'

urxvt --cursorUnderline --internalBorder 0 --backgroundPixmap ~/.noise.png --title clock --lineSpace 0 --font xft:FantasqueSansMono-Regular:size=32 -sh 0 -bl -g 16x3 -e watch -n 10 -t -c 'date +%H%M | figlet -f 3x3'

# trying to hide cursor a bit (-cr stuff)
 urxvt -cr rgb:37/44/4C --cursorUnderline --internalBorder 0 --backgroundPixmap ~/.noise.png --title clock --lineSpace 0 --font xft:FantasqueSansMono-Regular:size=42 -sh 0 -bl -g 16x3 -e watch -n 10 -t -c 'date +%H%M | figlet -f 3x3'

Bucentaur compatible pipe menu entry with real transparency

# Black and transparent clock app
3x3 clock,   urxvt -depth 32 -fg rgba:0000/0000/0000/3333 -cr rgb:37/44/4C --cursorUnderline --iconFile ~/.icons/Luv-dark/apps/32/preferences-system-time.svg --internalBorder 0 -bg rgba:2000/2000/2000/0000 --title clock --lineSpace 0 --font xft:FantasqueSansMono-Regular:size=42 -sh 0 -bl -g 16x3 -e watch -n 10 -t -c 'date +%H%M | toilet -f 3x3'

to svg

figlet --metal -E svg -f 3x3 brontosaurusrex > brex.svg

Notes

https://en.wikipedia.org/wiki/3x3 Figlet editor: http://patorjk.com/figlet-editor/#/edit

The mental projection of your digital self

3x3 matrix is basically 2^9 possible values (512, that is 0-511), which is not enough for even basic unicode representation, but covers full ascii.

echo "obase=2;511" | bc | fold -w3
111
111
111

And to display them all

#!/bin/bash

# all512

# print all 3x3 matrices from 9 bit decimal number

main () {
    a="$( echo "obase=2;$i" | bc )"
    printf "%09d" "$a" | fold -w3
    echo
}

loop () {
    for i in {0..511}; do
        
        echo "$i"
        main | sed -r 's/1/█/g'
        echo 
        
    done

}


# 65, 130 and 260 are all fine.
c="260"
loop | column -e -c "$c"

One could get

all512.png-YUpVmjrBWw0GPsj-md

Debates

https://news.ycombinator.com/item?id=38799686

Many more figlet/toilet fonts

https://github.com/xero/figlet-fonts

TOC

Original post date: 19. 2. 2019