接口 IForgeFont
- 所有已知实现类:
Font
public interface IForgeFont
Extension interface for
Font
.-
字段概要
字段 -
方法概要
修饰符和类型方法说明default FormattedText
ellipsize
(FormattedText text, int maxWidth) If the width of the text exceedsmaxWidth
, an ellipse is added and the text is substringed.default Font
self()
-
字段详细资料
-
ELLIPSIS
-
-
方法详细资料
-
self
-
ellipsize
If the width of the text exceedsmaxWidth
, an ellipse is added and the text is substringed.- 参数:
text
- the text to ellipsize if neededmaxWidth
- the maximum width of the text- 返回:
- the ellipsized text
-