Class Fonts

java.lang.Object
com.diffplug.common.swt.Fonts

public class Fonts extends Object
Registry of fonts, especially system fonts.
  • Method Details

    • get

      public static Font get(String name, int size, int style)
      Returns the given font.
    • system

      public static Font system()
      Returns the default font for this system.
    • systemBold

      public static Font systemBold()
      Returns the default bold font for this system.
    • systemLarge

      public static Font systemLarge()
      Returns a largish system font appropriate for dialog headers.
    • systemMonospace

      public static Font systemMonospace()
      Returns a monospace font for this system.
    • systemMonospaceFontData

      public static FontData systemMonospaceFontData()
      Calculates the best monospaced font available on this system, can be called from any thread.