Class UiText

java.lang.Object
wiiuu.ui.UiText

public final class UiText extends Object
Width-aware text layout extracted from the WII-UU and Choccy Milk menus.
  • Method Details

    • ellipsize

      public static String ellipsize(String text, FontMetrics metrics, float width)
      Fit a line with an ellipsis. Return empty when even the ellipsis cannot fit.
    • wrap

      public static List<String> wrap(String text, FontMetrics metrics, float width, int maxLines)
      Wrap words into at most maxLines lines; ellipsize long words and the remaining final line.