iced-rs/iced

Calculating canvas text size

オープン

#478 opened on 2020/08/11

 (3 件のコメント) (0 件のリアクション) (0 人の担当者)Rust (1,572 件のフォーク)batch import
featuregood first issuetext

Repository metrics

Stars
 (30,491 個のスター)
PR merge metrics
 (平均マージ 24d 11h) (30d で 11 merged PRs)

説明

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.

コントリビューターガイド