Class CIDWArray


  • public class CIDWArray
    extends Object
    Represents W array in CID fonts.
    Author:
    Sergey Shemyakov
    • Constructor Detail

      • CIDWArray

        public CIDWArray​(COSArray w)
        Constructor from a COSObject.
        Parameters:
        w - is W array from CIDFont dictionary.
    • Method Detail

      • getWidth

        public Double getWidth​(int cid)
        Get width of glyph with given cid according to W array.
        Parameters:
        cid - is cid of glyph in CIDFont.
        Returns:
        width as it is specified in W array.