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
| Name | Type | Access | Description |
|---|---|---|---|
name | str | Read | Is the font family name such as “Arial” |
size | float | Read | Is the point size of the font |
bold | bool | Read | Indicates whether the font is bold |
italic | bool | Read | |
underline | int | Read | Is an integer code representing the underline style |
color | str | Read | Is the font color as a string (e.g., hex) |
strike_through | bool | Read | Indicates if the text has a strikethrough effect |
superscript | bool | Read | Indicates if the text is superscript |
subscript | bool | Read | Indicates if the text is rendered as subscript |
highlight_color | str | Read | Is the background highlight color as a string |
all_caps | bool | Read | Indicates whether the font renders all characters as uppercase |
small_caps | bool | Read | Indicates whether the font renders characters as small caps |
hidden | bool | Read | Indicates whether the font is hidden from view |
style_name | str | Read | Is the name of the style applied to the font |
shading | Shading | Read | Is a Shading object that defines background shading for the font |