Is there a simpler way to get, say, xHeight, overshoot other than iterating over master metrics?
Also, the code snippet in the API documentation does not work:
for metric in Font.masters[0].metrics:
if metric.metric.type == GSMetricsTypexHeight and metric.metric.filter is None:
metric.position = 543
metric.overshoot = 17
This gives:
TypeError: 'objc.native_selector' object is not iterable
I had to use .metrics()
instead.
Also, all code snippets in the API documentation seem to have lost their indentation.