I want to change the direction to RTL since I write in Kurdish which uses Arabic numerals.
but whenever I apply run.font.rtl = True, it will cancel the font size run.font.size = Pt(20)
How can I fix that issue?
for paragraph in doc.paragraphs:
if '{text}' in paragraph.text:
paragraph.text = paragraph.text.replace('{text}', text[i].strip())
for run in paragraph.runs:
run.font.size = Pt(20)
run.font.name = 'Arial'
run.font.rtl = True
Here is the solution I found, just add this method inside your code and pass it your run and other requirement parameters.
Example: