Fonts: Difference between revisions
add whichfont script |
No edit summary |
||
| Line 9: | Line 9: | ||
* What font is used for this character? | * What font is used for this character? | ||
<nowiki> | <nowiki> | ||
#!/bin/sh | #!/bin/sh | ||
set -e | set -e | ||
CHAR="$1" | CHAR="$1" | ||
for i in sans serif mono ; do | for i in sans serif mono ; do | ||
FC_DEBUG=4 pango-view --font=$i -q -t "$CHAR" 2>&1 | \ | FC_DEBUG=4 pango-view --font=$i -q -t "$CHAR" 2>&1 | \ | ||
grep -o 'family: "[^"]\+' | cut -c 10- | tail -n 1 | grep -o 'family: "[^"]\+' | cut -c 10- | tail -n 1 | ||
done | done</nowiki> | ||
</nowiki> | |||
==Some fonts worth checking out== | ==Some fonts worth checking out== | ||