Navigation

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Users
    • Groups
    • Solved
    • Unsolved
    • Search
    1. Home
    2. Solved
    Log in to post
    • All categories

    • djrrb

      SOLVED Built-in interpolation functions
      Feature Requests • interpolation • • djrrb  

      3
      0
      Votes
      3
      Posts
      37
      Views

      djrrb

      @frederik done! https://github.com/typemytype/drawbot/issues/414
    • paul

      SOLVED Variable Font Animation Jiggle
      Bugs • animation variable fonts • • paul  

      4
      0
      Votes
      4
      Posts
      59
      Views

      ryan

      Hi @gferreira, this workaround is really helpful in making variable font animations not so jittery (run into that a lot). However, when using BezierPath, one loses selecting fill within some words of the FormattedString. Is it possible not flatten it all to one color with BezierPath?
    • 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
    • snaders

      SOLVED Reading pixel values (rgb or brightness) on coordinations
      General Discussion • image color • • snaders  

      3
      0
      Votes
      3
      Posts
      17
      Views

      snaders

      Thanks @gferreira, I somehow completely missed that when going through the documentation. That's exactly what I need haha. I only have to go through through a single line of pixels, so hopefully the speed won't matter that much.
    • mït

      SOLVED Different fonts in a text box
      General Discussion • text text formatting • • mït  

      9
      0
      Votes
      9
      Posts
      71
      Views

      mït

      Hello, @gferreira! I had thought about working word for word ... I didn’t know if it was a good idea ... but it’s really interesting what you coded! I wouldn't have found it alone! thanks! I guess this way the text would never be justified ... but it will be very useful for me! thanks!
    • guidoferreyra

      SOLVED Turn off kerning
      General Discussion • opentype features kerning • • guidoferreyra  

      3
      0
      Votes
      3
      Posts
      20
      Views

      guidoferreyra

      Of course! Thanks a lot!
    • 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
    • ricardov

      SOLVED newDrawing() size?
      General Discussion • • ricardov  

      4
      0
      Votes
      4
      Posts
      28
      Views

      ricardov

      Thanks @imik and @frederik tested and it worked! Im creating a set of 300 different covers for different reports based on data, and goes super fine. Best for all! R
    • eduairet

      SOLVED Pixelating a Bezier Path
      General Discussion • • eduairet  

      6
      0
      Votes
      6
      Posts
      43
      Views

      eduairet

      @frederik thank you It worked great now: x, y = 500, 500 resolutions = [72, 18] mfont = '/Library/Application Support/Adobe/Fonts/SansNom-Regular.otf' installFont(mfont) font(mfont) print(listFontGlyphNames()) letters = ['n', 'E'] def pixelar(tx, t, al=True): newPage(x, y) path = BezierPath() path.text(tx, fontSize=500, font=mfont) coords = path.bounds() translate((x - (coords[0] + coords[2])) * 0.5, (y - (coords[1] + coords[3])) * 0.5) drawPath(path) saveImage('~/Desktop/hint_{0}_{1}_aal_{2}.png'.format(tx, t, str(al).lower()), imageResolution=int(t), antiAliasing = al) newDrawing() for letter in letters: for resolution in resolutions: pixelar(letter, resolution, False) pixelar(letter, resolution)
    • MauriceMeilleur

      SOLVED Gaussian blur moves object when applied in different places in the code?
      Bugs • • MauriceMeilleur  

      2
      0
      Votes
      2
      Posts
      19
      Views

      frederik

      not really a bug: when applying a blur the images gets bigger, check with im.size() before and after the blur is applied. im.offset() is providing you the correct x, y difference.
    • SCarewe

      SOLVED Remove overlap on variable font
      General Discussion • • SCarewe  

      7
      0
      Votes
      7
      Posts
      33
      Views

      frederik

      you can slice a formattedString and keep the formatting: txt = FormattedString() txt += "hello World" sub = txt[0:5] print(sub)
    • MauriceMeilleur

      SOLVED Why would I declare a newPath() as opposed to defining a BezierPath() with a variable name?
      General Discussion • • MauriceMeilleur  

      3
      0
      Votes
      3
      Posts
      18
      Views

      MauriceMeilleur

      That's what I suspected. It seemed like the kind of question students would ask and I wanted to make sure the answer I gave was the right one. Thanks, Frederik.
    • Christine

      SOLVED UI with update-Function?
      General Discussion • variables interface • • Christine  

      7
      0
      Votes
      7
      Posts
      45
      Views

      frederik

      DrawBot 3.126 has a continuous flag in Variable that adds a Update button good luck!
    • michelangelo

      SOLVED Set Rfont to some font and access its glyph methods
      Code snippets • bezierpath ufo • • michelangelo  

      9
      0
      Votes
      9
      Posts
      36
      Views

      michelangelo

      @gferreira Thank you! That is much clearer now. I found that in my example I have a lot of transformations and somewhere it gets weird again, but on its own it works!
    • c6y

      SOLVED Turn off antialiasing?
      General Discussion • • c6y  

      7
      0
      Votes
      7
      Posts
      35
      Views

      frederik

      Added in DrawBot 3.126 thanks!
    • michelangelo

      SOLVED Exporting a variable font from DrawBot
      Code snippets • variable fonts • • michelangelo  

      2
      0
      Votes
      2
      Posts
      432
      Views

      gferreira

      hello @michelangelo, to create a variable font you’ll need at least two compatible UFO masters and a .designspace file. see I Can Variable Font for instructions on generating variable fonts from UFOs using fontmake. you might also want to check pages tagged with interpolation and variable fonts in the RoboFont documentation. hope this helps… good luck!
    • michelangelo

      SOLVED UI help
      General Discussion • • michelangelo  

      5
      0
      Votes
      5
      Posts
      31
      Views

      frederik

      and the 'official' docs are on robotools.dev! --> vanilla.robotools.dev the one you are referring to is out dated...
    • ryan

      SOLVED Oval() point placement
      General Discussion • points shapes • • ryan  

      3
      0
      Votes
      3
      Posts
      29
      Views

      frederik

      I don't know why but my wild guess is it has todo with drawing ovals at more extreme w, h ratios, when the points are on the extremes you will need a pushing point in the middle to nice curve back. @gferreira you method only works for circles... the drawBot RoboFont extension has points on the extremes, cause the context is type... see https://github.com/typemytype/drawBotRoboFontExtension/blob/master/DrawBot.roboFontExt/lib/glyphContext.py#L23 see the big difference when the oval is getting thinner... def straightOval(x, y, w, h): c = 0.55 hx = w * c * .5 hy = h * c * .5 path = BezierPath() path.moveTo((x + w * .5, y)) path.curveTo((x + w * .5 + hx, y), (x + w, y + h * .5 - hy), (x + w, y + h * .5)) path.curveTo((x + w, y + h * .5 + hy), (x + w * .5 + hx, y + h), (x + w * .5, y + h)) path.curveTo((x + w * .5 - hx, y + h), (x, y + h * .5 + hy), (x, y + h * .5)) path.curveTo((x, y + h * .5 - hy), (x + w * .5 - hx, y), (x + w * .5, y)) path.closePath() drawPath(path) x, y, w, h = 10, 10, 8.0, 146.0 oval(x, y, w, h) straightOval(x + w + 10, y, w, h)
    • guidoferreyra

      SOLVED Stroke alignment in shape
      General Discussion • • guidoferreyra  

      4
      0
      Votes
      4
      Posts
      41
      Views

      guidoferreyra

      Great, thank you both!
    • Maarten Renckens

      SOLVED DrawBot Default Templates
      Feature Requests • modules • • Maarten Renckens  

      3
      0
      Votes
      3
      Posts
      23
      Views

      Maarten Renckens

      @frederik This makes sense. Thanks!