Class PDFFontEntry


  • public class PDFFontEntry
    extends java.lang.Object
    An inner class to store font info. There are individual entries when a font has chars beyond 255, in blocks of 256.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String[] _pdfBuiltIns
      Holds a list of all the PDF built in font name variants.
      protected static java.lang.String[] _pdfBuiltIns2
      Holds a list of all the PDF build font names.
    • Constructor Summary

      Constructors 
      Constructor Description
      PDFFontEntry​(PDFFile pdfFile, RMFont aFont, int fontCharSet)
      Creates a new font entry for a given pdf file and font.
    • Field Detail

      • _pdfBuiltIns

        protected static final java.lang.String[] _pdfBuiltIns
        Holds a list of all the PDF built in font name variants.
      • _pdfBuiltIns2

        protected static final java.lang.String[] _pdfBuiltIns2
        Holds a list of all the PDF build font names.
    • Constructor Detail

      • PDFFontEntry

        public PDFFontEntry​(PDFFile pdfFile,
                            RMFont aFont,
                            int fontCharSet)
        Creates a new font entry for a given pdf file and font.
    • Method Detail

      • getFont

        public RMFont getFont()
        Returns the font for this font entry.
      • getCharSet

        public int getCharSet()
        Returns the char set for this font entry. Font entries represent blocks of 256 chars for a given font, and the char set is the index of the current font entry's block of 256 chars.
      • getCharCount

        public int getCharCount()
        Returns the char count for this font entry.
      • getChar

        public char getChar​(int anIndex)
        Returns the char at the given index for this font entry.
      • getPDFName

        public java.lang.String getPDFName()
        Returns the pdf name of the font entry font.
      • writePDF

        public void writePDF​(RMPDFWriter aWriter)
        Writes the font entry to the pdf buffer.
      • writeFont

        public void writeFont​(RMPDFWriter aWriter)
        Writes the given font to the given pdf file.
      • writeExtendedFont

        public void writeExtendedFont​(RMPDFWriter aWriter)
        Writes the given font char set to the given pdf file.
      • charProcStreamForChar

        public static PDFStream charProcStreamForChar​(RMFontFile fontFile,
                                                      char aChar)
        Returns a pdf stream buffer with given char written as a char proc.