psLib

exception fontTools.misc.psLib.PSTokenError

Bases: exceptions.Exception

exception fontTools.misc.psLib.PSError

Bases: exceptions.Exception

class fontTools.misc.psLib.PSTokenizer(buf='')

Bases: StringIO.StringIO

getnexttoken(len=<built-in function len>, ps_special='()<>[]{}%', stringmatch=<built-in method match of _sre.SRE_Pattern object>, hexstringmatch=<built-in method match of _sre.SRE_Pattern object>, commentmatch=<built-in method match of _sre.SRE_Pattern object>, endmatch=<built-in method match of _sre.SRE_Pattern object>, whitematch=<built-in method match of _sre.SRE_Pattern object>)
skipwhite(whitematch=<built-in method match of _sre.SRE_Pattern object>)
starteexec()
stopeexec()
flush()
class fontTools.misc.psLib.PSInterpreter

Bases: fontTools.misc.psOperators.PSOperators

fillsystemdict()
suckoperators(systemdict, klass)
interpret(data, getattr=<built-in function getattr>)
handle_object(object)
call_procedure(proc)
resolve_name(name)
do_token(token, int=<type 'int'>, float=<type 'float'>, ps_name=<class fontTools.misc.psOperators.ps_name>, ps_integer=<class fontTools.misc.psOperators.ps_integer>, ps_real=<class fontTools.misc.psOperators.ps_real>)
do_comment(token)
do_literal(token)
do_string(token)
do_hexstring(token)
do_special(token)
push(object)
pop(*types)
do_makearray()
close()

Remove circular references.

fontTools.misc.psLib.unpack_item(item)
fontTools.misc.psLib.suckfont(data)