| 1 |
#!/usr/bin/env fontforge |
| 2 |
# Time-stamp: <2005-02-11 13:16:49 ralf> |
| 3 |
# Copyright 2004, 2005 Ralf Stubner |
| 4 |
# See the file COPYING (GNU General Public License) for license |
| 5 |
# conditions. |
| 6 |
|
| 7 |
Open("uplb8a.pfb"); |
| 8 |
# proper setup with names etc |
| 9 |
fontname="TeXPalladioL-BoldOsF"; |
| 10 |
fontfamily="TeX Palladio L"; |
| 11 |
fullname="TeX Palladio L Bold 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-BoldOsF.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 |
# kerning |
| 41 |
RemoveAllKerns(); |
| 42 |
MergeKern("pplb9d-kern.afm"); |
| 43 |
|
| 44 |
Save("TeXPalladioL-BoldOsF.sfd"); |
| 45 |
# generte Type1, scale generate TTF |
| 46 |
Generate("fplbj8a.pfb","",3); |
| 47 |
# ScaleToEm(2048); |
| 48 |
# Generate("fplbj8a.ttf","",0x80); |
| 49 |
|
| 50 |
Quit(0); |
| 51 |
|