Debian Codegraph @

tests/helper118A.pe

raw
1
2 # test that the encodings of these two fonts match
3
4 Open($2)
5 i=0;
6 while ( i<0xffff )
7 Open($1) # Switch to base font
8 if ( SelectIf(UCodePoint(i))>0 )
9 name = CharInfo("Name");
10 Open($2)
11 if ( SelectIf(UCodePoint(i))<=0 )
12 Error( "Missing Unicode " + ToString(UCodePoint(i)) + " in " + $2 )
13 else
14 othername = CharInfo("Name")
15 if ( name!=othername )
16 Error( "Code point " + ToString(UCodePoint(i)) + " has the wrong name. It should be " + name + " but it is " + othername + " in " + $2 )
17 endif
18 endif
19 endif
20 i = i+1
21 endloop
22
23 Open($2 )
24 Close()