iced-rs/iced

Calculating canvas text size

Open

#478 建立於 2020年8月11日

在 GitHub 查看
 (3 留言) (0 反應) (0 負責人)Rust (30,491 star) (1,572 fork)batch import
featuregood first issuetext

描述

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.

貢獻者指南