public class SWTFontUtils
extends java.lang.Object
SWT font related utility methods.| Modifier and Type | Method and Description |
|---|---|
static org.eclipse.swt.graphics.Font |
getMonospacedFont()
Returns the monospaced font for the current display.
|
static org.eclipse.swt.graphics.Font |
getMonospacedFont(org.eclipse.swt.widgets.Display display)
Creates a monospaced font for the given display.
|
public static org.eclipse.swt.graphics.Font getMonospacedFont()
throws java.lang.AssertionError
This method is thread safe.
java.lang.IllegalStateException - If the method is not invoked from a SWT UI thread.java.lang.AssertionErrorjava.lang.IllegalArgumentExceptionpublic static org.eclipse.swt.graphics.Font getMonospacedFont(org.eclipse.swt.widgets.Display display)
throws java.lang.AssertionError
This method is thread safe.
display - The display for which to create a monospaced font.java.lang.AssertionErrorjava.lang.IllegalArgumentException