| 1 |
#Needs: fonts/VKern.sfd |
| 2 |
|
| 3 |
Open($1); |
| 4 |
Select("A"); |
| 5 |
if ( CharInfo("Kern","V")!=-246 ) |
| 6 |
Error("Kerning information incorrect") |
| 7 |
endif |
| 8 |
if ( CharInfo("Kern","W")!=-200 ) |
| 9 |
Error("Kerning information incorrect2") |
| 10 |
endif |
| 11 |
Select("A.vert"); |
| 12 |
if ( CharInfo("VKern","V.vert")!=-246 ) |
| 13 |
Error("Initial VKerning information incorrect") |
| 14 |
endif |
| 15 |
RemoveAllVKerns() |
| 16 |
Select("A.vert"); |
| 17 |
if ( CharInfo("VKern","V.vert")!=0 ) |
| 18 |
Error("Initial VKerning information incorrect2") |
| 19 |
endif |
| 20 |
VKernFromHKern() |
| 21 |
Select("A.vert"); |
| 22 |
if ( CharInfo("VKern","V.vert")!=-246 ) |
| 23 |
Error("After VKernFromHKern VKerning information incorrect") |
| 24 |
endif |
| 25 |
if ( CharInfo("VKern","W.vert")!=-200 ) |
| 26 |
Error("After VKernFromHKern VKerning information incorrect2") |
| 27 |
endif |
| 28 |
|
| 29 |
Generate("VKern.otf","",0); |
| 30 |
Open("VKern.otf"); |
| 31 |
Select("A.vert"); |
| 32 |
if ( CharInfo("VKern","V.vert")!=-246 ) |
| 33 |
Error("From otf VKerning information incorrect") |
| 34 |
endif |
| 35 |
if ( CharInfo("VKern","W.vert")!=-200 ) |
| 36 |
Error("From otf VKerning information incorrect2") |
| 37 |
endif |
| 38 |
|
| 39 |
Generate("VKern.otf","",0x10); |
| 40 |
Open("VKern.otf"); |
| 41 |
Select("A.vert"); |
| 42 |
if ( CharInfo("VKern","V.vert")!=-246 ) |
| 43 |
Error("From otf VKerning information incorrect3") |
| 44 |
endif |
| 45 |
if ( CharInfo("VKern","W.vert")!=-200 ) |
| 46 |
Error("From otf VKerning information incorrect4") |
| 47 |
endif |
| 48 |
|
| 49 |
Generate("VKern.svg"); |
| 50 |
Open("VKern.svg"); |
| 51 |
Select("A.vert"); |
| 52 |
/* I don't try to do classed based kerning in svg. It's all flat */ |
| 53 |
if ( CharInfo("VKern","V.vert")!=-246 && CharInfo("VKern","W.vert")!=-200 ) |
| 54 |
Error("From svg VKerning information incorrect") |
| 55 |
endif |
| 56 |
if ( CharInfo("VKern","W.vert")!=-200 ) |
| 57 |
Error("From svg VKerning information incorrect2") |
| 58 |
endif |
| 59 |
Quit() |