Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- cd ~/bin # only to keep the html file in a known place.
- (echo '<html><body><center><font size=6>Font List</font></center><br><br>' \
- && (fc-list : family |sed 's/,/\n/' |grep -iv droid|grep -iv emoji| grep -iv dingbats| \
- grep -v [a-z]10 | grep -iv 'noto sans .* .* ' | grep -iv 'noto serif .* .* ' | \
- grep -iv symbols|grep -iv music | sort|uniq \
- | awk -F" " '{ print "<font face=\"arial\" size=5>#"FNR" "$1" "$2" "$3" "$4" "$5"<br> \
- <font face=\""$1" "$2" "$3" "$4" "$5"\" size=6> \
- 0123456789 0O il1il1 ABCDEFGHIJKLMW abcdefghijklmw -?#!<br>0123456789 0O il1il1 abcdefghijklmw \
- ABCDEFGHIJKLMW -?#!<br>0123456789 0O il1il1 ABCDEFGHIJKLMW abcdefghijklmw -?#!</font><br><br>"}') \
- && echo '</body></html>') > fonts.html
- xdg-open fonts.html
Advertisement
Comments
-
- Makes a list of fonts and opens it with your web browser.
- Some fonts are deleted like symbols, dingbat, a few Noto fonts and on my system there were some odd 4-5 letter fonts with a 10 on the end of the name like crwm10 so I dropped them.
Add Comment
Please, Sign In to add comment
Advertisement