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 合并指标
 (平均合并 24天 11小时) (30 天内合并 11 个 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.

贡献者指南