Generate?

RoboFont Forums Help / General Generate?

This topic contains 2 replies, has 2 voices, and was last updated by  Thom 7 years, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #5465

    Thom
    Participant

    Hi,

    The following doesn’t do anything. What is wrong?

    f = CurrentFont()
    f.generate(f.path[:-4], 'otf', decompose=False, checkOutlines=False, autohint=True, releaseMode=True, glyphOrder=None, progressBar=None)
    

    Bonus question:
    What is the parameter of the progressBar to see it?

    Thanks!
    thom

    #5468

    frederik
    Keymaster

    does your font has a path? the path attribute with unsaved fonts is None.

    try printing out the message send back from the generate method:

    print font.generate(...)

    the progressBar argument should be an ProgressWindow / Controller similar to a defconAppKit progressWindow

    the required methods are update(text=None) and setTickCount(value)

    #5469

    Thom
    Participant

    Ah thank. It works alright. With print I found that in the features there was something not okay: empty group []

    new question: is there already a super handy script which remove glyphnames -that not appear in the ufo- from the featuresfile?

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.