UNSOLVED Possible bug in lib.fontObjects.fontPartsWrappers UIdocument()? Works in v3.2, but not latest v3.3 beta.

  • Re: What computer performance metrics are most relevant to RF performance?


    SimpleFontWindow.py script was working for me really well for awhile, but has recently stopped working.

    When I try to run it now, I get the following:

    Traceback (most recent call last):
      File "open-fonts-in-SimpleFontWindow.py", line 96, in <module>
      File "open-fonts-in-SimpleFontWindow.py", line 47, in __init__
    AttributeError: 'NoneType' object has no attribute 'addWindowController_'

    If I place help(self._font) just above line 47, I get the doc string for lib.fontObjects.fontPartsWrappers. The first method in there is UIdocument(self). However, if I instead do help(self._font.UIdocument()), I instead get the following:

    Help on NoneType object:
    class NoneType(object)
     |  Methods defined here:
     |  __bool__(self, /)
     |      self != 0
     |  __repr__(self, /)
     |      Return repr(self).
     |  ----------------------------------------------------------------------
     |  Static methods defined here:
     |  __new__(*args, **kwargs) from builtins.type
     |      Create and return a new object.  See help(type) for accurate signature.
    Traceback (most recent call last):
      File "open-fonts-in-SimpleFontWindow.py", line 99, in <module>
      File "open-fonts-in-SimpleFontWindow.py", line 49, in __init__
    AttributeError: 'NoneType' object has no attribute 'addWindowController_'

    Here's my specific code, if it's helpful: https://github.com/thundernixon/robofont--big-fonts/blob/f936ca7d4eb49113ffa5f014f253e5f6d4db7189/open-fonts-in-SimpleFontWindow.py

    I'm running:

    • RoboFont Version 3.3b (build 1910091627)
    • macOS Mojave, 10.14.5 (18F203)

  • admin

    This should be solved in the upcoming release, and already works fine in the cutting-edge-nightly-build version...