font
Model definition of a Font.
| CLASS | DESCRIPTION |
|---|---|
Font |
Font specifies the characteristics of a given font through a set of font properties. |
Classes¶
Font
dataclass
¶
Font(
*,
name: Optional[str] = None,
size: Optional[float] = None,
is_bold: Optional[bool] = None,
is_italic: Optional[bool] = None,
is_underline: Optional[bool] = None,
is_strike_through: Optional[bool] = None
)
Font specifies the characteristics of a given font through a set of font properties.
| ATTRIBUTE | DESCRIPTION |
|---|---|
is_bold |
Whether the font has a bold style. |
is_italic |
Whether the font has an italic style. |
is_strike_through |
Whether the font has a ~~strike-through~~ style. |
is_underline |
Whether the font has an underline style. |
name |
The name of the font (e.g., “Times New Roman,” “Arial,” and “Helvetica”). |
size |
A non-negative real number representing the size of the font (expressed in the used unit of length). |
Attributes¶
is_bold
class-attribute
instance-attribute
¶
Whether the font has a bold style.
is_italic
class-attribute
instance-attribute
¶
is_italic: Optional[bool] = field(
default=None, metadata={"name": "isItalic", "type": "Attribute"}
)
Whether the font has an italic style.
is_strike_through
class-attribute
instance-attribute
¶
is_strike_through: Optional[bool] = field(
default=None, metadata={"name": "isStrikeThrough", "type": "Attribute"}
)
Whether the font has a ~~strike-through~~ style.
is_underline
class-attribute
instance-attribute
¶
is_underline: Optional[bool] = field(
default=None, metadata={"name": "isUnderline", "type": "Attribute"}
)
Whether the font has an underline style.
name
class-attribute
instance-attribute
¶
The name of the font (e.g., “Times New Roman,” “Arial,” and “Helvetica”).