iced-rs/iced

Calculating canvas text size

開放

#478 建立於 2020年8月11日

 (3 則留言) (0 個反應) (0 位負責人)Rust (1,572 個分叉)batch import
featuregood first issuetext

倉庫指標

星標
 (30,491 顆星)
PR 合併指標
 (PR 指標待抓取)

描述

Hello,

I'm trying to display canvas::Text next to a chart drawn on a canvas. To get the spacing/padding around the text right, I need to know the amount of space the text will take up on the canvas.

I tried to read the source code and follow the program execution to see how the text gets drawn on the canvas in an attempt to implement this myself but didn't get anywhere. I am thankful for any help on this subject.

貢獻者指南