Package com.ribs.pdf

Class PDFGlyphWidthTable

java.lang.Object
com.ribs.pdf.PDFGlyphWidthTable

public class PDFGlyphWidthTable extends Object
  • Constructor Details

    • PDFGlyphWidthTable

      public PDFGlyphWidthTable(List pdfwidths, 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 Details

    • getWidth

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