| 1 |
#Needs: fonts/DejaVuSerif.sfd |
| 2 |
|
| 3 |
# The "i" glyph contains a point that could be interpolated between its |
| 4 |
# control points, but must not be because the instructions depend on it |
| 5 |
# being there. |
| 6 |
|
| 7 |
Open($1) |
| 8 |
Reencode("original") |
| 9 |
cnt=CharCnt() |
| 10 |
ptcnts = Array(cnt) |
| 11 |
names = Array(cnt) |
| 12 |
i=j=0 |
| 13 |
while ( i<cnt ) |
| 14 |
Select(i); |
| 15 |
if ( WorthOutputting()) |
| 16 |
ptcnts[j] = CharInfo("PointCount"); |
| 17 |
names[j] = CharInfo("Name") |
| 18 |
++j; |
| 19 |
endif |
| 20 |
++i; |
| 21 |
endloop |
| 22 |
cnt = j |
| 23 |
|
| 24 |
Generate("DejaVuSerif1.ttf") |
| 25 |
Open("DejaVuSerif1.ttf") |
| 26 |
|
| 27 |
i=0 |
| 28 |
while ( i<cnt ) |
| 29 |
Select(names[i]); |
| 30 |
if ( ptcnts[i] != CharInfo("PointCount")) |
| 31 |
Print("!!!! Point count wrong in glyph " + ToString(i) + " " + CharInfo("Name")) |
| 32 |
endif |
| 33 |
++i; |
| 34 |
endloop |
| 35 |
|
| 36 |
Generate("DejaVuSerif2.ttf") |
| 37 |
Open("DejaVuSerif2.ttf") |
| 38 |
|
| 39 |
i=0 |
| 40 |
while ( i<cnt ) |
| 41 |
Select(names[i]); |
| 42 |
if ( ptcnts[i] != CharInfo("PointCount")) |
| 43 |
Print("!!!! (#2) Point count wrong in glyph " + ToString(i) + " " + CharInfo("Name")) |
| 44 |
endif |
| 45 |
++i; |
| 46 |
endloop |
| 47 |
|
| 48 |
Quit() |