From 5ac60f8c4ec8a9c9c2f03db8a27fa92e60e531f8 Mon Sep 17 00:00:00 2001 From: Erik van Blokland Date: Wed, 19 Oct 2011 17:58:18 +0000 Subject: [PATCH] Old scripts and tools. git-svn-id: http://svn.robofab.com/branches/ufo3k@433 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c --- Scripts/RoboFabUtils/GenerateKernProof.py | 31 ----------------------- Scripts/RoboFabUtils/Start_FL_Remote.py | 15 ----------- Scripts/RoboFabUtils/TestFontEquality.py | 28 -------------------- 3 files changed, 74 deletions(-) delete mode 100644 Scripts/RoboFabUtils/GenerateKernProof.py delete mode 100755 Scripts/RoboFabUtils/Start_FL_Remote.py delete mode 100644 Scripts/RoboFabUtils/TestFontEquality.py diff --git a/Scripts/RoboFabUtils/GenerateKernProof.py b/Scripts/RoboFabUtils/GenerateKernProof.py deleted file mode 100644 index 6275e712d..000000000 --- a/Scripts/RoboFabUtils/GenerateKernProof.py +++ /dev/null @@ -1,31 +0,0 @@ -#FLM: Make Kerning Proof of selection - -"""Generate an InDesign 2.0 tagged text file -for every possible glyph combination in the current font.""" - -from robofab.tools.proof import IDTaggedText -from robofab.world import CurrentFont - -f = CurrentFont() - -fontSize = 36 - -id = IDTaggedText(f.info.familyName, f.info.styleName, size=fontSize) - -names = f.selection -names.sort() - -for l in names: - left = f[l] - for r in names: - right = f[r] - id.addGlyph(left.index) - id.addGlyph(right.index) - id.add(' ') - print 'finished all pairs starting with', left.name - -from robofab.interface.all.dialogs import PutFile -path = PutFile("Save the tagged file:", "KerningProofTags.txt") -if path: - id.save(path) - diff --git a/Scripts/RoboFabUtils/Start_FL_Remote.py b/Scripts/RoboFabUtils/Start_FL_Remote.py deleted file mode 100755 index e1f6822ec..000000000 --- a/Scripts/RoboFabUtils/Start_FL_Remote.py +++ /dev/null @@ -1,15 +0,0 @@ -#FLM: Start FontLab remote - -# On MacOS this will make FontLab accept apple events. -# It will assume the event contains a piece of executable -# python code and run it. The results of the python code -# are then returned in the reply. -# -# Check the code in robofab/tools/remote.py for more -# functionality. For instance, it contains several -# functions to send and receive glyphs from outside -# FontLab, offering a way to make your NoneLab Python -# scripts communicate with FontLab. - -from robofab.tools.remote import * - diff --git a/Scripts/RoboFabUtils/TestFontEquality.py b/Scripts/RoboFabUtils/TestFontEquality.py deleted file mode 100644 index 04ef36557..000000000 --- a/Scripts/RoboFabUtils/TestFontEquality.py +++ /dev/null @@ -1,28 +0,0 @@ -from robofab.world import AllFonts - -print "Compare all fonts in the AllFonts list with each other:" - - -af = AllFonts() - -results = [] -line = [] -for n in af: - line.append(`n.info.postscriptFullName`) -results.append(line) - -for i in range(len(af)): - one = af[i] - line = [] - line.append(af[i].info.postscriptFullName) - for j in range(len(af)): - other = af[j] - line.append(`one==other`) - if one == other: - print "same: ", one.path, other.path - results.append(line) - -for n in results: - print n - - \ No newline at end of file