Package com.ribs.pdf

Class PDFGlyphWidthTable


  • public class PDFGlyphWidthTable
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PDFGlyphWidthTable​(java.util.List pdfwidths, java.lang.Object defwidth)
      Main constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      float getWidth​(int cid)
      Binary search the list and return the width
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PDFGlyphWidthTable

        public PDFGlyphWidthTable​(java.util.List pdfwidths,
                                  java.lang.Object defwidth)
        Main constructor. pdfwidths is the array from the CIDfont's /W entry, and defwidth is the /DW entry. Both entries are optional, in which case all the widths are 1000.
    • Method Detail

      • getWidth

        public float getWidth​(int cid)
        Binary search the list and return the width