| 1 |
#!/usr/bin/env fontforge |
| 2 |
# Time-stamp: <2005-02-11 13:16:55 ralf> |
| 3 |
# Copyright 2004, 2005 Ralf Stubner |
| 4 |
# See the file COPYING (GNU General Public License) for license |
| 5 |
# conditions. |
| 6 |
|
| 7 |
Open("uplri8a.pfb"); |
| 8 |
# proper setup with names etc |
| 9 |
fontname="TeXPalladioL-ItalicOsF"; |
| 10 |
fontfamily="TeX Palladio L"; |
| 11 |
fullname="TeX Palladio L Italic Old Style Figures"; |
| 12 |
copyright=$copyright+", Copyright 2004, 2005 Ralf Stubner."; |
| 13 |
copyright=AddGPL(copyright); |
| 14 |
copyright=AddException(copyright); |
| 15 |
fontversion="1.003"; |
| 16 |
|
| 17 |
SetFontNames(fontname,fontfamily,fullname,"",copyright,fontversion); |
| 18 |
# No UniqueID (needs recent ff to work properly) |
| 19 |
SetUniqueID(-1); |
| 20 |
# use OtherSubrs from URW (needs recent ff to work properly) |
| 21 |
ReadOtherSubrsFile("URW-OtherSubrs.ps"); |
| 22 |
|
| 23 |
# copy OsF and SC |
| 24 |
Select("zero","nine"); |
| 25 |
Clear(); |
| 26 |
MergeFonts("Palladio-ItalicOsF.sfd"); |
| 27 |
|
| 28 |
# underscore |
| 29 |
Select("underscore"); |
| 30 |
Scale(100,116,0,0); |
| 31 |
Move(0,-15); |
| 32 |
|
| 33 |
# emdash |
| 34 |
Select("emdash"); |
| 35 |
Scale(75,100,0,0); |
| 36 |
Move(125,0); |
| 37 |
SetWidth(1000); |
| 38 |
RoundToInt(); |
| 39 |
|
| 40 |
# dotaccent |
| 41 |
Select("dotaccent"); |
| 42 |
Move(-50,0); |
| 43 |
SetWidth(333); |
| 44 |
|
| 45 |
# kerning |
| 46 |
RemoveAllKerns(); |
| 47 |
MergeKern("pplri9d-kern.afm"); |
| 48 |
|
| 49 |
# hinting |
| 50 |
ChangePrivateEntry("StemSnapV","[72 76 78 88]"); |
| 51 |
|
| 52 |
Save("TeXPalladioL-ItalicOsF.sfd"); |
| 53 |
# generte Type1, scale generate TTF |
| 54 |
Generate("fplrij8a.pfb","",3); |
| 55 |
# ScaleToEm(2048); |
| 56 |
# Generate("fplrij8a.ttf","",0x80); |
| 57 |
|
| 58 |
Quit(0); |
| 59 |
|