When I set the MetricsKey using Layer or Glyph, the data can’t be updated in real-time. Sometimes, a visual issue occurs, and I have to click the refresh button for it to take effect. Other times, the UI doesn’t update at all, and I need to save the file, reopen it, and then click that refresh button for it to work. Is there something wrong with my setup?
Sometimes, the GSSteppingTextField I use contains a string instead of a numerical value, such as a Layer.leftMetricsKey. In this case, if I press the up or down arrow keys on the keyboard, it will change to -1 and then increment or decrement. I want the up and down arrow keys to be ineffective in this situation. How should I set this up?
There is only one syncMetrics method. The vertical metrics/metrics keys are sightly less tested so there might be bugs. Can you send me a test file and explain what to do to trigger this and what should happen?
After executing [Layer setVertOriginMetricsKey:@“value”]; and then running [Layer syncMetrics];, the settings cannot be applied properly. For instance, when using [Layer setVertOriginMetricsKey:@“C”]; for the Layer, the vertOriginMetrics in the Glyphs file will be written as “C”, but the vertOrigin value (it is presumed that “verOrigin” here is a typo for “vertOrigin”) fails to be calculated, and vertOrigin in the file remains undefined. This is different from other parameters such as vertWidthMetrics—after the corresponding operations are performed for vertWidthMetrics, the vertWidth value will be calculated based on the written MetricsKey. By contrast, manually entering VertOriginMetricsKey in the InfoView of the software allows the settings to be applied successfully.
See under two files glyph: B, codeset is use [Layer setVertOriginMetricsKey:@“C”]; [Layer syncMetrics]; infoViewSet is input text in infoview’
It issues that the vertOriginMetricsKey was added with the other keys but is never used for anything. Probably because I didn’t have an example of how that would be useful.
Ha,Actually, I don’t know exactly what it’s used for. A friend of mine needs to implement these MetricsKeys, so I tested all the interfaces with these MetricsKeys. During the test, I found that only this one(vertOriginMetricsKey) doesn’t have sync method, so I thought it was a bug. If it’s not, please ignore this.thanks for your reply!