mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-11-25 16:47:37 +02:00
WIP of semi-automated glyph visual testing
* allow a quick visual inspection of powerlines and glyphs
This commit is contained in:
parent
0aa5fc4a2e
commit
8ab0affbee
18
bin/scripts/tests.sh
Executable file
18
bin/scripts/tests.sh
Executable file
@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
clear
|
||||
echo "Click to start"
|
||||
|
||||
# Window geometry
|
||||
# source: https://www.maketecheasier.com/record-screen-as-animated-gif-ubuntu/
|
||||
XWININFO=$(xwininfo)
|
||||
read X < <(awk -F: '/Absolute upper-left X/{print $2}' <<< "$XWININFO")
|
||||
read Y < <(awk -F: '/Absolute upper-left Y/{print $2}' <<< "$XWININFO")
|
||||
read W < <(awk -F: '/Width/{print $2}' <<< "$XWININFO")
|
||||
read H < <(awk -F: '/Height/{print $2}' <<< "$XWININFO")
|
||||
|
||||
byzanz-record -c --exec=./test-fonts.sh --x=$X --y=$Y --width=$W --height=$H "rec3.gif"
|
||||
|
||||
convert -coalesce "rec3.gif" "results/nerd-fonts.png"
|
||||
convert -append $(ls -v results/*.png) ./test-combined.png
|
||||
|
Loading…
Reference in New Issue
Block a user