public class SWTFontUtils
extends java.lang.Object
SWT
font related utility methods.Modifier and Type | Method | 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.AssertionError
java.lang.IllegalArgumentException
public 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.AssertionError
java.lang.IllegalArgumentException