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!
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!
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
hehe, totally forgot about that one... but I prefer the solution with pyqrcode
as it provides a list 0/1
in the pip installer: pyqrcode --no-deps
import pyqrcode
blockSize = 10
qr = pyqrcode.create('http://www.drawbot.com/')
for x, row in enumerate(qr.code):
for y, bit in enumerate(row):
if bit:
rect(x * blockSize, y * blockSize, blockSize, blockSize)
print(qr.code)
no idea... but the image is indeed blurry. A quick search for CoreImage filter CIQRCodeGenerator
+ blurry results in lots of options but none of them apply to DrawBot.
I would look at some python packages like https://github.com/mnooner256/pyqrcode to build the QR data and draw it with DrawBot, without round tripping to a png or image
good luck!
I guess this is a coreText thing. When composing the same text with hard returns and soft returns (shift + enter) in TextEdit, there is no difference between soft and hard returns.
I guess you'll need to script it and change the the bottom spacing for text-runs with soft returns.
can you provide the not working google fonts?
and if this is persisting, it would be handy to open an issue in the drawBot repo.
thanks!
DrawBot is mac only... that will not change fast as we got now a super high level of typographic support...
However Just started drawBotSkia which has a subset of the DrawBot api but uses skia as backend.
you can always ignore all warnings with:
import warnings
warnings.simplefilter("ignore")