Hello, everyone!
Do you have any suggestion about the best way to change a font type inside a textbox?
I mean, imagine I have a text from a variable and I'd like to put part of it in bold or italic, for instance.
size('A4')
t = '''
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla tempus justo in finibus condimentum. Proin vitae mauris ac nibh elementum consectetur. Aenean justo mi, cursus vel placerat vitae, gravida in mi.
'''
t2 = FormattedString(t, font="Arial", fontSize = 20)
while len(t2):
newPage()
font("Arial", 20)
fill(0)
t2 = textBox(t2, (10, 10, width() - 20, height() - 20))
Is it possible, for example, to put "sit amet" in arial-bold or "condimentum" in arial-italic?
Thank you!