Navigation

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

    • thom

      Executing RoboFont scripts with an other RoboFont script
      General Questions • scripting • • thom  

      2
      0
      Votes
      2
      Posts
      317
      Views

      frederik

      He Thom use in your "external" scripts from robofab.world import CurrentFont or from mojo.roboFont import CurrentFont Those global variables (CurrentFont, CurrentGlyph, …) are injected in the main script automatically. good luck!
    • fortress

      SOLVED Multiple Unicode
      General Questions • scripting unicode • • fortress  

      3
      0
      Votes
      3
      Posts
      652
      Views

      fortress

      Perfect! Thank you, that's exactly what I was looking for.
    • thom

      Guide.y accepts no new value
      Problems & Bugs • scripting guidelines • • thom  

      4
      0
      Votes
      4
      Posts
      659
      Views

      thom

      follow up: Also if you scale the blues in the font by a factor the value become <real> in the fontinfo instead of <integer>. Now you can not edit them in the fontinfo window anymore... So be sure to int(here_a_blue_value)
    • thom

      SetDefault & UpdateCurrentGlyphView
      Problems & Bugs • scripting • • thom  

      3
      0
      Votes
      3
      Posts
      408
      Views

      thom

      That does the trick like it should be ;) Thanks again Frederik!
    • jo

      Tabs in scripting window
      Feature Requests • scripting user interface • • jo  

      5
      0
      Votes
      5
      Posts
      686
      Views

      frederik

      that would be nice :) as it is now you can open your script browser (see button on the bottom left of the scripting window) and switch from script to script...
    • qkeave

      Checking for component objects.
      General Questions • scripting components • • qkeave  

      4
      0
      Votes
      4
      Posts
      625
      Views

      qkeave

      Thank u Jens!
    • bahman

      SOLVED Converting ttf splines to otf splines
      General Questions • scripting contours truetype • • bahman  

      3
      0
      Votes
      3
      Posts
      653
      Views

      bahman

      Thanks, that did it! :)
    • bahman

      Retain glyph order after renaming glyphs
      General Questions • scripting glyph names glyph order • • bahman  

      7
      0
      Votes
      7
      Posts
      952
      Views

      frederik

      You can drag and drop a glyph selection to change the order. The drag starts after 0.4 of a sec, to prevent accidentally reordering of glyphs. You can also set a glyph order with a script: font = CurrentFont() # this is a list of glyph names font.glyphOrder = ["a", "agrave", "b", "c"] if you changed the glyph order (manually or script) the sorting is disabled. There is no glyph index in the UFO data, but each glyph has an glyph.index returning the index related to the glyph order. Please take note that the glyph order in the final font can be different if you don't added .notdef or enabled "Use MacRoman as the start of the glyph order" while compiling. Adding or removing glyphs will always alter the glyph order. It is depending on your settings where new glyphs would be added (at the end or somewhere in a sorted position) Good luck
    • qkeave

      Add an anchor
      General Questions • scripting guidelines anchors • • qkeave  

      14
      0
      Votes
      14
      Posts
      1635
      Views

      qkeave

      Thanks!
    • jens

      Round kerning bug
      Problems & Bugs • scripting kerning • • jens  

      2
      0
      Votes
      2
      Posts
      413
      Views

      frederik

      oh thanks, will be fixed in the next version
    • joanca

      FontDidClose event
      Problems & Bugs • scripting observers • • joanca  

      4
      0
      Votes
      4
      Posts
      680
      Views

      joanca

      Yes, that will work. Thanks!
    • david_demainlalune

      How to access/create a dictionary mapping unicode values to glyphnames?
      General Questions • scripting unicode glyph names • • david_demainlalune  

      3
      0
      Votes
      3
      Posts
      682
      Views

      david_demainlalune

      many thanks joanca : ) this is spot on what I needed best david
    • joanca

      GlyphColor and backgroundColor in MultiLineView or GlyphLineView?
      General Questions • scripting space center layers • • joanca  

      4
      0
      Votes
      4
      Posts
      775
      Views

      frederik

      Hi I see, still with spaceCenterDraw it should be possible to get a long way :) but did you check https://github.com/typemytype/RoboFontExtensions/tree/master/LayerPreview ? maybe this is already doing what you are looking for.... good luck
    • jens

      Find transformed components
      General Questions • scripting components • • jens  

      3
      0
      Votes
      3
      Posts
      479
      Views

      frederik

      A robofab component will have a transformation attribute in the next version.
    • philipp

      SmartSet organizer - feedback?
      General Questions • scripting smart sets • • philipp  

      3
      0
      Votes
      3
      Posts
      539
      Views

      philipp

      Hi Jack, thanks for your detailed answer! I will try to integrate your recommendation and report back next week. :-)
    • philipp

      SOLVED Create checkboxes with loop?
      General Questions • scripting vanilla • • philipp  

      6
      0
      Votes
      6
      Posts
      930
      Views

      frederik

      sorry, its indeed CheckBox
    • thom

      Update TemplateGlyphs
      General Questions • scripting unicode template glyphs glyph order • • thom  

      4
      0
      Votes
      4
      Posts
      746
      Views

      thom

      No really, it remove also the existing templateGlyphs. But: glyphOrder = [] for glyph in f.lib['public.glyphOrder']: glyphOrder.append(glyph) for glyph in myListOfGlyphs: glyphOrder.append(glyph) f.glyphOrder = glyphOrder Thanks Fredrik!
    • b-o

      Calling data from another layer
      General Questions • scripting layers • • b-o  

      4
      0
      Votes
      4
      Posts
      579
      Views

      b-o

      Thanks, that's what I was looking for!
    • jo

      Rotate segment
      General Questions • scripting • • jo  

      3
      0
      Votes
      3
      Posts
      297
      Views

      jo

      ok, thanks for the super fast reply.
    • A Former User

      Disk space issue (Version 1.4 (built 1301142150) – MacOsX 10.8.3)
      Problems & Bugs • scripting memory • • A Former User  

      4
      0
      Votes
      4
      Posts
      594
      Views

      A Former User

      Thanks for you reply. I will try without showing the UI.