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)
builder.font.size = 36
builder.font.italic = True
builder.writeln("Hello world!")
doc.save(ARTIFACTS_DIR + "Font.italic.docx")
See Also
- module aspose.words
- class Font