Interface IFontExtension
- All Known Implementing Classes:
Font
public interface IFontExtension
Extension interface for
Font.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiondefault FormattedTextellipsize(FormattedText text, int maxWidth) If the width of the text exceedsmaxWidth, an ellipse is added and the text is substringed.self()
-
Field Details
-
ELLIPSIS
-
-
Method Details
-
self
Font self() -
ellipsize
If the width of the text exceedsmaxWidth, an ellipse is added and the text is substringed.- Parameters:
text- the text to ellipsize if neededmaxWidth- the maximum width of the text- Returns:
- the ellipsized text
-