}
/**
- * shortens a text string to maxlength
+ * shortens a text string to maxlength.
* $suffix is what needs to be added at the end (end length is <= $maxlength)
*
* The purpose is to limit the width of string for rendered screen in web browser.
* So it depends on style sheet, browser's rendering scheme, client's system font.
*
- * NOTE: In general, non-Latin font such as Japanese, Chinese, Cyrillic have two times as long as Latin fonts,
+ * NOTE: In general, non-Latin font such as Japanese, Chinese, Cyrillic have two times as width as Latin fonts,
* but this is not always correct, for example, rendered by proportional font.
*
* @param string $escaped_string target string