ttf-atarismall (2.1-3.1) sfd2bold.ff

Summary

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

    
download this patch

Patch contents

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