Advertisement
TrainLover

FontSample.sh

Nov 16th, 2023 (edited)
24
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. cd ~/bin # only to keep the html file in a known place.
  4.  
  5. (echo '<html><body><center><font size=6>Font List</font></center><br><br>' \
  6. && (fc-list : family |sed 's/,/\n/' |grep -iv droid|grep -iv emoji| grep -iv dingbats| \
  7. grep -v [a-z]10 | grep -iv 'noto sans .* .* ' | grep -iv 'noto serif .* .* ' | \
  8. grep -iv symbols|grep -iv music | sort|uniq \
  9. | awk -F" " '{ print "<font face=\"arial\" size=5>#"FNR" "$1" "$2" "$3" "$4" "$5"<br> \
  10. <font face=\""$1" "$2" "$3" "$4" "$5"\" size=6> \
  11. 0123456789 0O il1il1 ABCDEFGHIJKLMW abcdefghijklmw -?#!<br>0123456789 0O il1il1 abcdefghijklmw \
  12. ABCDEFGHIJKLMW -?#!<br>0123456789 0O il1il1 ABCDEFGHIJKLMW abcdefghijklmw -?#!</font><br><br>"}') \
  13. && echo '</body></html>') > fonts.html
  14. xdg-open fonts.html
Tags: Script
Advertisement
Comments
  • TrainLover
    171 days
    # text 0.23 KB | 0 0
    1. Makes a list of fonts and opens it with your web browser.
    2. 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