Class FontEmbeddedData

    • Method Detail

      • setMaxRecordLength

        public static void setMaxRecordLength​(int length)
        Parameters:
        length - the max record length allowed for FontEmbeddedData
      • getMaxRecordLength

        public static int getMaxRecordLength()
        Returns:
        the max record length allowed for FontEmbeddedData
      • getRecordType

        public long getRecordType()
        Description copied from class: Record
        Returns the type (held as a little endian in bytes 3 and 4) that this class handles
        Specified by:
        getRecordType in class Record
      • writeOut

        public void writeOut​(OutputStream out)
                      throws IOException
        Description copied from class: Record
        Have the contents printer out into an OutputStream, used when writing a file back out to disk (Normally, atom classes will keep their bytes around, but non atom classes will just request the bytes from their children, then chuck on their header and return)
        Specified by:
        writeOut in class Record
        Throws:
        IOException
      • setFontData

        public void setFontData​(byte[] fontData)
        Overwrite the font data. Reading values from this FontEmbeddedData instance while calling setFontData is not thread safe.
        Parameters:
        fontData - new font data
      • getFontHeader

        public FontHeader getFontHeader()
        Read the font data. Reading values from this FontEmbeddedData instance while calling setFontData(byte[]) is not thread safe.
        Returns:
        font data
      • isItalic

        public boolean isItalic()
        Specified by:
        isItalic in interface FontFacet
      • getTypeface

        public String getTypeface()