outline property

Font.outline property

True if the font is formatted as outline.

@property
def outline(self) -> bool:
    ...

@outline.setter
def outline(self, value: bool):
    ...

Examples

Shows how to create a run of text formatted as outline.

doc = aw.Document()
builder = aw.DocumentBuilder(doc=doc)
# Set the Outline flag to change the text's fill color to white and
# leave a thin outline around each character in the original color of the text.
builder.font.outline = True
builder.font.color = aspose.pydrawing.Color.blue
builder.font.size = 36
builder.writeln('This text has an outline.')
doc.save(file_name=ARTIFACTS_DIR + 'Font.Outline.docx')

See Also