Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Solved
    • Unsolved
    • Search
    1. Home
    2. Recent
    Log in to post
    • All categories
    • Announcements
    • General Discussion
    • Tutorials
    • Code snippets
    • Feature Requests
    • Bugs
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • frederik

      Forum will close
      Announcements • • frederik  

      1
      0
      Votes
      1
      Posts
      28
      Views

      No one has replied

    • franciscotorres

      Help with code & combining idea
      Code snippets • • franciscotorres  

      8
      0
      Votes
      8
      Posts
      22
      Views

      jo

      @frederik ah, that is super helpful! How did I miss this great feature? Thanks again
    • Hugo Jourdan

      Drawbot and PIL
      General Discussion • • Hugo Jourdan  

      2
      0
      Votes
      2
      Posts
      11
      Views

      frederik

      yes you can! in the DrawBot code base test we use: rect(10, 10, 100, 100) pilObject = saveImage("PIL") you need to have PIL installed yourself (the drawBot forum is almost closed, I keep it as read only, to much spam, sorry, move to drawBot channel in the RoboFont discord)
    • habakuk

      Even-Odd Fill Rule
      General Discussion • • habakuk  

      4
      0
      Votes
      4
      Posts
      20
      Views

      monomonnik

      You are correct, I should have looked better. I don’t know if there exist these kind of filters for DrawBot (I assume you mean something like Illustrator’s Pathfinder tool). I did some reading on the underlying NSBezierPath, which has an even-odd winding rule, but I'm not smart enough to figure out if that's useable, let alone how.
    • habakuk

      extracting anchor and control points in a variable font
      General Discussion • • habakuk  

      5
      0
      Votes
      5
      Posts
      17
      Views

      monomonnik

      Nice! Thanks for sharing the result.
    • MauriceMeilleur

      Defining lineHeight and first baseline: status?
      Bugs • • MauriceMeilleur  

      8
      0
      Votes
      8
      Posts
      64
      Views

      MauriceMeilleur

      In case anyone's following this thread: over on RoboFont's Discord, thanks to Wim asking we determined that the issue had mainly to do with a bug in a pre-release version of DB I was using; using v3.130 cleared things up.
    • jansindl3r

      conditional control UI
      General Discussion • • jansindl3r  

      5
      0
      Votes
      5
      Posts
      30
      Views

      jansindl3r

      on the end I did my own UI and it worked fantastic, thanks for the great work!
    • jansindl3r

      Copy Page Data
      General Discussion • • jansindl3r  

      2
      0
      Votes
      2
      Posts
      7
      Views

      monomonnik

      You could create an imageObject of the background, but I believe you get pixels instead of outlines. Maybe you can create the whole background in one BezierPath? I’m not sure, but it seems possible to append multiple paths to one BezierPath.
    • MauriceMeilleur

      Can I use use areaAverage() to analyze an actual image?
      General Discussion • • MauriceMeilleur  

      5
      0
      Votes
      5
      Posts
      26
      Views

      monomonnik

      The thing that tripped me up initially was ‘Returns a single-pixel image…’. I was (mis)reading that and assumed that ‘returns’ meant ‘returns a new image’ instead of altering the imageObject. I’m not sure if the documentation is a little confusing, or that the behaviour of areaAverage is unexpected.
    • micahmicah

      How to draw a line connecting all off curve points to on curve points
      Tutorials • • micahmicah  

      5
      0
      Votes
      5
      Posts
      19
      Views

      micahmicah

      Thanks so much! That worked. It does seem like for some drawings it helps if I set a different starting point for the contour but this is perfect for my needs. Thanks again, I really appreciate it.
    • Christine

      mp4 with transparent background?
      Feature Requests • • Christine  

      2
      0
      Votes
      2
      Posts
      14
      Views

      frederik

      mmm see https://github.com/typemytype/drawbot/issues/391 open an issue to discus it further thanks
    • Hugo Jourdan

      Auto-Resize FormattedString
      General Discussion • • Hugo Jourdan  

      3
      0
      Votes
      3
      Posts
      15
      Views

      Hugo Jourdan

      I hadn't thought about this solution! Thanks, @frederik! newPage("A4Landscape") box_w, box_h = width()-100, height()-100 box_x, box_y = 50, 50 txt = FormattedString() txt.fontSize(90) txt.align("center") txt.append("LOOOOOOOOOOOOOOONG STRING\n"*30) txt_w = textSize(txt)[0] txt_h = textSize(txt)[1] width_ratio = box_w/txt_w height_ratio = box_h/txt_h sf = min(width_ratio , height_ratio, 1) scale(sf) textBox(txt, (box_x/sf, box_y/sf, box_w/sf, box_h/sf))
    • rohernandezz

      SOLVED Drawbot Preferences
      General Discussion • • rohernandezz  

      5
      0
      Votes
      5
      Posts
      38
      Views

      frederik

      you can not copy that file while the app is open, that pref file is always written when the app closes and will not sync when you adjust it
    • chrisjansky

      Run drawbot.app as viewer only
      General Discussion • • chrisjansky  

      2
      0
      Votes
      2
      Posts
      14
      Views

      frederik

      DrawBot has not such a feature... however you can install DrawBot as a module and use it externally building the pdf and previewing it elsewhere let use know if you find a solution!
    • jo

      trim box in pdfs
      Feature Requests • • jo  

      4
      0
      Votes
      4
      Posts
      16
      Views

      frederik

      tried it a long time ago... didnt got it to work for some reason, so support for trim and bleed is set on hold: https://github.com/typemytype/drawbot/pull/304 if you got any idea to get it to work with quartz pdf context, let me know
    • eduairet

      SOLVED QRCodeGenerator(size, message)
      General Discussion • image object • • eduairet  

      10
      0
      Votes
      10
      Posts
      49
      Views

      frederik

      hehe, totally forgot about that one... but I prefer the solution with pyqrcode as it provides a list 0/1
    • MauriceMeilleur

      saveImage() .mp4 options: Looping?
      Feature Requests • • MauriceMeilleur  

      1
      0
      Votes
      1
      Posts
      7
      Views

      No one has replied

    • jo

      when to apply paragraphBottomSpacing
      Feature Requests • • jo  

      3
      0
      Votes
      3
      Posts
      11
      Views

      jo

      oké I had some small hope but thanks for testing and clarifying! not very elegant but kind of working: txt = 'Some Text\nwith new lines\rIs a return\na new line\ror a new paragraph?' paras = [[l + '\n' for l in p.split('\n')] for p in txt.split('\r')] newPage(150, 150) fstr = FormattedString() for para in paras: for l in para: extra_space = 5 if l == para[-1] else 0 fstr.append(l, paragraphBottomSpacing = extra_space) text(fstr, (20, 110))
    • Hugo Jourdan

      Snippet : drawOnCurvePoints
      Code snippets • • Hugo Jourdan  

      1
      0
      Votes
      1
      Posts
      23
      Views

      No one has replied

    • Hugo Jourdan

      listNamedInstances is broken ?
      General Discussion • • Hugo Jourdan  

      3
      0
      Votes
      3
      Posts
      20
      Views

      frederik

      thanks for the issue --> https://github.com/typemytype/drawbot/issues/495