How to read Font Info > Use Custom Naming by script

Hello,
not sure if I am searching it in wrong way, but it seems that this info is not in Docs, so:

Is it possible to check Font Info > Use Custom naming option via script?

Thanks

The font object has the following properties:

  • disablesNiceNames
  • disablesAutomaticAlignment
  • keepAlternatesTogether

They correspond to the checkboxes in Font Info > Other settings.

You can use them as follow:

print font.disablesNiceNames()

font.setDisablesNiceNames_(True)

Thank You very much. I am writing my first script for Glyphs, so any help is appreciated.