canvas文本行间距
时间: 2023-10-13 14:04:45 浏览: 171
canvas文本行间距可以通过设置StaticLayout或fabric.Text的spacingmult属性来实现。在StaticLayout中,spacingmult是行间距的倍数,通常情况下填1即可。在fabric.Text中,可以通过设置lineHeight属性来调整行间距。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* *3* [自定义控件学习笔记(四)文字的绘制](https://blog.csdn.net/yy471101598/article/details/78584652)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* [fabric操作canvas绘图-(一)基础使用](https://blog.csdn.net/weixin_42349568/article/details/127342393)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文