drawbot
drawbot copied to clipboard
Placing a PDF in Drawbot does not respect the mediaBox. Expected result, as replicated in Illustrator: Actual result in Drawbot:
On the DrawBot forum a few years ago, [Just mentioned](https://forum.drawbot.com/post/106) that support for vertical typesetting was on the to-do list. I'm just curious where this feature stands. Are there any...
It makes DB using close to 50% CPU on my machine...
started here #363 proposal to support PIL image objects, and NSImage object `imObject = saveImage("PIL")` using the the "extension" `PIL` to get a pil context returning a pil image objects...
using the default mac https://developer.apple.com/documentation/appkit/nssharingservice ```python import AppKit import tempfile import os root = tempfile.TemporaryDirectory() def shareImage(ext, service="airdrop", **kwargs): path = os.path.join(root.name, f"drawBotShared.{ext}") saveImage(path, **kwargs) url = AppKit.NSURL.fileURLWithPath_(path) serviceMap =...
Different versions of Mac OS seem to deal with `baselineShift()` differently. Consider the following script: ```python def correct_box_direction(box): x, y, w, h = box if h < 0: y =...
just to keep it public and a set of drawBot addons would be nice to have as a set of snippets/gists which are somehow accessible ```python import AppKit def appendHTML(self,...
there are tools around to read and write psd files https://pypi.org/project/psd-tools3/
``` fs = db.FormattedString() fs.font("Handjet-Regular") fs.fontSize(350) fs.fontVariations(wght=300) fs.appendGlyph("A") text(fs, (100, 100)) ``` Draws a `.notdef` glyph from another font (Lucida?). Everything works as expected if I leave out this line...