Debian Codegraph @

tests/test120.pe

raw
1 #Needs: fonts/NumberPoints.sfd
2
3 #Another point number test based on glyphs from deja-vu
4
5 Open($1)
6 Reencode("original")
7 cnt=CharCnt()
8 ptcnts = Array(cnt)
9 names = Array(cnt)
10 i=j=0
11 while ( i<cnt )
12 Select(i);
13 if ( WorthOutputting())
14 ptcnts[j] = CharInfo("PointCount");
15 names[j] = CharInfo("Name")
16 ++j;
17 endif
18 ++i;
19 endloop
20 cnt = j
21
22 Generate("NumberPoints.ttf")
23 Open("NumberPoints.ttf")
24
25 i=0
26 while ( i<cnt )
27 Select(names[i]);
28 if ( ptcnts[i] != CharInfo("PointCount"))
29 Print("!!!! Point count wrong in glyph " + ToString(i) + " " + CharInfo("Name"))
30 endif
31 ++i;
32 endloop
33
34 Quit()