Old scripts and tools.

git-svn-id: http://svn.robofab.com/branches/ufo3k@433 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
This commit is contained in:
Erik van Blokland 2011-10-19 17:58:18 +00:00
parent a0dd7ae714
commit 5ac60f8c4e
3 changed files with 0 additions and 74 deletions

View File

@ -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)

View File

@ -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 *

View File

@ -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