Class UiFonts

java.lang.Object
wiiuu.ui.UiFonts

public final class UiFonts extends Object
Desktop font discovery and an app-owned cache using WII-UU's half-point size buckets.
  • Constructor Summary

    Constructors
    Constructor
    Description
    UiFonts(String family)
    Create an independent cache; unknown families use Java's normal font fallback.
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    choose(String... preferences)
    First installed preference, falling back to Java's logical sans-serif font.
    void
    family(String family)
    Switch family and invalidate this instance's cached fonts.
    font(int style, float size)
    Get a font, rounded to half points and at least eight points, as in the WII-UU menu.
    static boolean
    installed(String family)
    Whether the family was found on this desktop.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • UiFonts

      public UiFonts(String family)
      Create an independent cache; unknown families use Java's normal font fallback.
  • Method Details

    • family

      public void family(String family)
      Switch family and invalidate this instance's cached fonts.
    • font

      public Font font(int style, float size)
      Get a font, rounded to half points and at least eight points, as in the WII-UU menu.
    • installed

      public static boolean installed(String family)
      Whether the family was found on this desktop. Safe without a display.
    • choose

      public static String choose(String... preferences)
      First installed preference, falling back to Java's logical sans-serif font.