fontTools.t1Lib (version 1.0b2) | index /code/fontTools/Lib/fontTools/t1Lib.py |
fontTools.t1Lib.py -- Tools for PostScript Type 1 fonts
Functions for reading and writing raw Type 1 data:
read(path)
reads any Type 1 font file, returns the raw data and a type indicator:
'LWFN', 'PFB' or 'OTHER', depending on the format of the file pointed
to by 'path'.
Raises an error when the file does not contain valid Type 1 data.
write(path, data, kind='OTHER', dohex=0)
writes raw Type 1 data to the file pointed to by 'path'.
'kind' can be one of 'LWFN', 'PFB' or 'OTHER'; it defaults to 'OTHER'.
'dohex' is a flag which determines whether the eexec encrypted
part should be written as hexadecimal or binary, but only if kind
is 'LWFN' or 'PFB'.
Modules | ||||||
|
Classes | ||||||||||||||||
|
Functions | ||
|
Data | ||
DEBUG = 0 EEXECBEGIN = 'currentfile eexec' EEXECBEGINMARKER = '%-- eexec start\r' EEXECEND = '0000000000000000000000000000000000000000000000000000000000000000' EEXECENDMARKER = '%-- eexec end\r' EEXECINTERNALEND = 'currentfile closefile' HEXLINELENGTH = 80 LWFNCHUNKSIZE = 2000 __author__ = 'jvr' __version__ = '1.0b2' haveMacSupport = 1 |
Author | ||
jvr |