Cuts a text short, with an ellipsis, where text_width() says that it would be
wider than width.
Examples
rghcard:::fit_text(c("rwf", "a-repository-with-a-long-name"), 12, 120)
#> [1] "rwf" "a-repository-wi…"
Cuts a text short, with an ellipsis, where text_width() says that it would be
wider than width.
rghcard:::fit_text(c("rwf", "a-repository-with-a-long-name"), 12, 120)
#> [1] "rwf" "a-repository-wi…"