Navigation

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

    General Questions

    • bahman

      SOLVED Glyph editor display toggles API
      scripting user interface • • bahman  

      2
      0
      Votes
      2
      Posts
      490
      Views

      frederik

      he Bahman you can use: from mojo.UI import setGlyphViewDisplaySettings, getGlyphViewDisplaySettings settings = getGlyphViewDisplaySettings() print settings # change something, and set it back # setGlyphViewDisplaySettings(settings) good luck
    • A Former User

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

      5
      0
      Votes
      5
      Posts
      920
      Views

      A Former User

      Thanks, I'll try!
    • Guest

      Certain Kerning groups not exporting
      kerning • • Guest  

      2
      0
      Votes
      2
      Posts
      468
      Views

      frederik

      Hi Andrew you added those kerning values inside RoboFont, with the Kern Center? You created the groups? I cannot reproduce this issue, could you send me a erroneous ufo file?
    • A Former User

      SOLVED Copying glyphs from a ufo (generated with vfb2ufo) to another ufo (empty)
      ufo vfb • • A Former User  

      2
      0
      Votes
      2
      Posts
      543
      Views

      frederik

      This is solved in the current beta.... I could send you a beta version to test it out, if you wish please contact me by mail thanks
    • A Former User

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

      3
      0
      Votes
      3
      Posts
      579
      Views

      A Former User

      It works! Thanks :)
    • A Former User

      Sorting contours
      scripting contours • • A Former User  

      5
      0
      Votes
      5
      Posts
      824
      Views

      A Former User

      Perfect, it works. Thanks!
    • A Former User

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

      3
      0
      Votes
      3
      Posts
      586
      Views

      A Former User

      Ok, I will try! Thanks
    • A Former User

      Export glyphNames – glyph.lib['com.userName.exportName']
      font generation glyph names • • A Former User  

      4
      0
      Votes
      4
      Posts
      730
      Views

      A Former User

      Hi Frederik, good to know! When is this update planned for?
    • bahman

      Current glyph window size and position
      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!
    • niels

      FAQ #5: Can I open .vfb files?
      vfb • • niels  

      3
      0
      Votes
      3
      Posts
      550
      Views

      frederik

      it should be living in /usr/local/bin/vfb2ufo it should also listen to which vfb2ufo in terminal, that is how RoboFont looks for it. And you probably have to restart RoboFont as the hasVFB2UFO flag is being set during start up good luck
    • jo

      Drawbot saveImage as gif
      drawbot • • jo  

      3
      0
      Votes
      3
      Posts
      518
      Views

      jo

      pdf works with the example below. in drawbot directly it saves as .gif. for i in range(10): newPage(300, 200) fill(random(), random(), random()) rect(0, 0, width(), height()) saveImage(["~/Desktop/test_gif.gif"]) no traceback. it just never shows up on the desktop.
    • A Former User

      SOLVED Subprocess module in Robofont
      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
      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
      scripting vanilla • • A Former User  

      3
      0
      Votes
      3
      Posts
      642
      Views

      A Former User

      Oh! This is quite embarrassing. Thanks!
    • jo

      Show kerning values in Kern center
      space center kerning • • jo  

      5
      0
      Votes
      5
      Posts
      737
      Views

      jo

      jup, makes perfect sense, thanks!
    • jo

      UNSOLVED Join contour with script
      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
    • A Former User

      Space matrix values body size
      user interface space center mojo • • A Former User  

      5
      0
      Votes
      5
      Posts
      819
      Views

      A Former User

      Thanks!
    • nina

      MultiLineView padding
      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 :)
    • nina

      This topic is deleted!
      • nina  

      0
      0
      Votes
      0
      Posts
      1
      Views

      No one has replied

    • nina

      This topic is deleted!
      • nina  

      0
      0
      Votes
      0
      Posts
      1
      Views

      No one has replied