Using docx, I am trying to define for a run multiple attributes. When I set color, rtl, it works fine. But when I add also font size, it is ignored. If I set only font size, it works fine.
This works fine (font color changes and run is right-to-left):
run = p.add_run(line)
font = run.font
font.rtl = True
font.color.rgb = RGBColor(0x42, 0x24, 0xE9)
This also works fine (font size is modified):
run = p.add_run(line)
font = run.font
font.size = Pt(8)
#font.rtl = True # commented out
But this does not change the font's size:
run = p.add_run(line)
font = run.font
font.size = Pt(8)
font.rtl = True
I tried different order of the commands, but nothing works.
font.rtl = True
before you change the size? – Compaction