EllipsesText
Description
Trims the given text to fit within the specified width and postfix it with ellipses.
Arguments
string text
The text to trim.
number width
The width of the container to fit the text within.
string font
The font the text will be drawn with.
Returns
string
The trimmed text.