Class FontHeader

    • Field Detail

      • REGULAR_WEIGHT

        public static final int REGULAR_WEIGHT
        Fonts with a font weight of 400 are regarded as regular weighted. Higher font weights (up to 1000) are bold - lower weights are thin.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FontHeader

        public FontHeader()
    • Method Detail

      • init

        public void init​(byte[] source,
                         int offset,
                         int length)
      • bufferInit

        public java.io.InputStream bufferInit​(java.io.InputStream fontStream)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • isItalic

        public boolean isItalic()
      • getWeight

        public int getWeight()
      • isBold

        public boolean isBold()
      • getCharsetByte

        public byte getCharsetByte()
      • getPitch

        public FontPitch getPitch()
        Specified by:
        getPitch in interface FontInfo
        Returns:
        the font pitch or null if unsupported
      • getFamilyName

        public java.lang.String getFamilyName()
      • getStyleName

        public java.lang.String getStyleName()
      • getVersionName

        public java.lang.String getVersionName()
      • getFullName

        public java.lang.String getFullName()
      • getPanose

        public byte[] getPanose()
        Specified by:
        getPanose in interface FontInfo
        Returns:
        panose info in binary form or null if unknown
      • getTypeface

        public java.lang.String getTypeface()
        Specified by:
        getTypeface in interface FontInfo
        Returns:
        the full name of the font, i.e. font family + type face
      • getFlags

        public int getFlags()
      • getGenericProperties

        public java.util.Map<java.lang.String,​java.util.function.Supplier<?>> getGenericProperties()
        Specified by:
        getGenericProperties in interface GenericRecord