File: vmet.sh

package info (click to toggle)
googlefontdirectory-tools 20120309.1-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 340 kB
  • ctags: 73
  • sloc: python: 821; sh: 34; makefile: 30
file content (30 lines) | stat: -rwxr-xr-x 1,005 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
#
# showttf Font.ttf | grep -E '(scen|gap|(HHEAD|OS/2) table)'
#
echo $1;
echo "Ascent metrics should be the ";
echo -n "bbox "; showttf $1 | grep ymax= | tr -d "\t " | tr "=" "\t" ;
echo ""
showttf $1 | grep usWinAscent= | tr -d "\t " | tr "=" "\t" ;
# captured in following grep
# showttf $1 | grep stypeascender= | tr -d "\t " | tr "=" "\t" ;
showttf $1 | grep ascender= | tr -d "\t " | tr "=" "\t" ;
echo ""

echo "Descent metrics should be the ";
echo -n "bbox "; showttf $1 | grep ymin= | tr -d "\t " | tr "=" "\t" ;
echo ""
echo "(WinDescent should be positive)"
showttf $1 | grep usWinDescent= | tr -d "\t " | tr "=" "\t" ;
# captured in following grep
# showttf $1 | grep stypedescender= | tr -d "\t " | tr "=" "\t" ;
showttf $1 | grep descender= | tr -d "\t " | tr "=" "\t" ;
echo ""

echo "(LineGaps should be 0)"
# captured in following grep
# showttf $1 | grep stypelinegap= | tr -d "\t " | tr "=" "\t" ;
showttf $1 | grep "linegap=" | tr -d "\t " | tr "=" "\t" ;
echo ""
echo ""