| 1 |
strip_glyphs.pe is a fontforge script (syntax is documented at |
| 2 |
http://fontforge.sourceforge.net/scripting.html) |
| 3 |
|
| 4 |
Usage: "strip_glyphs.pe in out glyphs" |
| 5 |
|
| 6 |
It strips glyphs out of a font file; glyphs can be ranges |
| 7 |
or single code points. |
| 8 |
Code points can be expressed as integers or in unicode notation (i.e |
| 9 |
"u215") and ranges are separated by ":". |
| 10 |
|
| 11 |
As a practical example, this commands were used to eliminate |
| 12 |
Arabic glyphs from the freefont package: |
| 13 |
|
| 14 |
./strip_glyphs.pe FreeSerif.ttf FreeSerif_strip.ttf u60c:u6d4 ufb50:ufefe |
| 15 |
./strip_glyphs.pe FreeSansBold.ttf FreeSansBold_strip.ttf u617:u633 |
| 16 |
|
| 17 |
Note that "in" and "out" can be the same file; in that case, obviously, |
| 18 |
"in" gets overwritten. |