文本基线(setTextBaseline)
更新于 2023-01-18textBaseline是 Canvas 2D API 描述绘制文本时,当前文本基线的属性。
示例代码
Loading...
入参
参数 | 类型 | 说明 |
---|---|---|
textBaseline | String | 枚举 "top" "hanging" "middle""alphabetic" "ideographic" "bottom"。 |
更新于 2023-01-18textBaseline是 Canvas 2D API 描述绘制文本时,当前文本基线的属性。
参数 | 类型 | 说明 |
---|---|---|
textBaseline | String | 枚举 "top" "hanging" "middle""alphabetic" "ideographic" "bottom"。 |