Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Solved
    • Unsolved
    1. Home
    2. Tags
    3. scripting
    Log in to post

    • charlesmchen

      Add Python Paths Setting to Preferences
      Feature Requests • scripting preferences • • charlesmchen  

      2
      0
      Votes
      2
      Posts
      485
      Views

      frederik

      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 module without restarting: import myModule reload(myModule) good luck
    • joanca

      Contour.index raises AttributeError
      General Questions • scripting contours • • joanca  

      3
      0
      Votes
      3
      Posts
      490
      Views

      joanca

      Well, in this case I don't need it (thought shouldn't it work?) I didn't find glyph.removeCountour() in robofab's documentation :[ Thanks!
    • joanca

      RoboFontError: Glyph not in font
      General Questions • scripting • • joanca  

      2
      0
      Votes
      2
      Posts
      254
      Views

      frederik

      He This will also not work in robofab :) You can check if a glyphName is in the font: f = CurrentFont() gname = "test" if gname in f: print gname else: # f[gname] not in f print "%s not in %s" % (gname, f) good luck
    • franz

      SOLVED Disable single option of vanilla RadioGroup?
      General Questions • scripting vanilla • • franz  

      3
      0
      Votes
      3
      Posts
      558
      Views

      franz

      Yes, this is exactly what I need right now! Thanks so much Frederik! Franz
    • franz

      Undo for multiple glyphs/list?
      General Questions • scripting undo • • franz  

      8
      0
      Votes
      8
      Posts
      993
      Views

      franz

      Ok, convinced :-) It's a floating window now. Just pushed 1.1 to github: http://github.com/franzheidl/SidebearingsEQ
    • mathieu-christe

      Space Center: copying the input string along with the control glyphs?
      General Questions • scripting space center • • mathieu-christe  

      3
      0
      Votes
      3
      Posts
      608
      Views

      mathieu-christe

      Thanks a lot, it does the trick. Note to users: ## print them nicely means with a wordspace between each glyph. For proofing, I need to get rid of the space, so I simply removed it between the quotes: print " ".join(allGlyphs) → print "".join(allGlyphs)
    • mbutterick

      Observer callback format
      General Questions • scripting observers • • mbutterick  

      3
      0
      Votes
      3
      Posts
      692
      Views

      mbutterick

      Why is info a dict instead of an instance of a reall class defined in mojo.events? I ask about source code because __doc__ seems to be empty for all the mojo.* modules and classes, and the API documentation is missing a lot. I'm looking for a way to supplement my understanding of the API without asking you a hundred questions.
    • mbutterick

      Mojo.robofont vs. robofab.world
      General Questions • scripting • • mbutterick  

      4
      0
      Votes
      4
      Posts
      818
      Views

      frederik

      Yes there will only work in RoboFont, but some have some similarities with the special FL robofab methods. It doesnt matter if you imported it from mojo.roboFont or robofab.world (inside RoboFont) all robofab object will have these additions.
    • ben

      Advice on a personal project
      General Questions • scripting interpolation • • ben  

      4
      0
      Votes
      4
      Posts
      762
      Views

      frederik

      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!
    • mbutterick

      Equivalent of robofab.RFont.update()
      General Questions • scripting • • mbutterick  

      21
      0
      Votes
      21
      Posts
      2552
      Views

      tal

      UFOCentral also relies on this technique, no? No. That's a symptom of FL's interface problem, not a feature of the script.
    • mbutterick

      UI bug when using robofab.insertGlyph
      Problems & Bugs • scripting • • mbutterick  

      2
      0
      Votes
      2
      Posts
      319
      Views

      frederik

      solved in the next version :) thanks for reporting
    • djr

      RemoveOverlap() error on glyph copy
      Problems & Bugs • scripting • • djr  

      3
      0
      Votes
      3
      Posts
      389
      Views

      djr

      thanks frederik! that workaround will certainly do for now...
    • bruno

      Trouble scaling components in Glyphs
      Problems & Bugs • scripting components • • bruno  

      8
      0
      Votes
      8
      Posts
      895
      Views

      bruno

      The object-browser is great! Thanks.
    • djr

      Modify glyph selection with script
      Problems & Bugs • scripting • • djr  

      5
      0
      Votes
      5
      Posts
      704
      Views

      djr

      in case it is helpful: it seems like the workaround you provided works with glyphs that contain outlines, but not with glyphs that only contain components (for example accents in my font) f = CurrentFont() f['aacute'].selected = True f['a'].selected = True the code above, run when all glyphs are shown, will select a but not aacute.
    • jbl

      AskString
      Problems & Bugs • scripting • • jbl  

      5
      0
      Votes
      5
      Posts
      877
      Views

      jbl

      Thank you!
    • cj

      Interpolate kerning not working
      Problems & Bugs • scripting kerning • • cj  

      3
      0
      Votes
      3
      Posts
      534
      Views

      frederik

      Thanks for reporting, will be solved in the next release (1.3)
    • joanca

      Scripting
      Feature Requests • scripting user interaction • • joanca  

      2
      0
      Votes
      2
      Posts
      297
      Views

      frederik

      thanks, great tips for code style guidelines see http://www.python.org/dev/peps/pep-0008/
    • joanca

      F['a'] = f['A'] not working
      Problems & Bugs • scripting • • joanca  

      2
      0
      Votes
      2
      Posts
      396
      Views

      frederik

      ah typo, good catch
    • joanca

      Anchor.move((x,y)) as attribute and not method
      Problems & Bugs • scripting • • joanca  

      3
      0
      Votes
      3
      Posts
      368
      Views

      bruno

      I think this has been fixed in the update now, works here :)
    • jbl

      Glyph mask and mark data not imported from FLS+UFOCentral-generated UFOs
      Feature Requests • scripting layers ufo colors vfb • • jbl  

      10
      0
      Votes
      10
      Posts
      1250
      Views

      mathieu-christe

      Damn, without switching on Display Anchors, it's hard to see them ;-) I think I'm set to switch and work mostly in RoboFont, thank you for your help Bruno.