Layer access

RoboFont Forums Help / General Layer access

This topic contains 2 replies, has 2 voices, and was last updated by  Roberto Arista 6 years ago.

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

    Roberto Arista
    Participant

    Hi!
    I am drawing some contours using Robofont layer access (both via scripting and drawing window).

    eIs it possible to access to this contours via Robofab (for example launching a script from Terminal) in some way?
    I can’t find documentation about layers in the Robofab website.

    Thanks

    #5985

    frederik
    Keymaster

    He Roberto,

    you can find the RoboFont add ons for robofab API docs here: http://doc.robofont.com/api/robofab-extras/

    to get access to your layers data:

    
    # get the current glyph from the current layer
    glyph = CurrentGlyph()
    
    # get a layer
    layerGlyph = glyph.getLayer("background")
    # if the layer doesn't exist it will create one
    

    This API is only available in RoboFont. The UFO3 robofab will be able to handle layer data in NonLab
    Other wise you can install the RoboFont shell script that allows you to execute script in RoboFont
    see the Extension / shell tab in the preferences http://doc.robofont.com/documentation/workspace/preferences/extensions/

    good luck

    #5987

    Roberto Arista
    Participant

    Thanks for your reply.

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

You must be logged in to reply to this topic.