bold property
Font.bold property
True if the font is formatted as bold.
@property
def bold(self) -> bool:
...
@bold.setter
def bold(self, value: bool):
...
Examples
Shows how to insert formatted text using DocumentBuilder.
doc = aw.Document()
builder = aw.DocumentBuilder(doc)
# Specify font formatting, then add text.
font = builder.font
font.size = 16
font.bold = True
font.color = drawing.Color.blue
font.name = "Courier New"
font.underline = aw.Underline.DASH
builder.write("Hello world!")
See Also
- module aspose.words
- class Font