1

I try to create a Word document in Hebrew (aligned right and font set to rtl):

p = document.add_paragraph()
run_format = p.paragraph_format
run_format.alignment = WD_ALIGN_PARAGRAPH.RIGHT
runner = p.add_run(f.strip())
runner.bold = True
runner.font.rtl = True

However, bold is not applied to the text.

I tried to use italic instead and it is not applied as well. But, if I use underline it works.

Can someone explain this inconsistent behavior and how to solve it?

Tomerikoo
  • 18,379
  • 16
  • 47
  • 61
Yoni A
  • 124
  • 8

0 Answers0