Class GdiFont
java.lang.Object
org.eclipse.graphiti.export.batik.GdiFont
Represents a font on the system. There may be multiple fonts created in the
system at any one time. The currently selected font can be retrieved from the
DeviceContext.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
GdiFont
public GdiFont()Creates a default font. -
GdiFont
public GdiFont(int height, boolean bItalic, boolean bUnderlined, boolean bStrikeout, boolean bBold, String faceName, int escapement) Creates a font with the specified parameters.- Parameters:
height- Height of the fontbItalic- Whether or not the font is italicbUnderlined- Whether or not the font is underlinedbStrikeout- Whether or not the font is a strikout fontbBold- Whether or not the font is boldfaceName- Name of the fontescapement- Font escapement (angle) of the text to be drawn.
-
-
Method Details
-
getFont
- Returns:
- The Java font object that represents most of the attributes for drawing the font.
-
getEscapement
public int getEscapement()- Returns:
- The angle at which to draw the font.
-