ttf-ocr-a (1.0-2) sfd2light.ff

Summary

 sfd2light.ff |   17 +++++++++++++++++
 1 file changed, 17 insertions(+)

    
download this patch

Patch contents

--- ttf-ocr-a-1.0.orig/sfd2light.ff
+++ ttf-ocr-a-1.0/sfd2light.ff
@@ -0,0 +1,17 @@
+#!/usr/bin/fontforge
+if ($argc > 1)
+    Open($argv[1])
+    ttfile = $fontname + "Light"
+    Print("Making ",ttfile)
+    SetFontNames(ttfile,ttfile,$fontname+" Light","Light")
+    SelectAll()
+    if ($argc > 2)
+	ExpandStroke($2,0,0,0,6)
+    else
+	ExpandStroke(40,0,0,0,6)
+    endif
+    Save(ttfile+".sfd")
+    Close()
+else
+    Print("Usage: $0 font.sfd [width, default 40]")
+endif