#!/usr/local/bin/fontforge # # Usage: 0x5c-reverse-solidus.pe [] # If output filename is not specified, # new file is created as "new.input.ttf" in the current directory. # This script cannot handle *.ttc. format = $1:e; if (format != "ttf" && format != "otf") Error("This script can handle *.ttf or *.otf only."); endif if ($argc > 2) OutputFile = $2; else OutputFile = "new."+$1:t; endif Open($1); // copy YEN SIGN glyph to 0xa5. if (! InFont(0xa5) ) Select(0x5c); Copy(); Select(0xa5); Paste(); endif // make REVERSE SOLIDUS glyph: copy '/' and flip it. Select(0x2f); Copy(); Select(0x5c); Paste(); HFlip(); Generate(OutputFile, format); Quit(0);