iced-rs/iced

Calculating canvas text size

Offen

#478 geöffnet am 11.08.2020

 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Rust (1.572 Forks)batch import
featuregood first issuetext

Repository-Metriken

Stars
 (30.491 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 24T 11h) (11 gemergte PRs in 30 T)

Beschreibung

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.

Contributor Guide