Busybox shell script:
#!/bin/sh SCRIPT=${0##*/} DIR='/usr/share/fonts' OUTFILE=$HOME/fontview.html cat <<EOT -- >$OUTFILE <!DOCTYPE html> <html> <head> <meta http-equiv="content-type" value="text/html" /> <charset="UTF-8" /> <style type="text/css"> div { border-bottom: 1px dotted silver; } div > span:nth-child(1) { display: inline-block; width: 15em; } </style> </head> <body> <div></div> EOT OIFS=$IFS IFS=$'\n' fc-list | cut -d: -f1 | sort | uniq | while read font; do echo -e "\t\t<div><span>$font</span><span style=\"font-family: $font\">$font</span></div>\n" >>$OUTFILE done IFS=$OIFS cat <<EOT -- >>$OUTFILE </body> </html> EOT browser file://$OUTFILE echo "Output file is: $OUTFILE"