Interface IForgeFont

All Known Implementing Classes:
Font

public interface IForgeFont
Extension interface for Font.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final FormattedText
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ellipsize(FormattedText text, int maxWidth)
    If the width of the text exceeds maxWidth, an ellipse is added and the text is substringed.
     
  • Field Details

  • Method Details

    • self

      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.
      Parameters:
      text - the text to ellipsize if needed
      maxWidth - the maximum width of the text
      Returns:
      the ellipsized text