Class AWTFontFamily

    • Constructor Detail

      • AWTFontFamily

        public AWTFontFamily​(String fontName)
    • Method Detail

      • getFamilyName

        public String getFamilyName()
        Returns the name of the font family (in english).
        Specified by:
        getFamilyName in interface FontFamily
        Returns:
      • getFontRecord

        public FontRecord getFontRecord​(boolean bold,
                                        boolean italics)
        This selects the most suitable font in that family. Italics fonts are preferred over oblique fonts.
        Specified by:
        getFontRecord in interface FontFamily
        Parameters:
        bold -
        italics -
        Returns:
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object