Class DefaultFontFamily

    • Constructor Detail

      • DefaultFontFamily

        public DefaultFontFamily​(String familyName)
    • Method Detail

      • getFamilyName

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

        public void addName​(String name)
      • getFontRecord

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

        public void addFontRecord​(FontRecord record)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object