Class CIDW2Array

java.lang.Object
org.verapdf.pd.font.CIDW2Array

public class CIDW2Array extends Object
Represents W2 array in CID fonts.
Author:
Vladimir Burshnev
  • Constructor Details

    • CIDW2Array

      public CIDW2Array(COSArray w2)
      Constructor from a COSObject.
      Parameters:
      w2 - is W2 array from CIDFont dictionary.
  • Method Details

    • getDisplacement

      public Double getDisplacement(int cid)
      Get vertical component of the displacement vector of glyph with given cid according to W2 array.
      Parameters:
      cid - is cid of glyph in CIDFont.
      Returns:
      width as it is specified in W2 array.