Frederik Berlaen

Results 395 comments of Frederik Berlaen

Just reopening... it worked before, stopped working without any change in the drawBot code. DrawBot is connecting the thumbnail view and pdf view as documented... and this issue is also...

Oh cool, please make a PR Just one question: why using the typographic bounds over the image bounds? As far as I understands it the image bounds wrap the letters:...

Im trying to reproduce your issue in the current DrawBot... This seems to work fine where "world" is always the clickable area: ```python t = FormattedString() t.fontSize(20) for i in...

Does this happens with all fonts? I cannot reproduce this ```python import drawBot import AppKit appName = AppKit.NSBundle.mainBundle().objectForInfoDictionaryKey_("CFBundleDisplayName") appName = appName or "terminal" drawBot.newDrawing() drawBot.newPage() txt = drawBot.FormattedString() txt.fontSize(50) txt.font("Menlo")...

I guess this is probably solved with https://github.com/typemytype/drawbot/pull/421 As I cannot reproduce this anymore: ```python import drawBot as db import math import random from pathlib import Path base = Path(__file__).parent...

nsdata is indd clumsy ;)

DrawBot already saves the last script to the defaults ([see](https://github.com/typemytype/drawbot/blob/master/drawBot/ui/drawBotController.py#L84)) And restore the script when DrawBot reopens and there is something in stored in in the defaults.

maybe it needs to be saved to disk so the script becomes more accessible: a simple file vs reading a preference .plist

see https://developer.apple.com/documentation/appkit/nsfont/1525977-fontwithname > If you use a fontSize of 0.0, this method uses the default User Font size.

this is funny: ```python import AppKit s = 0 # change to a other number and it returns the same cached font object f1= AppKit.NSFont.fontWithName_matrix_("Helvetica", (s, 0, 0, s, 0,...