Class MonospaceFontRecord

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      FontFamily getFamily()
      Returns the family for this record.
      FontType getFontType()
      Returns the general type of this font identifier.
      FontIdentifier getIdentifier()  
      int hashCode()  
      boolean isBold()
      Returns true, if this font corresponds to a bold version of the font.
      boolean isItalic()
      Returns true, if this font includes italic glyphs.
      boolean isOblique()
      Returns tue, if this font's italic mode is in fact some sort of being oblique.
      boolean isScalable()
      Defines, whether the font identifier represents a scalable font type.
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MonospaceFontRecord

        public MonospaceFontRecord​(MonospaceFontFamily fontFamily,
                                   boolean bold,
                                   boolean italics)
    • Method Detail

      • getFamily

        public FontFamily getFamily()
        Returns the family for this record.
        Specified by:
        getFamily in interface FontRecord
        Returns:
        the font family.
      • isBold

        public boolean isBold()
        Returns true, if this font corresponds to a bold version of the font. A font that does not provide a bold face must emulate the boldness using other means.
        Specified by:
        isBold in interface FontRecord
        Returns:
        true, if the font provides bold glyphs, false otherwise.
      • isItalic

        public boolean isItalic()
        Returns true, if this font includes italic glyphs. Italics is different from oblique, as certain glyphs (most notably the lowercase 'f') will have a different appearance, making the font look more like a script font.
        Specified by:
        isItalic in interface FontRecord
        Returns:
        true, if the font is italic.
      • isOblique

        public boolean isOblique()
        Returns tue, if this font's italic mode is in fact some sort of being oblique. An oblique font's glyphs are sheared, but they are not made to look more script like.
        Specified by:
        isOblique in interface FontRecord
        Returns:
        true, if the font is oblique. All italic fonts are also oblique.
      • isScalable

        public boolean isScalable()
        Defines, whether the font identifier represents a scalable font type. Such fonts usually create one font metric object for each physical font, and apply the font size afterwards.
        Specified by:
        isScalable in interface FontIdentifier
        Returns:
        true, if the font is scalable, false otherwise
      • getFontType

        public FontType getFontType()
        Returns the general type of this font identifier. This is for debugging, not for the real world.
        Specified by:
        getFontType in interface FontIdentifier
        Returns:
      • equals

        public boolean equals​(java.lang.Object o)
        Specified by:
        equals in interface FontIdentifier
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface FontIdentifier
        Overrides:
        hashCode in class java.lang.Object