It would be really helpful to have the following functions in addition to str_width

foo(string, font, len)
Gives the width of the first [len] chars of string

and

foo(string, font, width)
Gives the number of chars that fit in [width] pixels

I know that this can be done quite easy with str_width but i think an intern solution would be much faster


I <3 LINQ