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.IllegalStateException, java.lang.AssertionError, java.lang.RuntimeException
This method is thread safe.
java.lang.IllegalStateException
- If the method is not invoked from a SWT UI thread.java.lang.AssertionError
java.lang.RuntimeException
public static org.eclipse.swt.graphics.Font getMonospacedFont(org.eclipse.swt.widgets.Display display) throws java.lang.AssertionError, java.lang.RuntimeException
This method is thread safe.
display
- The display for which to create a monospaced font.java.lang.AssertionError
java.lang.RuntimeException