@Override public float getWidth(int code) throws IOException { // these widths are supposed to be consistent with the actual widths given in the CIDFont // program, but PDFBOX-563 shows that when they are not, Acrobat overrides the embedded // font widths with the widths given in the font dictionary return getWidthForCID(codeToCID(code)); }
/** * Returns the default position vector (v). * * @param cid CID */ private Vector getDefaultPositionVector(int cid) { return new Vector(getWidthForCID(cid) / 2, dw2[0]); }
@Override public float getWidth(int code) throws IOException { // these widths are supposed to be consistent with the actual widths given in the CIDFont // program, but PDFBOX-563 shows that when they are not, Acrobat overrides the embedded // font widths with the widths given in the font dictionary return getWidthForCID(codeToCID(code)); }
/** * Returns the default position vector (v). * * @param cid CID */ private Vector getDefaultPositionVector(int cid) { return new Vector(getWidthForCID(cid) / 2, dw2[0]); }
@Override public float getWidth(int code) throws IOException { // these widths are supposed to be consistent with the actual widths given in the CIDFont // program, but PDFBOX-563 shows that when they are not, Acrobat overrides the embedded // font widths with the widths given in the font dictionary return getWidthForCID(codeToCID(code)); }
/** * Returns the default position vector (v). * * @param cid CID */ private Vector getDefaultPositionVector(int cid) { return new Vector(getWidthForCID(cid) / 2, dw2[0]); }