frederik

Forum Replies Created

Viewing 15 posts - 376 through 390 (of 531 total)
  • Author
    Posts

  • frederik
    Keymaster

    thanks, was able to reproduce it, will be fixed in the next update :)


    frederik
    Keymaster

    is the “radical” glyph already defined by a template glyph?

    if so it creates a “radical.copy_1” glyph and pasted the drawings in there (only if you don’t have a selection in the font collection)
    this implicates that the unicode value is changed and “√” in Space Center will find your pasted glyph.

    hope this makes sense

    in reply to: Combine selected points into one point #4165

    frederik
    Keymaster

    yeah, help is great, didn’t know it was available. This will be added in the next version.

    thanks

    ps: a small workaround:

    from defconAppKit.windows.progressWindow import ProgressWindow
    import pydoc
    ## this is actually happening in the built-in 'help'
    pydoc.help(ProgressWindow.update)
    

    frederik
    Keymaster

    I cannot reproduce this issue according your description.

    By “not default” you mean, they don’t have a unicode value, or they aren’t presented as a template glyph?
    Do you have to close the Space Center? or the UFO document?

    Upon closing and reopening they are there but i am sure there is a better solution?

    yeah, this is idd not standard behavior :)

    thanks

    in reply to: isFixedPitch lost #4160

    frederik
    Keymaster

    An issue with ufo2fdk is being fixed. see http://code.typesupply.com/changeset/1154

    This will be embedded in the next version of RoboFont

    thanks

    in reply to: Extension Builder creates malformed icon file #4154

    frederik
    Keymaster

    if you have assets (almost everything which isn’t a python file) store them into a resource folder and connect it in the extension bundle.
    see http://doc.robofont.com/extensions/extension-file-spec/

    to retrieve assets see http://doc.robofont.com/api/mojo/mojo-extensions/

    good luck

    in reply to: Combine selected points into one point #4145

    frederik
    Keymaster

    a progress bar example:

    from defconAppKit.windows.progressWindow import ProgressWindow
    
    # CurrentFontWindow is only available only in RoboFont 1.3
    from mojo.UI import CurrentFontWindow
    
    import time
    
    progress = ProgressWindow("my progress")
    time.sleep(2)
    progress.close()
    
    
    ## attach as sheet to a window
    progress = ProgressWindow("my progress", parentWindow=CurrentFontWindow().window())
    time.sleep(2)
    progress.update("action....")
    time.sleep(2)
    progress.close()
    
    ## with tickcount
    count = 20
    progress = ProgressWindow("my progress", tickCount=count)
    
    for i in range(count):
        time.sleep(.1)
        progress.update("action....%s" %i)
        
    progress.close()
    
    in reply to: Shortcuts for scripts/extensions #4143

    frederik
    Keymaster

    That is correct.

    For hot keys to scripts in an extension it’s up to the developer of the extension to assign hot keys.

    in reply to: Shortcuts for scripts/extensions #4140

    frederik
    Keymaster

    You can assign hot keys to scripts from the scripting folder.

    see http://doc.robofont.com/documentation/workspace/preferences/python/

    in reply to: Group-Spacing #4138

    frederik
    Keymaster

    There is no embedded possibility to do spacing by groups.

    This is an easy example:

    
    font = CurrentFont()
    
    for groupName in font.groups.keys():
        
        # maybe test this before
        # in this example the group name is "left_O"
        leftRight, keyGlyph = groupName.split("_")
        
        # check if the key glyph is in the font
        if keyGlyph not in font:
            continue
        keyGlyph = font[keyGlyph]
        
        # get all the glyphs from the group
        glyphs = font.groups[groupName]
        
        # loop over all the glyphs
        for destGlyph in glyphs:
            # check if the destination glyph is in the font
            if destGlyph not in font:
                continue
            # get the destination glyph 
            destGlyph = font[destGlyph]
            
            # based on the left or right copy the margins from the key glyph
            if leftRight == "left":
                destGlyph.leftMargin = keyGlyph.leftMargin
            
            elif leftRight == "right":
                destGlyph.rightMargin = keyGlyph.rightMargin
    

    if you have groups like:

    in reply to: Combine selected points into one point #4120

    frederik
    Keymaster

    Alternately, RoboFont could add the root folder of the extension to the python path when it invokes a script from that extension.
    I’m not sure how you’re invoking extension scripts in Robofont…

    mm, I think this will be a mess after a while.
    It’s already super easy to add a path to sys.path :)

    in reply to: Combine selected points into one point #4117

    frederik
    Keymaster

    no, but you will have access to other python scripts and modules if they are on the same level or deeper
    (this isn’t a limitation of RoboFont, this is default python behavior if the module isn’t added to the site packages or sys.path)

    scripting Root
    - test.py                       # test can import testFolder and all sub py files  
    - testFolder                 
    -- __init__.py
    -- otherFile.py                 # otherFile can not import test.py or otherTestFolder
    - otherTestFolder
    -- __init__.py
    

    hope this makes sense

    in reply to: Combine selected points into one point #4114

    frederik
    Keymaster

    He

    cool!

    Move your scripts that have callbacks from the menu to the root folder.
    From there you can import everything inside a RoboFont extension.

    in reply to: Margins from Beam #4113

    frederik
    Keymaster

    That will be possible in the next update.

    The syntax will be glyph.getRayRightMargin(position)
    (where position is the y value where the glyph is been lasered)

    Also added glyph.angledLeftMargin and glyph.angledRightMargin

    (the update is scheduled soon)

    in reply to: Add Python Paths Setting to Preferences #4111

    frederik
    Keymaster

    He

    you can add a start up script that will add some root folders to the sys.path

    import sys
    sys.path.append("my/path/to/my/module")
    

    this module will then be available inside RoboFont

    to update the a module without restarting:

    import myModule
    reload(myModule)
    

    good luck

Viewing 15 posts - 376 through 390 (of 531 total)