textTools

fontTools.misc.textTools.py – miscelaneous routines.

fontTools.misc.textTools.safeEval(data, eval=<built-in function eval>)

A (kindof) safe replacement for eval.

fontTools.misc.textTools.readHex(content)

Convert a list of hex strings to binary data.

fontTools.misc.textTools.deHexStr(hexdata)

Convert a hex string to binary data.

fontTools.misc.textTools.hexStr(data)

Convert binary data to a hex string.

fontTools.misc.textTools.num2binary(l, bits=32)
fontTools.misc.textTools.binary2num(bin)
fontTools.misc.textTools.caselessSort(alist)

Return a sorted copy of a list. If there are only strings in the list, it will not consider case.