Interface IForgeFont
- All Known Implementing Classes:
Font
public interface IForgeFont
Extension interface for
Font
.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault FormattedText
ellipsize
(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
-