クラス 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.
    作成者:
    dhabib
    • コンストラクタの詳細

      • 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.
        パラメータ:
        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.
    • メソッドの詳細

      • getFont

        public Font getFont()
        戻り値:
        The Java font object that represents most of the attributes for drawing the font.
      • getEscapement

        public int getEscapement()
        戻り値:
        The angle at which to draw the font.