added browseTTFont() function.

git-svn-id: svn://svn.code.sf.net/p/fonttools/code/trunk@32 4cde692c-a291-49d1-8350-778aa11640f8
This commit is contained in:
Just 1999-12-23 14:44:59 +00:00
parent 3e097c6095
commit 65df20b04f

View File

@ -332,3 +332,20 @@ def qcurveto(pt0, pt1, pt2, done_moveto):
ATM.fillCurveToATM((x1a, y1a), (x1b, y1b), (x2, y2))
return pt2
def browseTTFont():
fss, ok = macfs.StandardGetFile()
if not ok:
return
path = fss.as_pathname()
indices = macUtils.getSFNTResIndices(path)
if indices:
for i in indices:
TableBrowser(path, res_index=i)
else:
TableBrowser(path)
if __name__ == "__main__":
browseTTFont()