italic property
Font.italic property
True if the font is formatted as italic.
@property
def italic(self) -> bool:
...
@italic.setter
def italic(self, value: bool):
...
Examples
Shows how to write italicized text using a document builder.
doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
builder.font.size = 36
builder.font.italic = True
builder.writeln('Hello world!')
doc.save(file_name=ARTIFACTS_DIR + 'Font.Italic.docx')
See Also
- module aspose.words
- class Font