fontTools.misc.psLib
index
/code/fontTools/Lib/fontTools/misc/psLib.py

 
Modules
       
StringIO
fontTools.misc.eexec
re
types

 
Classes
       
fontTools.misc.psOperators.PSOperators
PSInterpreter
StringIO.StringIO
PSTokenizer

 
class PSInterpreter(fontTools.misc.psOperators.PSOperators)
     Methods defined here:
__init__(self)
call_procedure(self, proc)
close(self)
Remove circular references.
do_comment(self, token)
do_hexstring(self, token)
do_literal(self, token)
do_makearray(self)
do_special(self, token)
do_string(self, token)
do_token(self, token, int=<type 'int'>, float=<type 'float'>, ps_name=<class fontTools.misc.psOperators.ps_name at 0x15be5a0>, ps_integer=<class fontTools.misc.psOperators.ps_integer at 0x15be6c0>, ps_real=<class fontTools.misc.psOperators.ps_real at 0x15be6f0>)
fillsystemdict(self)
handle_object(self, object)
interpret(self, data, getattr=<built-in function getattr>)
pop(self, *types)
push(self, object)
resolve_name(self, name)
suckoperators(self, systemdict, klass)

Methods inherited from fontTools.misc.psOperators.PSOperators:
proc_bind(self, proc)
ps_anchorsearch(self)
ps_array(self)
ps_astore(self)
ps_begin(self)
ps_bind(self)
ps_cleartomark(self)
ps_closefile(self)
ps_count(self)
ps_currentdict(self)
ps_currentfile(self)
ps_cvn(self)
ps_cvx(self)
ps_def(self)
ps_definefont(self)
ps_dict(self)
ps_dup(self)
ps_eexec(self)
ps_end(self)
ps_eq(self)
ps_exch(self)
ps_exec(self)
ps_executeonly(self)
ps_findfont(self)
ps_for(self)
ps_forall(self)
ps_get(self)
ps_getinterval(self)
ps_if(self)
ps_ifelse(self)
ps_index(self)
ps_known(self)
ps_load(self)
ps_matrix(self)
ps_ne(self)
ps_noaccess(self)
ps_not(self)
ps_pop(self)
ps_print(self)
ps_put(self)
ps_putinterval(self)
ps_readonly(self)
ps_readstring(self, ps_boolean=<class fontTools.misc.psOperators.ps_boolean at 0x15be540>, len=<built-in function len>)
ps_store(self)
ps_string(self)
ps_systemdict(self)
ps_type(self)
ps_userdict(self)
ps_where(self)

 
class PSTokenizer(StringIO.StringIO)
     Methods defined here:
flush(self)
getnexttoken(self, len=<built-in function len>, ps_special='()<>[]{}%', stringmatch=<built-in method match of _sre.SRE_Pattern object at 0x14ac020>, hexstringmatch=<built-in method match of _sre.SRE_Pattern object at 0x162c6b0>, commentmatch=<built-in method match of _sre.SRE_Pattern object at 0x15b2440>, endmatch=<built-in method match of _sre.SRE_Pattern object at 0x15b2320>, whitematch=<built-in method match of _sre.SRE_Pattern object at 0x15bb020>)
skipwhite(self, whitematch=<built-in method match of _sre.SRE_Pattern object at 0x15bb020>)
starteexec(self)
stopeexec(self)

Methods inherited from StringIO.StringIO:
__init__(self, buf='')
__iter__(self)
close(self)
Free the memory buffer.
getvalue(self)
Retrieve the entire contents of the "file" at any time before
the StringIO object's close() method is called.
 
The StringIO object can accept either Unicode or 8-bit strings,
but mixing the two may take some care. If both are used, 8-bit
strings that cannot be interpreted as 7-bit ASCII (that use the
8th bit) will cause a UnicodeError to be raised when getvalue()
is called.
isatty(self)
next(self)
read(self, n=-1)
readline(self, length=None)
readlines(self, sizehint=0)
seek(self, pos, mode=0)
tell(self)
truncate(self, size=None)
write(self, s)
writelines(self, list)

 
Functions
       
suckfont(data)
unpack_item(item)

 
Data
        StandardEncoding = ['.notdef', '.notdef', '.notdef', '.notdef', '.notdef', '.notdef', '.notdef', '.notdef', '.notdef', '.notdef', '.notdef', '.notdef', '.notdef', '.notdef', '.notdef', '.notdef', '.notdef', '.notdef', '.notdef', '.notdef', ...]
commentRE = <_sre.SRE_Pattern object at 0x15b2440>
endofthingPat = '[^][(){}<>/%\t\n\x0b\x0c\r ]*'
endofthingRE = <_sre.SRE_Pattern object at 0x15b2320>
hexstringRE = <_sre.SRE_Pattern object at 0x162c6b0>
notdef = '.notdef'
ps_StandardEncoding = [<name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, <name '.notdef'>, ...]
ps_error = 'ps_error'
ps_special = '()<>[]{}%'
ps_tokenerror = 'ps_tokenerror'
skipwhiteRE = <_sre.SRE_Pattern object at 0x15bb020>
stringPat = r'\((([^()]*\[()])|([^()]*\([^()]*\)))*[^()]*\)'
stringRE = <_sre.SRE_Pattern object at 0x14ac020>
whitespace = '\t\n\x0b\x0c\r '