| 1 |
#Needs: fonts/mingliu.ttc, fonts/GillSans.dfont, fonts/ItalicHand.sfd, fonts/ItalicHand.svg, fonts/MunhwaGothic-Bold, fonts/Caliban.otf |
| 2 |
|
| 3 |
names = FontsInFile("non-existent-file"); |
| 4 |
if ( SizeOf(names)!=0 ) |
| 5 |
Error("Incorrect behavior on non-existent font file" ); |
| 6 |
endif |
| 7 |
|
| 8 |
names = FontsInFile($1); |
| 9 |
if ( SizeOf(names)!=2 ) |
| 10 |
Error("Incorrect name count on mingliu.ttc" ); |
| 11 |
elseif ( names[0]!="MingLiU" || names[1]!="PMingLiU" ) |
| 12 |
Error("Incorrect names read from mingliu.ttc ("+names[0]+","+names[1]+")" ); |
| 13 |
endif |
| 14 |
|
| 15 |
names = FontsInFile($2); |
| 16 |
if ( SizeOf(names)!=6 ) |
| 17 |
Error("Incorrect name count on GillSans.dfont" ); |
| 18 |
elseif ( names[0]!="Gill Sans Light" || names[1]!="Gill Sans Bold" || names[2]!="Gill Sans Light Italic" || names[3]!="Gill Sans Italic" || names[4]!="Gill Sans Bold Italic" || names[5]!="Gill Sans" ) |
| 19 |
Error("Incorrect names read from GillSans.dfont ("+names[0]+","+names[1]+","+names[2]+","+names[3]+","+names[4]+","+names[5]+")" ); |
| 20 |
endif |
| 21 |
|
| 22 |
names = FontsInFile($3); |
| 23 |
if ( SizeOf(names)!=1 ) |
| 24 |
Error("Incorrect name count on ItalicHand.sfd" ); |
| 25 |
elseif ( names[0]!="ItalicHand" ) |
| 26 |
Error("Incorrect names read from ItalicHand.sfd ("+names[0]+")" ); |
| 27 |
endif |
| 28 |
|
| 29 |
names = FontsInFile($4); |
| 30 |
if ( SizeOf(names)!=1 ) |
| 31 |
Error("Incorrect name count on ItalicHand.svg" ); |
| 32 |
elseif ( names[0]!="ItalicHand" ) |
| 33 |
Error("Incorrect names read from ItalicHand.svg ("+names[0]+")" ); |
| 34 |
endif |
| 35 |
|
| 36 |
names = FontsInFile($5); |
| 37 |
if ( SizeOf(names)!=1 ) |
| 38 |
Error("Incorrect name count on MunhwaGothic-Bold" ); |
| 39 |
elseif ( names[0]!="MunhwaGothic-Bold" ) |
| 40 |
Error("Incorrect names read from MunhwaGothic-Bold ("+names[0]+")" ); |
| 41 |
endif |
| 42 |
|
| 43 |
names = FontsInFile($6); |
| 44 |
if ( SizeOf(names)!=1 ) |
| 45 |
Error("Incorrect name count on Caliban.otf" ); |
| 46 |
elseif ( names[0]!="Caliban" ) |
| 47 |
Error("Incorrect names read from Caliban.otf ("+names[0]+")" ); |
| 48 |
endif |