specify variable font settings
- 
					
					
					
					
 What is the proper way to specify variable font settings when appending text to a formatted string? I get how to alter single-setting attributes like size and alignment, but how do I specify I want the last text in this string to be at wght 100? (There are two axes in this variable font, CONT and wght.) txt = FormattedString() txt.append(topText.text, font=cards[example].font, fontSize=130, fill=0, align="center") print(cards[example].label, fontLeading()) txt += "\n" txt.append(cards[example].label, font=fontName, fontSize=24, fill=0, align="right", tailIndent=-(width()/5)) textBox(txt, (0, 0, width(), height()*.85))
 
- 
					
					
					
					
 (Not sure what happened there with the thread title; sorry about that!) 
 
- 
					
					
					
					
 Ah ha, figured it out (thanks to this post) : fontVariations=dict(wght=wt)
 
- 
					
					
					
					
 that is indeed correct see the documentation: https://www.drawbot.com/content/text/formattedString.html#drawBot.context.baseContext.FormattedString.openTypeFeatures (+ I've changed the title of this topic)