File: vmet.pe

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 (25 lines) | stat: -rwxr-xr-x 928 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
#!/usr/bin/fontforge
Open($1);

bbox = GetFontBoundingBox()

# Print("Current Values\n")

Print("MaxY ", bbox[3])
Print("WinAscent ", GetOS2Value("WinAscent"))
Print("WinAscentIsOffset ", GetOS2Value("WinAscentIsOffset"))
Print("TypoAscent ", GetOS2Value("TypoAscent"))
Print("TypoAscentIsOffset ", GetOS2Value("TypoAscentIsOffset"))
Print("HHeadAscent ", GetOS2Value("HHeadAscent"))
Print("HHeadAscentIsOffset ", GetOS2Value("HHeadAscentIsOffset"))

Print("MinY ", bbox[1])
Print("WinDescent +ve", GetOS2Value("WinDescent"))
Print("WinDescentIsOffset ", GetOS2Value("WinDescentIsOffset"))
Print("TypoDescent ", GetOS2Value("TypoDescent"))
Print("TypoDescentIsOffset ", GetOS2Value("TypoDescentIsOffset"))
Print("HHeadDescent ", GetOS2Value("HHeadDescent"))
Print("HHeadDescentIsOffset ", GetOS2Value("HHeadDescentIsOffset"))

Print("TypoLineGap ", GetOS2Value("TypoLineGap"))
Print("HHeadLineGap ", GetOS2Value("HHeadLineGap"))