I'm using python-docx for writing new ms words.
Python 3.8 - Win10 x32
There is code:
doc = docx.Document()
style = doc.styles['Normal']
font = style.font
font.name = 'B Mitra'
font.size = docx.shared.Pt(13)
font.rtl = True
doc.add_paragraph("Hi in Persian= سلام")
doc.save("tst.docx")
without font.rtl=True
both font.size
and font.name
will set on paragraph but when i use font.rtl=True
the size and font won't set. just direction will set.
Any ideas?
Thanks for help