| 1 |
#!/usr/bin/fontforge |
| 2 |
|
| 3 |
i = 1; |
| 4 |
while (i < $argc) |
| 5 |
Print("converting ", $argv[i], "..."); |
| 6 |
Open($argv[i]); |
| 7 |
|
| 8 |
# Arev Sans has too many characters, so fontinst scripts exhaust TeX's memory. |
| 9 |
# We'll remove ones that we don't need. |
| 10 |
Select (0u0100,0u017f); #Latin-extended A |
| 11 |
SelectMore(0u0180,0u024f); #Latin-extended B |
| 12 |
SelectMore(0u0250,0u02af); #IPA |
| 13 |
SelectMore(0u02de,0u02ee); #Spacing modifier letters |
| 14 |
# SelectMore(0u0300,0u0362); #Combining diacritical marks |
| 15 |
# SelectMore(0u0384,0u0390); #tonos Greek |
| 16 |
SelectMore(0u0400,0u04ff); #Cyrillic |
| 17 |
SelectMore(0u0500,0u05ff); #Cyrillic supplement |
| 18 |
SelectMore(0u1e00,0u1ef9); #Latin extended additional |
| 19 |
SelectMore(0u1f00,0u1ffe); #Greek extended |
| 20 |
SelectMore(0u203b,0u206f); #General punctuation |
| 21 |
SelectMore(0u2070,0u209f); #Super and sub scripts |
| 22 |
SelectMore(0u20a0,0u20bf); #Currency symbols |
| 23 |
SelectMore(0u20d0,0u20ef); #Accents for symbols |
| 24 |
SelectMore(0u2153,0u218f); #Number forms |
| 25 |
SelectMore(0u2190,0u21ff); #Arrows |
| 26 |
SelectMore(0u2236,0u22ff); #Math symbols, mainly relations |
| 27 |
SelectMore(0u2300,0u232a); #Technical symbols |
| 28 |
SelectMore(0u2580,0u259f); #Block elements |
| 29 |
# SelectMore(0u2600,0u267f); #Misc symbols |
| 30 |
# SelectMore(0u2680,0u26ff); #Symbols |
| 31 |
# SelectMore(0u2700,0u27bf); #Dingbats |
| 32 |
SelectMore(0u27e0,0u27ff); #Supplemental arrows |
| 33 |
SelectMore(0ueb41,0ueb7a); #Latin bars |
| 34 |
SelectMore(0uee91,0ueef5); #Greek bars |
| 35 |
|
| 36 |
SelectFewerSingletons(0u0192); # florin |
| 37 |
SelectFewerSingletons(0u0237); # dotlessj |
| 38 |
SelectFewerSingletons(0u0131); # dotlessi |
| 39 |
SelectFewerSingletons(0u0141); # Lslash |
| 40 |
SelectFewerSingletons(0u0142); # lslash |
| 41 |
SelectFewerSingletons(0u014a); # Eng |
| 42 |
SelectFewerSingletons(0u014b); # eng |
| 43 |
SelectFewerSingletons(0u0152); # OE |
| 44 |
SelectFewerSingletons(0u0153); # oe |
| 45 |
|
| 46 |
Clear(); |
| 47 |
|
| 48 |
SetFontOrder(3); # convert from quadratic to cubic curves |
| 49 |
ScaleToEm(1000); # to standard Postscript sizes, also scales underline value |
| 50 |
|
| 51 |
# no default hints for non-Vera characters |
| 52 |
SelectAll(); |
| 53 |
AutoHint(); |
| 54 |
|
| 55 |
Generate($fontname+".pfb", "", -1); |
| 56 |
i++; |
| 57 |
endloop |