Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.16
-
None
Description
In pdmodel/font/PDCIDFontType0.java :
public float getHeight(int code) throws IOException { int cid = codeToCID(code); float height = 0; if (!glyphHeights.containsKey(cid)) { height = (float) getType2CharString(cid).getBounds().getHeight(); glyphHeights.put(cid, height); } return height; }
When the glyph is already in glyphHeights, getHeight returns 0.
It can be:
public float getHeight(int code) throws IOException { int cid = codeToCID(code); float height = 0; if (!glyphHeights.containsKey(cid)) { height = (float) getType2CharString(cid).getBounds().getHeight(); glyphHeights.put(cid, height); } else { height = glyphHeights.get(cid); } return height; }