Package org.verapdf.pd.font
Class CIDWArray
- java.lang.Object
-
- org.verapdf.pd.font.CIDWArray
-
public class CIDWArray extends Object
Represents W array in CID fonts.- Author:
- Sergey Shemyakov
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Double
getWidth(int cid)
Get width of glyph with given cid according to W array.
-
-
-
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.
-
-