iced-rs/iced

Calculating canvas text size

Ouverte

#478 ouverte le 11 août 2020

 (3 commentaires) (0 réaction) (0 personne assignée)Rust (1 572 forks)batch import
featuregood first issuetext

Métriques du dépôt

Stars
 (30 491 étoiles)
Métriques de merge PR
 (Merge moyen 24j 11h) (11 PRs mergées en 30 j)

Description

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.

Guide contributeur