File: survey_enlarged.py

package info (click to toggle)
fonts-junicode 2.211%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 104,448 kB
  • sloc: python: 304; sh: 236; xml: 18; makefile: 16
file content (11 lines) | stat: -rw-r--r-- 236 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
for g in Glyphs.font.glyphs:
	reg = g.layers[0]
	enl = g.layers[5]
	wdiff = reg.width - enl.width
	if wdiff != 0:
		print(g.name, ": ", wdiff)
	else:
		lsbdiff = reg.LSB - enl.LSB
		if lsbdiff != 0:
			print(g.name, " LSB: ", lsbdiff)