Is there any information on how the ‘auto’ sidebearings are supposed to work? How can I use or set them?
I just tried entering ‘auto’ as sidebearings of my softhyphen (which contains one component, the hyphen) and it was rejected. I tried dis- and re-enabling automatic alignment but it did not do the trick.
Ah thank you. Kind of what I am after. But it returns 1 as well for glyphs that have no metrics key (e.g. A which has just numbers in the LSB, RSB and width)
Ah, sure. Oh, but I see, my case: Aacute has no metrics key, but written auto(12) in the LMK. glyph.leftMetricsKey returns None, and layer.leftMetricsKeyIsInSync() returns 1 as well.
Unfortunately the same results come with the A, which has plain values. So I still cannot get the difference (A <—> Aacute, while latter is auto())
Remember that all the names are case-sensitive. To be on the safe side, make the if statement something like if searchstring.lower() in functionname.lower(): .
I was going the super old-shool-way print dir(Glyphs.font.selectedLayers[0]) and then searching the output. This way one cannot find it. But shouldn’t it be possible as well? Cuz basically I call it on an objective-c class NSKVONotifying_GSLayer.
I was not aware, that dir(GSLayer) is possible on its own. Now I am