Navigation

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

    • A Former User

      SOLVED Vanilla object and drawing in TinyDrawbot
      General Questions • scripting vanilla drawbot canvas • • A Former User  

      5
      0
      Votes
      5
      Posts
      920
      Views

      Guest

      Thanks, I'll try!
    • joanca

      SOLVED Remove hinting in an ufo?
      General Questions • scripting ufo ps hinting • • joanca  

      6
      0
      Votes
      6
      Posts
      1034
      Views

      joanca

      thanks frederik and jens, good enough. cheers!
    • A Former User

      Odd progress bar window behaviour
      General Questions • scripting user interface • • A Former User  

      3
      0
      Votes
      3
      Posts
      579
      Views

      Guest

      It works! Thanks :)
    • A Former User

      Sorting contours
      General Questions • scripting contours • • A Former User  

      5
      0
      Votes
      5
      Posts
      824
      Views

      Guest

      Perfect, it works. Thanks!
    • Guest

      Getting the glyph and its font
      Problems & Bugs • scripting • • Guest  

      5
      0
      Votes
      5
      Posts
      619
      Views

      Guest

      Thank you for fixing this.! I'll use your eventObserver example to get a better understanding of when each event is triggered. Regards, Samuel
    • A Former User

      Storing/Loading settings of an extension
      General Questions • scripting extensions • • A Former User  

      3
      0
      Votes
      3
      Posts
      586
      Views

      Guest

      Ok, I will try! Thanks
    • bahman

      Current glyph window size and position
      General Questions • scripting user interface • • bahman  

      2
      0
      Votes
      2
      Posts
      421
      Views

      frederik

      He I don't fully understand why but here is a script that is changing the size and position of the current window to the previous current window from AppKit import NSApp # get all ordered windows windows = NSApp().orderedWindows() # get the size of the window (x, y), (w, h) = windows[1].frame() # set the size of the window windows[0].setFrame_display_animate_(((x, y), (w, h)), True, False) good luck!
    • A Former User

      SOLVED Subprocess module in Robofont
      General Questions • scripting vfb subprocess • • A Former User  

      3
      0
      Votes
      3
      Posts
      636
      Views

      frederik

      yep, using executeCommand solves your issue when shell is set to True
    • martin

      SwapToLayer('background'), foreground becomes blank
      General Questions • scripting layers • • martin  

      4
      0
      Votes
      4
      Posts
      604
      Views

      frederik

      Hi Martin swap will copy the glyph to the destination layer and clear the current layer flip will copy the glyph to the destination and copy from the destination layer back to the current layer as you already found out, thanks Jo
    • A Former User

      SOLVED Generate interface elements through iteration
      General Questions • scripting vanilla • • A Former User  

      3
      0
      Votes
      3
      Posts
      642
      Views

      Guest

      Oh! This is quite embarrassing. Thanks!
    • nina

      MultilineView with Space Matrix?
      Feature Requests • scripting space center • • nina  

      3
      0
      Votes
      3
      Posts
      649
      Views

      nina

      Cool. Thank you Frederik!
    • jo

      UNSOLVED Join contour with script
      General Questions • scripting contours points • • jo  

      1
      0
      Votes
      1
      Posts
      451
      Views

      jo

      hi I was wondering if there is a way to join two (open) contours with a script. E.g. join last point of contour A with first point of contour B. If I select these points in the glyph-view and click on "Close/Join Open Contours" this works. Is there also a scripting-based way to do that? thanks, jo
    • nina

      MultiLineView padding
      General Questions • scripting • • nina  

      4
      0
      Votes
      4
      Posts
      459
      Views

      frederik

      yeah, you can use the same hack glyphPreview.getNSView()._buffer = 40 glyphPreview.getNSView().refresh() I've added a better and friendlier API on my todo list :)
    • jens

      SOLVED [1.6] Font to Font comparison not working correctly
      Problems & Bugs • scripting • • jens  

      2
      0
      Votes
      2
      Posts
      366
      Views

      frederik

      He Jens This was already posted on the beta list and solved in the developers beta. An update will be released soon...
    • jo

      SetColorForLayer arguments
      Problems & Bugs • scripting layers • • jo  

      2
      0
      Votes
      2
      Posts
      438
      Views

      frederik

      Hi Jo good catch, will be solved in the next update...
    • thom

      G.copy
      General Questions • scripting components • • thom  

      5
      0
      Votes
      5
      Posts
      716
      Views

      thom

      Great, this works! Thanks!
    • thom

      ShowUI
      General Questions • scripting • • thom  

      3
      0
      Votes
      3
      Posts
      398
      Views

      thom

      Great! Thanks for the quick response Frederik.
    • A Former User

      Layer access
      General Questions • scripting layers • • A Former User  

      3
      0
      Votes
      3
      Posts
      547
      Views

      Guest

      Thanks for your reply.
    • jo

      Remove kerning pair
      General Questions • scripting kerning • • jo  

      6
      0
      Votes
      6
      Posts
      886
      Views

      jo

      hello jens, thanks for your help. in fact your example is what "happened" in my case. I did some very quick kerning without groups. Later on I replaced the single letters of the pairs with groups through a script. I also wanted to remove the original pair but the zero value was "overwriting" the group value. so i guess it could work with kerning update etc but the "del" way worked just fine. cheers, jo
    • jack_jennings

      SOLVED StemHist error
      Problems & Bugs • scripting ps hinting • • jack_jennings  

      2
      0
      Votes
      2
      Posts
      493
      Views

      frederik

      oh, oeps, idd typo, it was redirecting to autoHint instead of stemHist… (will be fixed in the next update) stemHist takes a binary path as argument. and has optional arguments: useCurves=bool: Include stems formed by curved line segments; by default, includes only stems formed by straight line segments. blueZones=bool: Return alignment zone report rather than stem report this is a Adobe FDK tool. The mojo module is just a collection of useful internal modules. You can also use this: from lib.tools.compileTools import stemHist print stemHist("binaryPath.otf", useCurves=True, blueZones=False) good luck