Return length of a string.
(x)
| 16877 | font = Font("helv") |
| 16878 | |
| 16879 | def textlen(x): |
| 16880 | """Return length of a string.""" |
| 16881 | return font.text_length( |
| 16882 | x, fontsize=fontsize, small_caps=small_caps |
| 16883 | ) # abbreviation |
| 16884 | |
| 16885 | def char_lengths(x): |
| 16886 | """Return list of single character lengths for a string.""" |
nothing calls this directly
no test coverage detected