Search code examples
pythonpython-docx

Set paragraph font in python-docx


I am using python-docx 0.7.6.

I can't seem to be able to figure out how to set font family and size for a certain paragraph.

There is .style property but style="Times New Roman" doesn't work.

Can somebody please point me to an example?

Thanks.


Solution

  • Support for run styles has been added in latest version of python-docx