frederik

Forum Replies Created

Viewing 15 posts - 451 through 465 (of 531 total)
  • Author
    Posts
  • in reply to: Can't test install or generate #3638

    frederik
    Keymaster

    is autohint enabled for test intall? (see preferences)

    if so see topic: blue values required when generating otf with autohinting

    in reply to: Advice on a personal project #3637

    frederik
    Keymaster

    He Ben

    If you have a python package installed in the current python on your local machine, that package will be accessible in RoboFont.

    RoboFont is adding the site-packages of the current python to the sys.path.

    So if you have a python package that can read from a serial port it must be possible to access that package in RoboFont

    good luck!

    in reply to: Can't test install or generate #3636

    frederik
    Keymaster

    He Travis

    this is a know issue, once generating fails the print outs send to the output window gets lost….

    this will be solved in the next version.

    the best workaround is to use a local install of FDK

    in reply to: Advice on a personal project #3624

    frederik
    Keymaster

    He Ben

    You can use glyph math:

    ## you will need to have two masters off course
    ## add the two master glyphs and divide them by 2 
    ## equal and much safer to multiple by a ½
    resultGlyph = (firstGlyph + secondGlyph) * .5
    

    and display the resultGlyph in a vanilla window with a glyphPreview see http://doc.robofont.com/api/mojo/mojo-glyphpreview/

    Off course you can do all of this outside RoboFont.

    off topic: if you have problems installing RoboFab in FontLab I would redirect you to the RoboFab group, there is already a topic on installing RoboFab in FontLab.

    in reply to: equivalent of robofab.RFont.update() #3621

    frederik
    Keymaster

    a quick tip if you a really, really want to debug in FL:

    redirect the stdout and stderr to a file instead if printing it into FLs output window, cause can FL *can* quit unexpectedly.

    import sys
    
    f = open(u"/Users/frederik/Desktop/FLlog.txt", "w")
    
    savedstdout = sys.stdout
    savedstderr = sys.stderr
    
    sys.stdout = f
    sys.stderr = f
    
    print "hello world"
    
    f.close()
    
    sys.stdout = savedstdout 
    sys.stderr = savedstderr 

    This will also work in RoboFont off course!! your scripts will still be exchangeable.

    another tip:
    visual debugging is in most cases a bad idea…. or you should make a .png, .pdf that you can review afterwards. Use DrawBot or the tinyDrawBot extension (will released when 1.2 is out)

    in reply to: equivalent of robofab.RFont.update() #3616

    frederik
    Keymaster

    thanks for proving it yourself! ;)

    as stated in the documentation .update() only tells the UI that your object has changed.

    see http://doc.robofont.com/api/robofab-extras/

    off topic:
    Ive just edited your post and added <pre>bla bla bla</pre> for none-editors and none-admins

    in reply to: equivalent of robofab.RFont.update() #3608

    frederik
    Keymaster

    works!
    but it will never make it into RF, sorry :)

    import time
    
    def update(font):
        document = font.document()
        for windowController in document.windowControllers():
            window = windowController.window()
            contentView = window.contentView()
            contentView.displayIfNeeded()
            
    
    f = CurrentFont()
    
    g = f["A"]
    
    s = time.time()
    
    for angle in range(0, 360, 15):
        g.rotate(angle)
        update(f)
    
    print time.time() - s
    
    
    s = time.time()
    for angle in range(0, 360, 15):
        g.rotate(angle)
        f.update()
    
    print time.time() - s

    (with a font window open, glyph window open and Space Center open)

    For such a simple task it takes one 1 sec more to update.

    >>> 1.04617500305
    >>> 0.0473890304565

    So this is not a good plan unless you realllllyy like coffee or having days with 25 hours or when the sun is turning half speed….

    if this is the case you can install a script during startup that add an observer to a fontChanged notification and updates all the possible windows and views.

    in reply to: equivalent of robofab.RFont.update() #3601

    frederik
    Keymaster

    mmm, when there are several requests to update a view close after each other, cocoa will ignore previous request and refresh / update the view only once.

    but you can force the view to update / refresh:

    import robofab.world
    
    f = robofab.world.CurrentFont()
    g = f["A"]
    
    collectionView = f.document().getGlyphCollection()
    view = collectionView.getGlyphCellView() ## get the glyph cell view
    
    for n in range(0,54):
        g.rotate(10)
        g.update()
        view.display() ## force the view to redisplay 
    

    hope you like the animation :)

    in reply to: UI bug when using robofab.insertGlyph #3598

    frederik
    Keymaster

    solved in the next version :)

    thanks for reporting

    in reply to: how to make revert go crazy #3596

    frederik
    Keymaster

    a know issue :)

    Im rather thinking of removing “revert” then fixing this cause it really hard to update/revert added or removed glyphs….
    and this can be handled by closing and not saving and reopening the document.

    in reply to: equivalent of robofab.RFont.update() #3593

    frederik
    Keymaster

    there is a myFont.update() :)

    that is posting a font is changed notification to all the subscribed objects

    see http://doc.robofont.com/api/robofab-extras/

    (just seeing that the glyph.update() is not listed in the docs, will add this as well)

    in reply to: output window colors #3585

    frederik
    Keymaster

    no, not possible, yet :)

    Ive just added new color prefs:
    http://cl.ly/D5FH

    will be in the next version

    in reply to: hidden metrics are draggable #3581

    frederik
    Keymaster

    true,
    but you first have to click to be able to drag some metrics and when a glyph is clicked a rectangle is been drawn the size of the width

    in reply to: Bug on deleting contours #3578

    frederik
    Keymaster

    thanks for reporting
    this should be solved in the next version

    in reply to: Bug on deleting contours #3533

    frederik
    Keymaster

    Do you remember you copied the contour in RoboFont first? There was a bug in copy paste (you see the starting point jumping) during copying contours. This should be solved in the next version (1.2)

Viewing 15 posts - 451 through 465 (of 531 total)