| 1 |
#!/usr/bin/env fontforge |
| 2 |
# Time-stamp: <2005-02-11 13:17:03 ralf> |
| 3 |
# Copyright 2004, 2005 Ralf Stubner |
| 4 |
# See the file COPYING (GNU General Public License) for license |
| 5 |
# conditions. |
| 6 |
|
| 7 |
# prepare and copy SC and OsF |
| 8 |
# MergeFonts() doesn't like in the references in Palladio-SC |
| 9 |
Open("Palladio-SC.sfd"); |
| 10 |
Select("zero","nine", "a","z", "grave","caron"); |
| 11 |
SelectMore("ae"); |
| 12 |
SelectMore("lslash"); |
| 13 |
SelectMore("oslash"); |
| 14 |
SelectMore("oe"); |
| 15 |
SelectMore("adieresis","iogonek", "dcroat","thorn"); |
| 16 |
SelectMore("commaaccent"); |
| 17 |
UnlinkReference(); |
| 18 |
Copy(); |
| 19 |
|
| 20 |
Open("uplr8a.pfb"); |
| 21 |
# proper setup with names etc |
| 22 |
fontname="TeXPalladioL-SC"; |
| 23 |
fontfamily="TeX Palladio L"; |
| 24 |
fullname="TeX Palladio L Small Caps & Old Style Figures"; |
| 25 |
copyright=$copyright+", Copyright 2004, 2005 Ralf Stubner."; |
| 26 |
copyright=AddGPL(copyright); |
| 27 |
copyright=AddException(copyright); |
| 28 |
fontversion="1.003"; |
| 29 |
|
| 30 |
SetFontNames(fontname,fontfamily,fullname,"",copyright,fontversion); |
| 31 |
# No UniqueID (needs recent ff to work properly) |
| 32 |
SetUniqueID(-1); |
| 33 |
# use OtherSubrs from URW (needs recent ff to work properly) |
| 34 |
ReadOtherSubrsFile("URW-OtherSubrs.ps"); |
| 35 |
|
| 36 |
# paste OsF and SC |
| 37 |
Select("zero","nine", "a","z", "grave","caron"); |
| 38 |
SelectMore("ae"); |
| 39 |
SelectMore("lslash"); |
| 40 |
SelectMore("oslash"); |
| 41 |
SelectMore("oe"); |
| 42 |
SelectMore("adieresis","iogonek", "dcroat","thorn"); |
| 43 |
SelectMore("commaaccent"); |
| 44 |
Clear(); |
| 45 |
Paste(); |
| 46 |
|
| 47 |
# ligatures |
| 48 |
Select("fi","fl"); |
| 49 |
BuildComposite(); |
| 50 |
UnlinkReference(); |
| 51 |
|
| 52 |
Select("s"); |
| 53 |
width=CharInfo("Width"); |
| 54 |
Copy(); |
| 55 |
Select("germandbls"); |
| 56 |
Clear(); |
| 57 |
Paste(); |
| 58 |
Move(width,0); |
| 59 |
PasteInto(); |
| 60 |
|
| 61 |
# dotlessi |
| 62 |
Select("i"); |
| 63 |
Copy(); |
| 64 |
Select("dotlessi"); |
| 65 |
Paste(); |
| 66 |
|
| 67 |
# build q and real accents |
| 68 |
Select("q"); |
| 69 |
SelectMore("lslash"); |
| 70 |
SelectMore("oslash"); |
| 71 |
SelectMore("aogonek"); |
| 72 |
SelectMore("ccedilla"); |
| 73 |
SelectMore("eogonek"); |
| 74 |
SelectMore("uogonek"); |
| 75 |
SelectMore("scedilla"); |
| 76 |
SelectMore("iogonek"); |
| 77 |
SelectMore("dcroat"); |
| 78 |
RemoveOverlap(); |
| 79 |
Simplify(); |
| 80 |
RoundToInt(); |
| 81 |
|
| 82 |
# underscore |
| 83 |
Select("underscore"); |
| 84 |
Scale(100,116,0,0); |
| 85 |
Move(0,-15); |
| 86 |
|
| 87 |
# emdash |
| 88 |
Select("emdash"); |
| 89 |
Scale(75,100,0,0); |
| 90 |
Move(125,0); |
| 91 |
SetWidth(1000); |
| 92 |
RoundToInt(); |
| 93 |
|
| 94 |
|
| 95 |
# kerning |
| 96 |
RemoveAllKerns(); |
| 97 |
MergeKern("pplrc9d-kern.afm"); |
| 98 |
|
| 99 |
# hinting |
| 100 |
ChangePrivateEntry("BlueValues","[-20 0 469 481 487 499 692 712]"); |
| 101 |
|
| 102 |
Save("TeXPalladioL-SC.sfd"); |
| 103 |
# generte Type1, scale generate TTF |
| 104 |
Generate("fplrc8a.pfb","",3); |
| 105 |
# ScaleToEm(2048); |
| 106 |
# Generate("fplrc8a.ttf","",0x80); |
| 107 |
|
| 108 |
Quit(0); |
| 109 |
|