draw in output window

RoboFont Forums Bugs draw in output window

This topic contains 4 replies, has 2 voices, and was last updated by  frederik 6 years, 12 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #5527

    Thom
    Participant

    fun!

    if the observer event is currentGlyphChanged the drawPath draws in output window.
    or am I doing something wrong

    #5530

    frederik
    Keymaster

    You can only draw when there is a drawing context. Observe the events “draw” or “drawBackground” to draw additional info of a glyph in the glyph view.

    Good luck

    #5534

    Thom
    Participant

    Thanks!

    #5715

    Thom
    Participant

    So, it is not possible to draw something in the glyph view on a fontDidSave event?

    something else: this doesn’t work anymore? http://doc.robofont.com/api/scripting-examples/drawing-and-addobserver-example/

    #5716

    frederik
    Keymaster

    Yes that is possible only you have to tell a glyphview to redraw it self

    Use UpdateCurrentGlyphView() ad off course subscribe to the draw notification
    See http://doc.robofont.com/api/mojo/mojo-ui/

    (Will fix the oldstyle notification)

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

You must be logged in to reply to this topic.