ttf-atarismall (2.1-3.1) direct (non packaging) changes

Summary

 sfd2bold.ff      |   17 +++++++++++++++++
 sfd2condensed.ff |   17 +++++++++++++++++
 sfd2italic.ff    |   17 +++++++++++++++++
 sfd2light.ff     |   17 +++++++++++++++++
 4 files changed, 68 insertions(+)

    
download this patch

Patch contents

--- ttf-atarismall-2.1.orig/sfd2italic.ff
+++ ttf-atarismall-2.1/sfd2italic.ff
@@ -0,0 +1,17 @@
+#!/usr/bin/fontforge
+if ($argc > 1)
+    Open($argv[1])
+    ttfile = $fontname + "Italic"
+    Print("Making ",ttfile)
+    SetFontNames(ttfile,ttfile,$fontname+" Italic","Italic")
+    SelectAll()
+    if ($argc > 2)
+	Skew($2)
+    else
+	Skew(10)
+    endif
+    Save(ttfile+".sfd")
+    Close()
+else
+    Print("Usage: $0 font.sfd [italic angle, default 10]")
+endif
--- ttf-atarismall-2.1.orig/sfd2light.ff
+++ ttf-atarismall-2.1/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
--- 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
--- ttf-atarismall-2.1.orig/sfd2condensed.ff
+++ ttf-atarismall-2.1/sfd2condensed.ff
@@ -0,0 +1,17 @@
+#!/usr/bin/fontforge
+if ($argc > 1)
+    Open($argv[1])
+    ttfile = $fontname + "Condensed"
+    Print("Making ",ttfile)
+    SetFontNames(ttfile,ttfile,$fontname+" Condensed","Condensed")
+    SelectAll()
+    if ($argc > 2)
+	Scale($2,100,0,0)
+    else
+	Scale(80,100,0,0)
+    endif
+    Save(ttfile+".sfd")
+    Close()
+else
+    Print("Usage: $0 font.sfd [condense, default 80%]")
+endif