Class CIDWArrayRange


  • public class CIDWArrayRange
    extends Object
    Represents range of sequential CIDs and width for them. This is used in W array in CIDFonts.
    Author:
    Sergey Shemyakov
    • Constructor Detail

      • CIDWArrayRange

        public CIDWArrayRange​(int beginCID,
                              int endCID,
                              double width)
    • Method Detail

      • 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.
      • getWidth

        public double getWidth()
        Returns:
        width for this range.