diff --git a/drawBot/drawBotDrawingTools.py b/drawBot/drawBotDrawingTools.py index 34fc206c..009cba7b 100644 --- a/drawBot/drawBotDrawingTools.py +++ b/drawBot/drawBotDrawingTools.py @@ -1809,7 +1809,7 @@ def textBoxBaselines(self, txt, box, align=None): if not isinstance(txt, (str, FormattedString)): raise TypeError("expected 'str' or 'FormattedString', got '%s'" % type(txt).__name__) path, (x, y) = self._dummyContext._getPathForFrameSetter(box) - attrString = self._dummyContext.attributedString(txt) + attrString = self._dummyContext.attributedString(txt, align=align) setter = CoreText.CTFramesetterCreateWithAttributedString(attrString) box = CoreText.CTFramesetterCreateFrame(setter, (0, 0), path, None) ctLines = CoreText.CTFrameGetLines(box)