thanks @monomonnik that is correct
-
RE: Can I use use areaAverage() to analyze an actual image?
-
RE: Auto-Resize FormattedString
why trying to find the pointSize? just scale everything with
textWidth/boxWidth
-
RE: Drawbot Preferences
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
-
RE: Run drawbot.app as viewer only
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!
-
RE: trim box in pdfs
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
-
RE: QRCodeGenerator(size, message)
hehe, totally forgot about that one... but I prefer the solution with
pyqrcode
as it provides a list 0/1 -
RE: QRCodeGenerator(size, message)
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)
-
RE: QRCodeGenerator(size, message)
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!
-
RE: when to apply paragraphBottomSpacing
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.