接口 IForgeFont

所有已知实现类:
Font

public interface IForgeFont
Extension interface for Font.
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    static final FormattedText
     
  • 方法概要

    修饰符和类型
    方法
    说明
    ellipsize(FormattedText text, int maxWidth)
    If the width of the text exceeds maxWidth, an ellipse is added and the text is substringed.
    default Font
     
  • 字段详细资料

  • 方法详细资料

    • self

      default Font self()
    • ellipsize

      default FormattedText ellipsize(FormattedText text, int maxWidth)
      If the width of the text exceeds maxWidth, an ellipse is added and the text is substringed.
      参数:
      text - the text to ellipsize if needed
      maxWidth - the maximum width of the text
      返回:
      the ellipsized text