Class GdiFont

java.lang.Object
org.eclipse.graphiti.export.batik.GdiFont

public class GdiFont extends Object
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 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 font
      bItalic - Whether or not the font is italic
      bUnderlined - Whether or not the font is underlined
      bStrikeout - Whether or not the font is a strikout font
      bBold - Whether or not the font is bold
      faceName - Name of the font
      escapement - Font escapement (angle) of the text to be drawn.
  • Method Details

    • getFont

      public Font 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.