主题
TextDecoration 继承自: IntFlag
在文本附近绘制的线性装饰。
枚举值
| 名称 | 类型 | 默认值 | 说明 |
|---|---|---|---|
NONE | — | 0 | Do not draw a decoration. |
UNDERLINE | — | 1 | Draw a line underneath each line of text. |
OVERLINE | — | 2 | Draw a line above each line of text. |
LINE_THROUGH | — | 4 | Draw a line through each line of text. |
Usage Example
The enum is a flag, so multiple decorations can be combined together as follows:
python
style = ft.TextStyle(decoration=ft.TextDecoration.UNDERLINE | ft.TextDecoration.OVERLINE)