public class ManagedFont extends Object
Constructor and Description |
---|
ManagedFont(org.eclipse.swt.widgets.Display display,
org.eclipse.swt.graphics.FontData fontData)
Create a new managed font by using fontdata
|
ManagedFont(org.eclipse.swt.graphics.Font font,
boolean systemFont) |
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Free the managed resource if it hasn't already been done and if this is not a system font
|
org.eclipse.swt.graphics.Font |
getFont() |
boolean |
isSystemFont() |
void |
setFont(org.eclipse.swt.graphics.Font font) |
void |
setSystemFont(boolean systemFont) |
public ManagedFont(org.eclipse.swt.graphics.Font font, boolean systemFont)
font
- The fontsystemFont
- true if this is a system font and doesn't need to be disposed offpublic ManagedFont(org.eclipse.swt.widgets.Display display, org.eclipse.swt.graphics.FontData fontData)
display
- the display to usefontData
- The fontdata to create the font with.public void dispose()
public org.eclipse.swt.graphics.Font getFont()
public boolean isSystemFont()
public void setFont(org.eclipse.swt.graphics.Font font)
font
- the font to setpublic void setSystemFont(boolean systemFont)
systemFont
- the systemFont to set