Font

Overview

Font is a class in Aspose.Words for Python. Inherits from: BaseModel.

Font.name is the font family name such as “Arial”.

Properties

NameTypeAccessDescription
namestrReadIs the font family name such as “Arial”
sizefloatReadIs the point size of the font
boldboolReadIndicates whether the font is bold
italicboolRead
underlineintReadIs an integer code representing the underline style
colorstrReadIs the font color as a string (e.g., hex)
strike_throughboolReadIndicates if the text has a strikethrough effect
superscriptboolReadIndicates if the text is superscript
subscriptboolReadIndicates if the text is rendered as subscript
highlight_colorstrReadIs the background highlight color as a string
all_capsboolReadIndicates whether the font renders all characters as uppercase
small_capsboolReadIndicates whether the font renders characters as small caps
hiddenboolReadIndicates whether the font is hidden from view
style_namestrReadIs the name of the style applied to the font
shadingShadingReadIs a Shading object that defines background shading for the font