Can Objective-C's GSLayer properties be used in Python script?

Objective-C’s GSLayer has properties of vertWidth and vertOrigin. But Python’s GSLayer does not have them. These are required for the proportional vertical width of CJK font. Is it possible to use these in Python script?

Of course:

V = Layer.vertWidth()
Layer.setVertWidth_(V)

Thank you very much! Incidentally request.

  • vertOrigin can not be set in the GUI.
  • It can be set with setVertOrigin_, but the display is incorrect.

Changing to proportional vertical width using vertOrigin and vertWidth in vertical text layout is impossible with Glyphs. If Glyphs responds to vertOrigin in the future, experienced users will be very pleased.

I think that the calculation is incorrect when exporting font file.

  • vmtx.vertOrigin = Ascender - Layer.vertOrigin

This is correct.

  • vmtx.vertOrigin = Ascender + Layer.vertOrigin

As far as I can see the value in the final font is correct. The vmdx table stores the vertHight and TSB, not actually the vertOrigin as written to the feature file.

The Layer.vertOrign is calculated as an offset from the ascender. So the vmtx.vertOrigin = Ascender - Layer.vertOrigin is correct.

It was fixed at 1241. Thank you.