Created
April 16, 2010 02:31
-
-
Save lamberta/367931 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from robofab.tools.remoteTCP import FontLabServer | |
myServer = FontLabServer() | |
myServer.run() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from robofab.tools.remoteTCP import FontLabServer | |
myServer = FontLabServer(False) #no outside connections | |
myServer.run(4567) #changes port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from robofab.tools.remoteTCP import FontLabServer | |
myServer = FontLabServer() | |
print "My local ip: %s" % myServer.getInternal_ip() | |
print "My internet ip: %s" % myServer.getExternal_ip() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from robofab.tools.remoteTCP import runFontLabRemote | |
x = runFontLabRemote("print 1+1") | |
print x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from robofab.tools.remoteTCP import transmitGlyph | |
f = OpenFont() | |
transmitGlyph(f['a']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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