Skip to content

Instantly share code, notes, and snippets.

@lamberta
Created April 16, 2010 02:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save lamberta/367931 to your computer and use it in GitHub Desktop.
Save lamberta/367931 to your computer and use it in GitHub Desktop.
from robofab.tools.remoteTCP import FontLabServer
myServer = FontLabServer()
myServer.run()
from robofab.tools.remoteTCP import FontLabServer
myServer = FontLabServer(False) #no outside connections
myServer.run(4567) #changes port
from robofab.tools.remoteTCP import FontLabServer
myServer = FontLabServer()
user = "erik"
password = "officinia4eva"
fullName = "Erik Spiekermann"
myServer.addUser(user, password, fullName)
#only user/password are required
myServer.run()
from robofab.tools.remoteTCP import FontLabServer
myServer = FontLabServer()
print "My local ip: %s" % myServer.getInternal_ip()
print "My internet ip: %s" % myServer.getExternal_ip()
from robofab.tools.remoteTCP import runFontLabRemote
x = runFontLabRemote("print 1+1")
print x
from robofab.tools.remoteTCP import transmitGlyph
f = OpenFont()
transmitGlyph(f['a'])
from robofab.tools.remoteTCP import runFontLabRemote
code = "print 1+1"
host = "192.168.0.1"
#using the output of myServer.getInternal_ip()
port = 1455
user = "erik"
password = "officina4eva"
print runFontLabRemote(code, host, port, user, password)
path = "c:\my\path\to\UFO\directory\"
f = OpenFont( path )
glyph = f['a']
transmitGlyph(glyph, host, port, user, password)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment