I have still not managed to transform the font successfully.
Do I oversee something again? It looks like a bug to me:
========================
f = CurrentFont()
for g in f:
if len(g.contours) > 0:
for c in g.contours:
c.scale((0.5, 0.5))
========================
Traceback:
File “2000UPM.py”, line 13, in
File “lib/fontObjects/robofabWrapper.pyc”, line 1432, in scale
File “/Applications/RoboFont.app/Contents/Resources/lib/python2.7/fontTools/misc/transform.py”, line 148, in scale
File “/Applications/RoboFont.app/Contents/Resources/lib/python2.7/fontTools/misc/transform.py”, line 199, in transform
TypeError: can only concatenate tuple (not “int”) to tuple
========================
I can make it work via metric transformations. But it’s not as elegant :)