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:
parent
3e097c6095
commit
65df20b04f
@ -332,3 +332,20 @@ def qcurveto(pt0, pt1, pt2, done_moveto):
|
|||||||
ATM.fillCurveToATM((x1a, y1a), (x1b, y1b), (x2, y2))
|
ATM.fillCurveToATM((x1a, y1a), (x1b, y1b), (x2, y2))
|
||||||
return pt2
|
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()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user