Return length of a string.
(x)
| 4330 | font = Font("helv") |
| 4331 | |
| 4332 | def textlen(x): |
| 4333 | """Return length of a string.""" |
| 4334 | return font.text_length( |
| 4335 | x, fontsize=fontsize, small_caps=small_caps |
| 4336 | ) # abbreviation |
| 4337 | |
| 4338 | def char_lengths(x): |
| 4339 | """Return list of single character lengths for a string.""" |
no test coverage detected
searching dependent graphs…