Class MonospaceFontFamily

    • Constructor Detail

      • MonospaceFontFamily

        public MonospaceFontFamily​(String familyName,
                                   float lpi,
                                   float cpi)
    • 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