Class CIDW2ArrayRange

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

public class CIDW2ArrayRange extends Object
Represents range of sequential CIDs and vertical metrics for them. This is used in W2 array in CIDFonts.
Author:
Vladimir Burshnev
  • Constructor Details

    • CIDW2ArrayRange

      public CIDW2ArrayRange(int beginCID, int endCID, CIDVerticalMetrics verticalMetrics)
  • Method Details

    • contains

      public boolean contains(int cid)
      Returns true if width for given CID is stored in this CIDWArrayRange.
      Parameters:
      cid - is CID to check.
      Returns:
      true if width for this CID can be obtained from this CIDWArrayRange.
    • getDisplacement

      public double getDisplacement()
      Returns:
      vertical component of the displacement vector for this range.